<!-- keep this as a security measure: #uncomment if the subject should only be modifiable by the listed groups # * Set ALLOWTOPICCHANGE = Main.TWikiAdminGroup,Main.CMSAdminGroup # * Set ALLOWTOPICRENAME = Main.TWikiAdminGroup,Main.CMSAdminGroup #uncomment this if you want the page only be viewable by the listed groups # * Set ALLOWTOPICVIEW = Main.TWikiAdminGroup,Main.CMSAdminGroup,Main.CMSAdminReaderGroup --> ---+ Installing ROOT ROOT installations are located in =/swshare/ROOT=, which also contains the init files linked to the latest installed version. Installations are performed as =cmssgm= on: * SL5 UIs =t3ui0[2-9]= * SL6 UIs =t3ui[11-20]= ---++ Step by step instructions * Download the latest version from here: http://root.cern.ch/drupal/content/downloading-root. Save it in =/scratch/cmssgm=. * untar it * Copy and modify the standard cfg options from here: =/swshare/ROOT/ROOT_configuration=, into the =root/= directory created by the untar * You should at least modify the =--prefix= and =--etcdir= settings * From the =/scratch/cmssgm/root/= directory, run =./configure `cat ROOT_configuration`= * =make && make install= * Copy back =ROOT_configuration= to the new ROOT directory, e.g. =/swshare/ROOT/root_v5.32.00_slc5_amd64/= * Update =/swshare/ROOT/thisroot.(c)sh= * Send an email to cms-tier3-users@lists.psi.ch ---++ ROOT + Python2.6 + Pythia6 on SL5 %N% Be aware that this link was needed to point to Python2.6 on SL5 ( default is Python2.4 ): <pre> [cmssgm@t3ui02 root]$ ll /usr/lib64/python2.6/config/libpython2.6.so lrwxrwxrwx 1 root root 21 Jul 13 21:01 %BLUE%/usr/lib64/python2.6/config/libpython2.6.so%ENDCOLOR% -> ../../libpython2.6.so </pre> Either by editing =/swshare/ROOT/ROOT_configuration= or by directly calling =./configure= you have to provide the following %BLUE%extra options%ENDCOLOR% ( all as one line ): <pre> ./configure linuxx8664gcc --enable-builtin-pcre --enable-builtin-freetype --enable-builtin-ftgl --enable-cintex --enable-dcache --enable-explicitlink --enable-gdml --enable-genvector --enable-krb5 --enable-mathmore --enable-minuit2 --enable-mysql --enable-python --enable-qt --enable-qtgsi --enable-reflex --enable-roofit --enable-table --enable-unuran %BLUE%--enable-pythia6 --with-pythia6-libdir=/swshare/ROOT/pythia6/ --with-python-incdir=/usr/include/python2.6 --with-python-libdir=/usr/lib64/python2.6/config/ --prefix=/swshare/ROOT/root_v5.34.18_slc5_amd64_py26_pythia6 --etcdir=/swshare/ROOT/root_v5.34.18_slc5_amd64_py26_pythia6/etc%ENDCOLOR% </pre> then you create this link: <pre> [cmssgm@t3ui02 root]$ pwd /swshare/ROOT/root_v5.34.18_slc5_amd64_py26_pythia6/lib/root [cmssgm@t3ui11 root]$ ll libPythia6.so lrwxrwxrwx 1 root root 35 Jul 12 22:08 %BLUE%libPythia6.so%ENDCOLOR% -> /swshare/ROOT/pythia6/libPythia6.so </pre> ---++ Examples * Example of installation, as *cmssgm*: <verbatim> cd /scratch/cmssgm wget ftp://root.cern.ch/root/root_v5.32.00.source.tar.gz tar xvzf root_v5.32.00.source.tar.gz cd root cp /swshare/ROOT/ROOT_configuration . emacs -nw ROOT_configuration ./configure `cat ROOT_configuration` make make install cp ROOT_configuration /swshare/ROOT/root_v5.32.00_slc5_amd64/ cd /swshare/ROOT emacs -nw thisroot.sh emacs -nw thisroot.csh </verbatim> * Example of =ROOT_configuration= <verbatim> linuxx8664gcc --enable-builtin-pcre --enable-builtin-freetype --enable-builtin-ftgl --enable-cintex --enable-dcache --enable-explicitlink --enable-gdml --enable-genvector --enable-krb5 --enable-mathmore --enable-minuit2 --enable-mysql --enable-python --enable-qt --enable-qtgsi --enable-reflex --enable-roofit --enable-table --enable-unuran --prefix=/swshare/ROOT/root_v5.32.00_slc5_amd64/ --etcdir=/swshare/ROOT/root_v5.32.00_slc5_amd64/etc </verbatim> ---++ Details ---+++ Debug Versions to build a debug version add the following line <verbatim> --build=debug </verbatim> make sure to set different prefix and etcdir variables! ---+++ Xrootd Issues If you install on a machine with a new Xrootd version make sure that =xrootd-private-devel= is installed and add the following lines <verbatim> --with-xrootd-incdir /usr/include/xrootd/ --with-xrootd-incdir /usr/include/xrootd/private/ </verbatim> ---+++ preview versions same procedure as above but get the code with <verbatim> git clone http://root.cern.ch/git/root.git root6 cd root6 git tag -l git checkout -b <tag> <tag> </verbatim> ---+++ ROOT6 remove <pre>--with-reflex</pre> and <pre>--with-cintex</pre> from configuration file need package <pre>python26-devel.x86_64</pre> use more up to date compiler versions with <verbatim> scl enable devtoolset-1.1 bash </verbatim> and the following hacks <verbatim> export PYTHON=/usr/bin/python26 mkdir bin && ln -s /usr/bin/python26 ./bin/python export PATH=./bin/:$PATH </verbatim> ---++++ Known Bugs (beta1) * allDict.cxx points to install paths (configuration mistake? - work-around by building from /swshare/ROOT/install_root6) * https://sft.its.cern.ch/jira/browse/ROOT-5466 ---++++ Known Bugs (beta2 - v5-99-05) * allDict.cxx points to install paths (configuration mistake? - work-around by building from /swshare/ROOT/install_root6_beta2) * https://sft.its.cern.ch/jira/browse/ROOT-5466 -- Main.DanielMeister - 2012-11-26
This topic: CmsTier3
>
WebHome
>
AdminArea
>
RootInstallation
Topic revision: r11 - 2014-07-16 - FabioMartinelli
Copyright © 2008-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki?
Send feedback