Changes between Version 16 and Version 17 of InstallingROOT
- Timestamp:
- 10/11/19 09:48:28 (6 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
InstallingROOT
v16 v17 4 4 5 5 {{{ 6 [0] tar xvfz root_v6.14.04.source.tar.gz # Extract the tar file 7 [1] mv root-6.14.04 root-6.14.04-src # Rename the source diretory (for convenience) 8 [2] mkdir root-6.14.04 # Create a build directory 9 [3] cd root-6.14.04 # Change into the build directory 10 [4] cmake ../root-6.14.04-src # Create the build environment 11 [5] make # Make root 12 [6] . bin/thisroot.sh # Properly setup your environment 6 [0] tar xvfz root_v6.14.04.source.tar.gz # Extract the tar file 7 [1] mv root-6.14.04 root-6.14.04-src # Rename the source directory (for convenience) 8 [2] mkdir root-6.14.04-build # Create a build directory 9 [3] cd root-6.14.04-build # Change into the build directory 10 [4] cmake ../root-6.14.04-src # Create the build environment 11 [5] make # Make root (might take an hour or more!) 12 [6] make package # Create a tar-ball 13 [7] cd .. # Up by one level 14 [8] tar xvfz root_v6.14.04.<something>.tar.gz # Extract the tar-ball 15 [9] mv root root-6.14.04 # Rename the binary directory (for convenience) 16 [10] . root-6.14.04/bin/thisroot.sh # Properly setup your environment 17 18 # Now you can remove source and build directory or keep it for future use 19 [10] rm -rf root-6.14.04-src 20 [11] rm -rf root-6.14.04-build to keep it 13 21 }}} 14 15 Expect the compilation to take quite some time! With four 2.5GHz cores (-j4) it usually takes around one hour!16 22 17 23 You might want to call cmake to set up the build environment with a different (e.g. faster) compiler like clang: … … 29 35 This option is *not* supported anymore in root 6.18. No solution for this exists by now. If you really need it (required to compile the FACT++ online GUI), you must not use this root version by now! 30 36 31 Note that the current version of root (6.14) need !RootNewMacros.cmake during compilation of derived projects which is (only) located in the source directory. Therefore, you must not remove or change the name of the source directory. I hope that will be fixed in the future. 32 33 == Saving Space == 34 35 To save space, after compilation you can create a binary package with `make package`. This will create a `.tar.gz` file. You can then extract this file (`tar xvfz filename.tar.gz`) to any location you like (the default ist `./root`) and remove the build directory (and if you like also the source directory). 37 Note that if you run root from its build directory (not recommended!), root (6.14) need !RootNewMacros.cmake during compilation of derived projects which is (only) located in the source directory. Therefore, you must not remove or change the name of the source directory. I hope that will be fixed in the future. 36 38 37 39 == Font size ==