Difference between revisions of "Tips and Tricks"

From LHCb Wiki
Jump to navigation Jump to search
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
== PyRoot and Roofit ==
+
== Miscelaneous ==
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:<br>
+
====AFS access (not necessary for workshop)====
--enable-shared --prefix=$HOME/python_dir <br>
 
  
2. Add in your .tcshrc file the following lines:<br>
+
If you need access to CERN AFS areas,
 
+
<pre>
setenv ROOTSYS /project/bfys/root/root-5.10.00 <br>
+
klog user@CERN.CH
setenv PATH ${ROOTSYS}/bin:${PATH} <br>
+
</pre>
setenv LD_LIBRARY_PATH <br>
+
Where user is your CERN AFS username. Note the '''UPPER CASE''' for the domain name.
 
+
Be careful: '''Never do: ls /opt/ !! (It could start caching all atlas software...)'''.
setenv PYTHONDIR $HOME/python_dir/lib/python2.3 <br>
 
setenv PYTHONPATH $HOME/python_dir/lib/python2.3 <br>
 
setenv LD_LIBRARY_PATH ${ROOTSYS}/lib:${PYTHONDIR}:${LD_LIBRARY_PATH} <br>
 
setenv PYTHONPATH ${ROOTSYS}/lib/:${PYTHONPATH} <br>
 
 
 
Then, the last thing one should do is: <br>
 
cd $HOME/python_dir/lib/python2.3 <br>
 
ln -s  $HOME/python_dir/lib/libpython2.3.so.1.0 libpython2.3.so.1.0
 

Latest revision as of 16:37, 19 June 2009

Miscelaneous

AFS access (not necessary for workshop)

If you need access to CERN AFS areas,

klog user@CERN.CH

Where user is your CERN AFS username. Note the UPPER CASE for the domain name. Be careful: Never do: ls /opt/ !! (It could start caching all atlas software...).