Setting the Environment Variables


Setting the ROOTSYS and PATH Variables

Define the variable ROOTSYS pointing to the directory where you unpacked the ROOT distribution:
   export ROOTSYS=/root   (in bash or ksh)
   setenv ROOTSYS /root   (in csh or tcsh)
Add ROOTSYS/bin to your PATH:
   export PATH=$PATH:$ROOTSYS/bin        (in bash or ksh)
   set path=($path $ROOTSYS/bin)         (in csh or tcsh)


Setting the Library Path

On HP-UX, before executing the interactive module, you must set the library path:

On AIX, before executing the interactive module, you must set the library path:

or the equivalent setenv.

On Linux, Solaris, Alpha OSF and SGI, before executing the interactive module, you must set the library path:

or the equivalent setenv.

On Solaris, in case your LD_LIBRARY_PATH is empty, you should set it like this:

where $ROOTSYS is an environment variable pointing to the ROOT directory. For example, if you use the HPUX-10 AFS version (see below), you should set:

To run the program just type: root.


Rene Brun, Fons Rademakers
Last update 03/04/99 by rb