MathGroup Archive 2011

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: $UserBaseDirectory

  • To: mathgroup at
  • Subject: [mg122752] Re: $UserBaseDirectory
  • From: "Oleksandr Rasputinov" <oleksandr_rasputinov at>
  • Date: Wed, 9 Nov 2011 06:26:31 -0500 (EST)
  • Delivered-to:
  • References: <j9b6ut$4u3$>

On Tue, 08 Nov 2011 12:22:53 -0000, E. Frauendorfer  
<he.frauendorfer at> wrote:

> Help for $UserBaseDirectory  gives the following "very helpful"  
> instruction:
> The value of $UserBaseDirectory can be specified by setting the
> MATHEMATICA_BASE operating system environment variable when the
> Mathematica kernel is launched. It cannot be reset from inside the  
> kernel.
> I would like to know where, when and how to do that.
> Thanks EF

You should look at your operating system documentation regarding setting  
environment variables. However, briefly:

In Windows, at the command prompt:

set MATHEMATICA_BASE="C:\ProgramData\Mathematica"

In a terminal under Linux (assuming ksh/bash):

export MATHEMATICA_BASE=/usr/share/mathematica

In Mac OS (again assuming bash):

export MATHEMATICA_BASE=/Library/Mathematica

Then start Mathematica from this same command prompt/shell instance using,  


"C:\Program Files\Wolfram\Mathematica\8.0\Mathematica.exe"

Linux/Mac OS:

Mathematica &

Finally I would like to correct an error above. $UserBaseDirectory is  
associated with the MATHEMATICA_USERBASE environment variable.  
MATHEMATICA_BASE influences $BaseDirectory, not $UserBaseDirectory. The  
usage of either of these is essentially the same but the paths will be  

  • Prev by Date: Graphics << Implicit vs ContourPlot
  • Next by Date: Numarical integration fails to work... Help, please!
  • Previous by thread: Re: $UserBaseDirectory
  • Next by thread: FinancialData - how to find ticker symbols?