-
Notifications
You must be signed in to change notification settings - Fork 133
installationMAC
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).
- Download https://certstore.inl.gov/pki/CAINLROOT_B64.crt
- Configure
conda
andgit
to trust INL's certificate authority. Open theterminal
and 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.
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
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
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.
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
[~/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
[~/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
[~/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.