next up previous contents
Next: Manual Compilation Up: Installation and setup Previous: Fast Installation   Contents


Environment variables

The simplest way to setup the necessary environmental variables and get access to the compiled executables and libraries is to use the script setvars:
source setvars.sh (if you use bash)
or
source setvars.csh (if you use tcsh)

Otherwise you can set the values in startup files of your shell such as $HOME/.bashrc in case of interactive session or .profile in case of remote login session, or .tcshrc if you use tcsh

For bash, add the following lines (specify the location of MagiC in the first line):

 
# Define location of MAGIC below.
MAGIC=<PATH_TO_LOCATION_OF_MAGIC>
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$MAGIC/MagicTools/xdrfile-1.1.1
export PYTHONPATH=$MAGIC/MagicTools/xdrfile-1.1.1/src/python:$PYTHONPATH
export PYTHONPATH=$MAGIC/MagicTools:$MAGIC/MagicTools/lib:$PYTHONPATH
export PATH=$PATH:$MAGIC/bin

If you use tcsh, set up the same environmental variables using setenv directive.



Alexander Lyubartsev 2016-05-03