Conda MOOSE Environment
Our preferred method for obtaining dependencies necessary for MOOSE-based application development is via Conda's myriad array of available libraries. Follow these instructions to create an environment on your machine using Conda.
Those interested in operating in their own optimized environment, please seek help from one of our 'From Source' instructional pages. Our Conda packages are designed to 'just work', making them unsuitable for things like benchmark case studies.
Follow the steps below depending on your platform to install Miniforge. If you run into issues during these steps, please visit our Conda Troubleshooting guide.
Linux Users:
Macintosh Users with Intel processors:
Macintosh Users with Apple Silicon processors:
With Miniforge installed in your home directory, export PATH so that it may be used:
Now that we can execute conda
, initialize it and then exit the terminal:
Upon restarting your terminal, you should see your prompt prefixed with (base). This indicates you are in the base environment, and Conda is ready for operation:
The next thing you should do after a fresh install, is perform an update to the base Conda environment:
Add INL's public channel to gain access to INL's Conda package library:
If you find yourself using sudo
commands while engaging Conda commands... something is not right. The most common reason for needing sudo is due to an improper Conda installation. Conda should be installed to your home directory, without any use of sudo
.
Install MOOSE
Create a unique conda environment for MOOSE, named moose
, and install the MOOSE dependency packages:
After the installation completes, activate the new environment:
If you are running into errors, please see our troubleshooting guide for Conda.
Know that you will need to conda activate moose
for each terminal window you open, and each time you wish to perform MOOSE related work. If you wish to make this automatic, you can add that command to the end of your shell profile with the command below:
Cloning MOOSE
MOOSE is hosted on GitHub and should be cloned directly from there using git. We recommend creating a projects directory to contain all of your MOOSE related work. But you are free to choose any location you wish:
~/projects
To clone MOOSE, run the following commands in a terminal:
The master branch of MOOSE is the stable branch that will only be updated after all tests are passing. This protects you from the day-to-day changes in the MOOSE repository.
Build and Test MOOSE
To build MOOSE run the following commands:
To test MOOSE, run the following commands:
Some tests are SKIPPED. This is normal as some tests are specific to available resources, or some other constraint your machine does not satisfy. If you see failures, or you see MAX FAILURES
, thats a problem! And it needs to be addressed before continuing:
Supply a report of the actual failure (scroll up a ways). For example the following snippet does not give the full picture (created with
./run_tests -i always_bad
):Instead, you need to scroll up and report the actual error:
Uninstall
If you wish to remove the moose environment at any time, you may do so using the following commands:
Now that you have a working MOOSE, proceed to 'New Users' to begin your tour of MOOSE!