installationMAC - idaholab/raven GitHub Wiki
Installation Prerequisites
For macOS systems perform the following:
- obtain the Xcode Command Line Tools by launching the Terminal and type:
xcode-select --install
- install XQuartz from https://www.xquartz.org
- install Miniconda (you can install Miniconda from https://conda.io/miniconda.html)
- install raven libraries (release branch). See Note that to install libraries, you need to clone the RAVEN repository (see below).
Resolve SSL errors caused by INL Zscaler before install RAVEN (Only for INL machines)
- Download https://certstore.inl.gov/pki/CAINLROOT_B64.crt
- Configure
condaandgitto trust INL's certificate authority. Open theterminaland cd into the folder where you want to install RAVEN (e.g., projects)
[~/projects]> export REQUESTS_CA_BUNDLE=/path/to/CAINLROOT_B64.crt
[~/projects]> export SSL_CERT_FILE=/path/to/CAINLROOT_B64.crt
[~/projects]> git config --global http.sslcainfo /path/to/CAINLROOT_B64.crt
Replace /path/to/ to the actual path where CAINLROOT_B64.crt locates.
Clone RAVEN
Open a terminal window and cd into the folder where you want to install RAVEN (e.g., projects)
[~]> mkdir projects
[~]> cd projects
[~/projects]> git clone https://github.com/idaholab/raven.git
[~/projects]> cd raven
(Optional) Install RAVEN Plugins
This step is optional, and you may need to contact plugin developers to obtain the access first to non-open source plugins. Contact us Installation instructions: RAVEN Plugins
Install RAVEN
Method 1: Install RAVEN package (release version) through pip
This is the simplest way to install RAVEN.
[~/projects]> conda create -n raven_libraries python=3.10
[~/projects]> conda activate raven_libraries
[~/projects]> pip install raven-framework
Once installed, raven_framework will be available in your system path, and you can run any raven tests under folder raven/tests/framework/, for example:
[~/projects]> raven_framework /path/to/raven/tests/framework/test_LHS_Sampler.xml
Replace /path/to/ to the actual path to raven folder.
Method 2: Install RAVEN from source through conda
install raven libraries
cd raven
./scripts/establish_conda_env.sh --install
The establish_conda_env.sh process is maintained to provide the best libraries for each commit of RAVEN. In the event libraries cannot be installed through conda, see Installing RAVEN Libraries.
Experimental Features:
- Use Mamba to install RAVEN which can accelerate the installation process: ./scripts/establish_conda_env.sh --mamba
Compiling RAVEN
[~/projects/raven]> ./build_raven
In case the RAVEN libraries have been installed without the conda installation package,
(see Installing RAVEN Libraries ), RAVEN needs to be built with the following option:
[~/projects/raven]> ./build_raven --skip-conda
Test RAVEN installation
[~/projects/raven]> ./run_tests -j2
A large number of tests are run in order to check that the installation step has been successful. At the end, a screen output is generated similar to the one below (though the number of tests will not be the same):
383 passed, 19 skipped, 0 pending, 0 failed
Update RAVEN
[~/projects]> cd raven
[~/projects/raven]> git pull
[~/projects/raven]> ./scripts/establish_conda_env.sh --install
[~/projects/raven]> ./build_raven
[~/projects/raven]> ./run_tests -j2
See also the Troubleshooting page if you have problems.