next up previous contents
Next: Without .bashrc file Up: Setting environment variables Previous: Setting environment variables   Contents

Using .bashrc file

  1. emacs ~/.bashrc
  2. Add the following function setup_slsdet and replace path with absolute path of installed directory
    function setup_slsdet
    { 
    export PKGPATH=[path]
    export LD_LIBRARY_PATH=$PKGPATH/slsDetectorPackage/build/bin:$LD_LIBRARY_PATH
    export PATH=$PKGPATH/slsDetectorPackage/build/bin:$PATH
    cd $PKGPATH/slsDetectorPackage/build/bin
    }
    
  3. source ~/.bashrc
  4. Next time, just run setup_slsdet to load the environment variables.

One can also add the GUI environment variables if installed locally by adding the following in the function setup_sldet

export QTDIR=/path-where-it-is/Qt-4.8.2
export QWTDIR=/path-where-it-is/qwt-6.0.1
export QWT3D=/path-where-it-is/qwtplot3d
export QMAKESPEC=$QTDIR/mkspecs/linux-g++
export LD_LIBRARY_PATH=$QTDIR/lib:$QWTDIR/lib:$QWT3D/lib:$LD_LIBRARY _PATH
export PATH=$QTDIR/bin:$PATH



Thattil Dhanya 2019-04-08