Installation/Linux/OpenFOAM-2.3.1/Gentoo
From OpenFOAMWiki
< Installation | Linux | OpenFOAM-2.3.1
1 Introduction
This page is dedicated to explaining how to install OpenFOAM in Gentoo Linux.
If you do not yet feel comfortable using Linux... well, if you're using Gentoo, then perhaps you do not need to read the page Working with the Shell and train a bit with the shell/terminal environments, to have a better perception of the steps shown below.
2 Installation steps through emerge
Gentoo's sci-libs packages already provide OpenFOAM through emerge. Reference page: sci-libs/openfoam
WARNING: The following steps are only provided as a quick reference. It's expected that as an experienced Gentoo user, you know what needs to be done to satisfy 's requests!
- As root:
- To install OpenFOAM 2.3.1:
emerge =openfoam-2.3.1
When it finishes installing, take a note of the instructions on the message provided at the end. - To install ParaView:
emerge paraview
- To install OpenFOAM 2.3.1:
- As normal user:
- Remember the instructions on the message that emerge told you about? Add the alias command to the end of your ~/.bashrc file:
alias startOF23='source /usr/lib/OpenFOAM/OpenFOAM-2.3.1/etc/bashrc'
- Also add the following alias command to the end of your ~/.bashrc file:
alias paraFoam='paraFoam -builtin'
- Whenever you start a new terminal, you can activate the dedicated OpenFOAM 2.3.1 environment by running:
startOF23
- Remember the instructions on the message that emerge told you about? Add the alias command to the end of your ~/.bashrc file: