Difference between revisions of "Installation/Linux/foam-extend-3.0/Arch Linux"

From OpenFOAMWiki
(fixed hard-link to wiki with the correct wiki link)
 
(6 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<span style="color: red"> WARNING: This page is outdated. For up-to-date installation instructions, please refer to </span>: [[Installation/Linux/foam-extend-3.0]].
 
 
  
 
= Introduction =
 
= Introduction =
This page is dedicated to explaining how to install {{-Extend}} {{version3.0-ext}} in [https://www.archlinux.org/ Arch Linux] and derivatives.
 
  
If you do not yet feel comfortable using Linux, then perhaps you better first read the page [[Installation/Working with the Shell|Working with the Shell]] and train a bit with the shell/terminal environments, so you can have a better perception of the steps shown below.
+
[https://www.archlinux.org Arch Linux] is a rolling source-based distribution. It has an official package manager called 'pacman' and its extension 'yaourt' that installs community contributed software packages. The packages installed in this distribution are source-code based, which means that the distribution always gives access to the newest software versions. This can cause some problems when building and installing foam-extend, as for example PyFoam has been ported to Python 3 ([[Contrib/PyFoam#Version_0.6.0_-_Release_2013-03-14|see]]) but not been tested under working conditions.
 +
 
 +
= Installing rpm-org =
 +
 
 +
Install rpm-org, and remove rpm if you have it already installed.
 +
 
 +
    yaourt -R rpm
 +
    yaourt -S rpm-org
 +
 
 +
= Installing and configuring virtualenv python virtual environment =
 +
 
 +
Arch uses Python 3.*, and foam-extend relies on Python 2.*. To easily switch between python versions, [http://virtualenv.readthedocs.org/en/latest/ virtualenv] is [http://stackoverflow.com/questions/1108974/switch-versions-of-python recommended].
 +
 
 +
 
 +
 
 +
Install easy_install
 +
 
 +
    yaourt -S python-setuptools
 +
 
 +
Install virtualenv:
  
__FORCETOC__
+
    sudo easy_install virtualenv
__TOC__
+
  
= ''Copy-Paste'' steps =
+
Configure the python2.7 environment for foamext:
  
A few notes before you start copy-pasting:
+
    virtualenv -p python2.7 --no-site-packages ~/env/foamext
  
# Lines that start with <tt>#</tt> don't have to be ''copy-pasted''. They are just comments to let you know what's going on.
+
Source the python2.7 environment for foamext:
# One wrong character is enough for breaking this guide, so make sure you can read the characters properly or that the installed language system does not break the copied characters!
+
  
 +
    source ~/env/foamext/bin/activate
  
== Manjaro Linux ==
+
= Building foam-extend =
  
The official website for Manjaro is this: [http://manjaro.org/ Manjaro Linux]
+
Once virtualenv and rpm-org are installed and virtualenv is activated as shown above, follow the [[Installation/Linux/foam-extend-3.0|tutorial]] that shows how to build foam-extend on Linux, the rest of the steps are exactly the same as shown there.
  
Here you have a few choices:
 
* You can install from source, by either:
 
** Following the available official instructions from one of these repositories:
 
*** [http://sourceforge.net/p/openfoam-extend/foam-extend-3.0/ci/master/tree/doc/buildInstructions/Arch/Manjaro Building Instructions for Manjaro Linux at the official Extend repository]
 
*** [http://repo.or.cz/w/foam-extend-3.0.git/tree/master:/doc/buildInstructions/Arch/Manjaro Building Instructions for Manjaro Linux at repo.or.cz mirror]
 
*** [https://github.com/Unofficial-Extend-Project-Mirror/openfoam-extend-foam-extend-3.0/tree/master/doc/buildInstructions/Arch/Manjaro Building Instructions for Manjaro Linux at Unofficial-Extend-Project-Mirror@github mirror]
 
*** '''Note''': Before following any of the instructions above, check the section [[../#Note regarding foam-extend-3.0|Note regarding foam-extend-3.0]]
 
  
 
[[Category:Installing OpenFOAM on Linux]] [[Category:Installing OpenFOAM on Arch Linux]]
 
[[Category:Installing OpenFOAM on Linux]] [[Category:Installing OpenFOAM on Arch Linux]]

Latest revision as of 21:23, 21 June 2014

1 Introduction

Arch Linux is a rolling source-based distribution. It has an official package manager called 'pacman' and its extension 'yaourt' that installs community contributed software packages. The packages installed in this distribution are source-code based, which means that the distribution always gives access to the newest software versions. This can cause some problems when building and installing foam-extend, as for example PyFoam has been ported to Python 3 (see) but not been tested under working conditions.

2 Installing rpm-org

Install rpm-org, and remove rpm if you have it already installed.

   yaourt -R rpm 
   yaourt -S rpm-org 

3 Installing and configuring virtualenv python virtual environment

Arch uses Python 3.*, and foam-extend relies on Python 2.*. To easily switch between python versions, virtualenv is recommended.


Install easy_install

   yaourt -S python-setuptools

Install virtualenv:

   sudo easy_install virtualenv

Configure the python2.7 environment for foamext:

   virtualenv -p python2.7 --no-site-packages ~/env/foamext

Source the python2.7 environment for foamext:

   source ~/env/foamext/bin/activate

4 Building foam-extend

Once virtualenv and rpm-org are installed and virtualenv is activated as shown above, follow the tutorial that shows how to build foam-extend on Linux, the rest of the steps are exactly the same as shown there.