Difference between revisions of "Installation/Linux/OpenFOAM-2.1.1/Gentoo"

From OpenFOAMWiki
(Added brief instructions for Gentoo)
 
(Added reference page for existing versions)
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
= Introduction =
 
= Introduction =
This page is dedicated to explaining how to install {{OpenFOAM}} {{version2.1.1}} in Gentoo.
+
This page is dedicated to explaining how to install {{OpenFOAM}} {{version2.1.1}} in [http://www.gentoo.org 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 [[Installation/Working with the Shell|Working with the Shell]] and train a bit with the shell/terminal environments, to have a better perception of the steps shown below.
 
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 [[Installation/Working with the Shell|Working with the Shell]] and train a bit with the shell/terminal environments, to have a better perception of the steps shown below.
  
 
= Installation steps through {{tt|emerge}} =
 
= Installation steps through {{tt|emerge}} =
Gentoo's [http://packages.gentoo.org/category/sci-libs sci-libs packages] already provide OpenFOAM through {{tt|emerge}}.
+
Gentoo's [http://packages.gentoo.org/category/sci-libs sci-libs packages] already provide OpenFOAM through {{tt|emerge}}. Reference page: [http://packages.gentoo.org/package/sci-libs/openfoam?arches=fbsd&full_cat 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 {{tt||emerge}}'s requests!
 
'''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 {{tt||emerge}}'s requests!
Line 13: Line 13:
 
## To install ParaView: <bash>emerge paraview</bash>
 
## To install ParaView: <bash>emerge paraview</bash>
 
# As normal user:
 
# As normal user:
## Remember the instructions on the message that {{tt|emerge}} told you about? Add the {{tt|alias}} command to the end of your {{tt|~/.bashrc}} file: <bash>alias startOF211='source /usr/lib/OpenFOAM/OpenFOAM-2.1.1/etc/bashrc'</bash>
+
## Remember the instructions on the message that {{tt|emerge}} told you about? Add the {{tt|alias}} command to the end of your {{tt|~/.bashrc}} file: <bash>alias startOF21='source /usr/lib/OpenFOAM/OpenFOAM-2.1.1/etc/bashrc'</bash>
 
## Also add the following {{tt|alias}} command to the end of your {{tt|~/.bashrc}} file: <bash>alias paraFoam='paraFoam -builtin'</bash>
 
## Also add the following {{tt|alias}} command to the end of your {{tt|~/.bashrc}} file: <bash>alias paraFoam='paraFoam -builtin'</bash>
## Whenever you start a new terminal, you can activate the dedicated OpenFOAM 2.1.1 environment by running: <bash>alias startOF211='source /usr/lib/OpenFOAM/OpenFOAM-2.1.1/etc/bashrc'</bash>
+
## Whenever you start a new terminal, you can activate the dedicated OpenFOAM 2.1.1 environment by running: <bash>startOF21</bash>
  
 
[[Category:Installing OpenFOAM on Linux]] [[Category:Installing OpenFOAM on Gentoo]]
 
[[Category:Installing OpenFOAM on Linux]] [[Category:Installing OpenFOAM on Gentoo]]

Latest revision as of 16:12, 2 May 2013

1 Introduction

This page is dedicated to explaining how to install OpenFOAM OF Version 211.png 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!

  1. As root:
    1. To install OpenFOAM 2.1.1:
      emerge =openfoam-2.1.1
      When it finishes installing, take a note of the instructions on the message provided at the end.
    2. To install ParaView:
      emerge paraview
  2. As normal user:
    1. Remember the instructions on the message that emerge told you about? Add the alias command to the end of your ~/.bashrc file:
      alias startOF21='source /usr/lib/OpenFOAM/OpenFOAM-2.1.1/etc/bashrc'
    2. Also add the following alias command to the end of your ~/.bashrc file:
      alias paraFoam='paraFoam -builtin'
    3. Whenever you start a new terminal, you can activate the dedicated OpenFOAM 2.1.1 environment by running:
      startOF21