-
Notifications
You must be signed in to change notification settings - Fork 135
installationWindowsNew
Installing RAVEN on Windows is a simple process:
- Install prerequisites, such as
git
,conda
, andc
compilers - Clone RAVEN from
GitHub
- Compile and build RAVEN
- Run tests
For Windows systems perform the following:
- obtain the latest Git SCM for Windows installer from https://gitforwindows.org/ and install it. Install Git Bash and have the installer add Git Bash to your Windows PATH environment variables. The PATH can be updated in two different ways:
- Automatic: Allow the Git SCM installer to update it for you:
- Manually: Add the Git Bash in your PATH manually:
- obtain the Microsoft's Visual Studio Community Edition from here. After downloading and running the Visual Studio installer, it will ask what features to install. For building RAVEN, "Desktop development with C++" is needed at a minimum. Installation of other Visual Studio features should be fine.
- install Miniconda (you can install Miniconda from https://conda.io/miniconda.html). CONDA must be added
in the Windows PATH. The PATH can be updated in two different ways:
- Automatic: Allow the Conda installer to update it for you:
- Manually: Add the Git Bash in your PATH manually:
Open the Windows Command Line (cmd.exe) and cd into the folder where you want to install RAVEN (e.g., projects)
C:\projects> cd projects
C:\projects]> git clone https://github.com/idaholab/raven.git
C:\projects]> cd raven
In case you have access to any RAVEN plugins' repository (e.g. CashFlow), you can clone that repository to be functional with RAVEN (as submodule).
C:\> cd projects\raven
C:\projects\raven> git submodule update --init **pluginName**
The result of the command is as follows:
Submodule 'pluginName' (https://github.com/idaholab/pluginName.git) registered for path 'pluginName'
Cloning into '/home/USER/projects/test/raven/plugins/pluginName'...
Submodule path 'pluginName': checked out '786576deef33a317e654558f39f5f45617c7442b'
- First, find where your
conda
was installed. Open a Windows command line terminal and get the following result:
C:\> which conda
/c/Users/TALBPW/AppData/Local/Continuum/miniconda3/Scripts/conda
Your exact path will be slightly different depending on how conda
was installed, and possibly using your user name. The result above is simply an example.
Whatever your result is, copy it and modify it as follows:
-
Remove the last two entries (the part after
miniconda
) -
- Example:
/c/Users/TALBPW/AppData/Local/Continuum/miniconda3/
- Example:
-
Add
/etc/profile.d/conda.sh
-
- Example:
/c/Users/TALBPW/AppData/Local/Continuum/miniconda3/etc/profile.d/conda.sh
This is the location of yourconda
definitions, used during the next step.
- Example:
-
Then, open Windows Command Line (cmd.exe) and install raven libraries (release branch)
C:\> cd projects\raven
C:\projects\raven> bash.exe scripts\establish_conda_env.sh --install --conda-defs <yourCondaDefsLocation>
Make sure to replace <yourCondaDefsLocation>
with your conda defs location found during the last step above.
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.
C:\projects\raven> bash.exe build_raven
In case the RAVEN libraries have been installed without the conda
installation package,
In the event libraries have not been installed through conda (see Installing RAVEN Libraries ), RAVEN needs to be built with the following option:
# USE ONLY if not using conda (non-standard install)
C:\projects\raven> bash.exe build_raven --skip-conda
C:\projects\raven> bash.exe 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
Once RAVEN has been installed, there are several activities that can be done with it:
- Running RAVEN
- Receiving new updates
- Accessing documentation
To run in Windows see the running instructions here
# navigate to the RAVEN repository
C:\projects> cd raven
# pull down any new changes
C:\projects\raven> git pull
# update libraries
C:\projects\raven> bash.exe scripts\establish_conda_env.sh
# compile and build
C:\projects\raven> bash.exe build_raven
# run tests
C:\projects\raven> bash.exe run_tests -j2
The RAVEN distribution includes several documents including user and theory manuals. These have been created using the LaTeX document preparation system and therefore need to be built using LaTeX typesetting software. There are several implementations of such software for all platforms, on Windows we have successfully used MiKTeX. To successfully build the documentation, the LaTeX distribution must provide the pdflatex and biblatex commands, and these commands must be in current system PATH.
The which command can be used in CMD shells to see if a command is in the current system PATH. If a command can be found in the system PATH, the output looks like this:
C:\projects\raven\doc> which pdflatex /c/Users/_you_user_name_/AppData/Local/Programs/MiKTeX 2.9/miktex/bin/x64/pdflatex
If a command is not found, the output instead looks like this:
C:\projects\raven\doc> which pdflateks which: no pdflateks in (Listing of directories in PATH)
There are several freely available add-on packages for the LaTeX typesetting system that are needed to build the RAVEN documentation:
- appendix, mathtools, bigints, soul, placeins, xcolor, preprint, titlesec, mptopdf, cite, url, stmaryrd, booktabs, txfonts, listings, symbol, subfigure, fancyhdr
These may be installed using the package manager of the installed LaTeX distribution or allowing MiKTeX to automatically download them in case of need (automatic download on the-fly)
A script make_docs.sh is provided in the doc directory of the RAVEN distribution that will build all available documentation in one step. The script is needed to properly mark the version of the code in the documents:
C:\projects> cd raven\doc
C:\projects\raven\doc> bash.exe make_docs.sh
If only a specific document needs to be built, navigate to the containing folder and type:
bash.exe make_win.sh
For example:
C:\projects> cd raven\doc\user_manual
C:\projects\raven\user_manual> bash.exe make_win.sh