This script simplifies the install process for ratpac-two by building the requirements locally and setting up the appropriate environment variables.
- gcc/g++ 8.0+
- c++17
- openssl
- curl, git (used for fetching installation binaries)
- libX11, libXpm, libXft, libffi, libXext, libQt, libOpenGL
Feel free to skip any of the packages already installed on the system that you do not wish to reinstall, though do note you will have to properly link them in that case (ROOT / Geant-4).
- CMake v3.22.0+
- Python 3.x.x
- Root 6.25+
- Geant-4 11.0
- CRY 1.7
- Tensorflow 2.9.1
- Rat-pac
The installation script can be used to install each component individually or all at once. To install everything run:
./setup.sh
Individually components can be selected, or excluded
# Include only specific programs
./setup.sh --only cmake root geant4 sibyl cry tensorflow ratpac
# Install all but excluded programs, e.g:
./setup.sh --skip cmake
Additional options are available, including passing make commands
# For linux, tensorflow can either use the cpu(default) or gpu
./setup.sh --only tensorflow --gpu
# For mac, a separate tensorflow is available
./setup.sh --only tensorflow --mac
# Pass number of processors to make, and even keep downloaded files for debugging
./setup.sh -j8 --noclean
# For complete information run
./setup.sh -h
Once installation is complete there will be a new directory structure from where
setup.sh
is run with a complete ./local
directory that contains all
of the header files, libraries, and executables, and an environment variable to
source before running
# Before running rat or installing new versions.
source env.sh