ROOT: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
|||
(19 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
== RHEL9 == | |||
yum install libuuid-devel xrootd xrootd-devel xrootd-client-devel python3 python3-devel z3 z3-devel | |||
yum gcc-fortran imake xbae-devel libnsl libnsl2-devel glibc-devel freetype-devel libgfortran libX11-devel libXpm-devel libXt-devel motif-devel (for cernlib) | |||
yum install boost boost-devel lz4 lz4-devel doxygen (for evio) | |||
yum install libtirpc-devel | |||
If Git does not work, download source to /usr/downloads manually and do following: | |||
cd /apps/root | |||
cp /usr/downloads/root_v6.24.08.source.tar.gz . | |||
gunzip root_v6.24.08.source.tar.gz | |||
tar xvf root_v6.24.08.source.tar | |||
rm root_v6.24.08.source.tar.gz | |||
mv root_v6.24.08 root_v6.24.08_source | |||
mkdir 6.24.08 | |||
cd 6.24.08 | |||
cmake ../root-6.24.08_source -Dbuiltin_xrootd=OFF -Dclad=OFF | |||
cmake --build . -- -j32 | |||
== RHEL7 == | |||
Installation from source (replace root_install with for example 6.24.06): | Installation from source (replace root_install with for example 6.24.06): | ||
Latest revision as of 12:20, 3 October 2023
RHEL9
yum install libuuid-devel xrootd xrootd-devel xrootd-client-devel python3 python3-devel z3 z3-devel
yum gcc-fortran imake xbae-devel libnsl libnsl2-devel glibc-devel freetype-devel libgfortran libX11-devel libXpm-devel libXt-devel motif-devel (for cernlib)
yum install boost boost-devel lz4 lz4-devel doxygen (for evio)
yum install libtirpc-devel
If Git does not work, download source to /usr/downloads manually and do following:
cd /apps/root cp /usr/downloads/root_v6.24.08.source.tar.gz . gunzip root_v6.24.08.source.tar.gz tar xvf root_v6.24.08.source.tar rm root_v6.24.08.source.tar.gz mv root_v6.24.08 root_v6.24.08_source mkdir 6.24.08 cd 6.24.08 cmake ../root-6.24.08_source -Dbuiltin_xrootd=OFF -Dclad=OFF cmake --build . -- -j32
RHEL7
Installation from source (replace root_install with for example 6.24.06):
# The latest stable branch gets updated automatically on each release. # You may update your local copy by issuing a `git pull` command from within `root_src/`. git clone --branch latest-stable https://github.com/root-project/root.git root_src mkdir root_build root_install && cd root_build cmake -DCMAKE_INSTALL_PREFIX=../root_install ../root_src # && check cmake configuration output for warnings or errors cmake --build . -- install -j4 # if you have 4 cores available for compilation source ../root_install/bin/thisroot.sh # or thisroot.{fish,csh}
Installation (version 6.16.0 and GCC 8.3.0 in this example):
- cd /apps/root
- git clone http://github.com/root-project/root.git 6.16.0
- cd 6.16.0
- git checkout -b v6-16-00 v6-16-00
- cd build
- setenv CC /apps/gcc/8.3.0/bin/gcc
- setenv CXX /apps/gcc/8.3.0/bin/g++
- cmake /apps/root/6.16.0
- cmake --build . -- -j32
Everything is ready. Setup environment:
- source /apps/root/6.16.0/build/bin/thisroot.csh
Now it can be run:
- root