ROOT

From CLONWiki
Revision as of 23:55, 13 September 2021 by Boiarino (talk | contribs)
Jump to navigation Jump to search

Installation from source:

  1. The latest stable branch gets updated automatically on each release.
  2. 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
  • 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