Difference between revisions of "Tips and Tricks"
Jump to navigation
Jump to search
Line 3: | Line 3: | ||
desktop, here is my recipe: | desktop, here is my recipe: | ||
− | 1. Install Python-2.3.5 in your home dir(for example) by compiling it with | + | 1. Install Python-2.3.5 in your home dir(for example) by compiling it with options:<br> |
− | options: --enable-shared --prefix=$HOME/python_dir | + | --enable-shared --prefix=$HOME/python_dir <br> |
− | 2. Add in your .tcshrc file the following lines: | + | 2. Add in your .tcshrc file the following lines:<br> |
− | setenv ROOTSYS /project/bfys/root/root-5.10.00 | + | setenv ROOTSYS /project/bfys/root/root-5.10.00 <br> |
− | setenv PATH ${ROOTSYS}/bin:${PATH} | + | setenv PATH ${ROOTSYS}/bin:${PATH} <br> |
− | setenv LD_LIBRARY_PATH | + | setenv LD_LIBRARY_PATH <br> |
− | setenv PYTHONDIR $HOME/python_dir/lib/python2.3 | + | setenv PYTHONDIR $HOME/python_dir/lib/python2.3 <br> |
− | setenv PYTHONPATH $HOME/python_dir/lib/python2.3 | + | setenv PYTHONPATH $HOME/python_dir/lib/python2.3 <br> |
− | setenv LD_LIBRARY_PATH ${ROOTSYS}/lib:${PYTHONDIR}:${LD_LIBRARY_PATH} | + | setenv LD_LIBRARY_PATH ${ROOTSYS}/lib:${PYTHONDIR}:${LD_LIBRARY_PATH} <br> |
− | setenv PYTHONPATH ${ROOTSYS}/lib/:${PYTHONPATH} | + | setenv PYTHONPATH ${ROOTSYS}/lib/:${PYTHONPATH} <br> |
− | Then, the last thing one should do is: | + | Then, the last thing one should do is: <br> |
− | cd $HOME/python_dir/lib/python2.3 | + | cd $HOME/python_dir/lib/python2.3 <br> |
ln -s $HOME/python_dir/lib/libpython2.3.so.1.0 libpython2.3.so.1.0 | ln -s $HOME/python_dir/lib/libpython2.3.so.1.0 libpython2.3.so.1.0 |
Revision as of 12:36, 20 June 2006
PyRoot and Roofit
For those who are interested to have PyROOT running on their NIKHEF linux desktop, here is my recipe:
1. Install Python-2.3.5 in your home dir(for example) by compiling it with options:
--enable-shared --prefix=$HOME/python_dir
2. Add in your .tcshrc file the following lines:
setenv ROOTSYS /project/bfys/root/root-5.10.00
setenv PATH ${ROOTSYS}/bin:${PATH}
setenv LD_LIBRARY_PATH
setenv PYTHONDIR $HOME/python_dir/lib/python2.3
setenv PYTHONPATH $HOME/python_dir/lib/python2.3
setenv LD_LIBRARY_PATH ${ROOTSYS}/lib:${PYTHONDIR}:${LD_LIBRARY_PATH}
setenv PYTHONPATH ${ROOTSYS}/lib/:${PYTHONPATH}
Then, the last thing one should do is:
cd $HOME/python_dir/lib/python2.3
ln -s $HOME/python_dir/lib/libpython2.3.so.1.0 libpython2.3.so.1.0