Getting Started Using OpenDX

1.3 Setting DX Environment Variables
There are a number of environment variables that DX may use. The most important for our present purposes are:
$DXROOT (where all the parts of DX are installed in your file system)
$DXDATA ( paths to data files)
$DXMACROS (paths to macro files)

 

Optional: View this Technical Aside if you want more detail on this subject; the information is not required to understand the upcoming material.

From *nix, open a terminal window. In Windows, open a command prompt.

Create an environment variable using the technique appropriate for your OS. Under SGI Irix and within a C shell (csh), the command is:

setenv DXROOT /path to your DX installation

(substitute the actual path on your machine as the last argument)

After this is set, enter:

setenv DXDATA $DXROOT/dxsamples-x.x/data
setenv DXMACROS $DXROOT/dxsamples-x.x/macros

(in both cases, include the exact directory name for /dxsamples-x.x as seen on your system)

To check that things are set correctly, type:

env

and make sure these entries appear in the list.

If you are conversant with shell programming and configuration files such as ".cshrc", or ".login", you probably want to add these environment variables to the appropriate file so that your environment will be set up correctly each time you login to use DX.

 

Optional: View this Technical Aside if you want more detail on this subject; the information is not required to understand the upcoming material.