Installation/Linux/foam-extend-3.2/Ubuntu

From OpenFOAMWiki
< Installation‎ | Linux‎ | foam-extend-3.2
Revision as of 18:11, 17 October 2015 by Wyldckat (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

1 Introduction

This page is dedicated to preparing an Ubuntu system for installing the foam-extend project OF Version 31ext.png.


2 Ubuntu versions

2.1 Ubuntu 12.04

Run the following command:

sudo apt-get update
sudo apt-get install git-core build-essential binutils-dev flex \
bison zlib1g-dev qt4-dev-tools libqt4-dev libncurses5-dev \
libxt-dev rpm mercurial graphviz

Then follow the instructions on the previous page, subsection Get the source code, although keep in mind to run the following commands before you run source etc/bashrc:

echo export WM_COMPILER=Gcc49 >> etc/prefs.sh
echo export WM_THIRD_PARTY_USE_GCC_492=1  >> etc/prefs.sh
echo export compilerInstall=FOAM >> etc/prefs.sh

More specifically, the commands should be executed something like this:

cd ~/foam/foam-extend-3.2
 
echo export WM_COMPILER=Gcc49 >> etc/prefs.sh
echo export WM_THIRD_PARTY_USE_GCC_492=1  >> etc/prefs.sh
echo export compilerInstall=FOAM >> etc/prefs.sh
 
source etc/bashrc


2.2 Ubuntu 14.04

Run the following command:

sudo apt-get update
sudo apt-get install git-core build-essential binutils-dev cmake flex \
bison zlib1g-dev qt4-dev-tools libqt4-dev libncurses5-dev libiberty-dev \
libxt-dev rpm mercurial graphviz

Then continue following the instructions on the previous page, subsection Get the source code.