Difference between revisions of "Installation/Linux/foam-extend-3.2/Ubuntu"

From OpenFOAMWiki
(Kicked off this page with additional details for 12.04)
 
m (typo)
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
= Introduction =
 
= Introduction =
This page is dedicated to preparing an [http://www.ubuntu.com Ubuntu] system for installing {{-Extend}} {{version3.1-ext}}.
+
This page is dedicated to preparing an [http://www.ubuntu.com Ubuntu] system for installing {{-Extend}} {{version3.2-ext}}.
  
 
__FORCETOC__
 
__FORCETOC__
Line 8: Line 8:
  
 
== Ubuntu 12.04 ==
 
== Ubuntu 12.04 ==
Run the following command:
+
Run the following commands:
 
<bash>sudo apt-get update</bash>
 
<bash>sudo apt-get update</bash>
 
<bash>sudo apt-get install git-core build-essential binutils-dev flex \
 
<bash>sudo apt-get install git-core build-essential binutils-dev flex \
 
bison zlib1g-dev qt4-dev-tools libqt4-dev libncurses5-dev \
 
bison zlib1g-dev qt4-dev-tools libqt4-dev libncurses5-dev \
libxt-dev rpm mercurial graphviz
+
libxt-dev rpm mercurial graphviz python python-dev
 
</bash>
 
</bash>
  
Line 32: Line 32:
 
== Ubuntu 14.04 ==
 
== Ubuntu 14.04 ==
  
Run the following command:
+
Run the following commands:
 
<bash>sudo apt-get update</bash>
 
<bash>sudo apt-get update</bash>
 
<bash>sudo apt-get install git-core build-essential binutils-dev cmake flex \
 
<bash>sudo apt-get install git-core build-essential binutils-dev cmake flex \
 
bison zlib1g-dev qt4-dev-tools libqt4-dev libncurses5-dev libiberty-dev \
 
bison zlib1g-dev qt4-dev-tools libqt4-dev libncurses5-dev libiberty-dev \
libxt-dev rpm mercurial graphviz
+
libxt-dev rpm mercurial graphviz python python-dev
 
</bash>
 
</bash>
  
 
Then continue following the instructions on the previous page, subsection [[Installation/Linux/foam-extend-3.2#Installing from source code|Get the source code]].
 
Then continue following the instructions on the previous page, subsection [[Installation/Linux/foam-extend-3.2#Installing from source code|Get the source code]].
  
 +
 +
== Ubuntu 15.10 ==
 +
 +
Run the following commands:
 +
<bash>sudo apt-get update</bash>
 +
<bash>sudo apt-get install git-core build-essential binutils-dev cmake flex \
 +
zlib1g-dev qt4-dev-tools libqt4-dev libncurses5-dev libiberty-dev \
 +
libxt-dev rpm mercurial graphviz python python-dev
 +
</bash>
 +
 +
Then follow the instructions on the previous page, subsection [[Installation/Linux/foam-extend-3.2#Installing from source code|Get the source code]], although keep in mind to run the following commands '''before''' you run '''{{tt|source etc/bashrc}}''':
 +
<bash>echo export WM_THIRD_PARTY_USE_BISON_27=1  >> etc/prefs.sh</bash>
 +
 +
More specifically, the commands should be executed something like this:
 +
<bash>cd ~/foam/foam-extend-3.2
 +
 +
echo export WM_THIRD_PARTY_USE_BISON_27=1  >> etc/prefs.sh
 +
 +
source etc/bashrc</bash>
 +
 +
 +
== Ubuntu 16.04 ==
 +
 +
Run the following commands:
 +
<bash>sudo apt-get update</bash>
 +
<bash>sudo apt-get install git-core build-essential binutils-dev cmake flex \
 +
zlib1g-dev qt4-dev-tools libqt4-dev libncurses5-dev libiberty-dev \
 +
libxt-dev rpm mercurial graphviz python python-dev
 +
</bash>
 +
 +
Then follow the instructions on the previous page, subsection [[Installation/Linux/foam-extend-3.2#Installing from source code|Get the source code]], although keep in mind to run the following commands '''before''' you run '''{{tt|source etc/bashrc}}''':
 +
<bash>echo export WM_THIRD_PARTY_USE_BISON_27=1  >> etc/prefs.sh</bash>
 +
 +
More specifically, the commands should be executed something like this:
 +
<bash>cd ~/foam/foam-extend-3.2
 +
 +
echo export WM_THIRD_PARTY_USE_BISON_27=1  >> etc/prefs.sh
 +
 +
source etc/bashrc</bash>
 +
 +
In addition, you will need to run the following command to fix an issue with the Flex version:
 +
<bash>find src applications -name "*.L" -type f | xargs sed -i -e 's=\(YY\_FLEX\_SUBMINOR\_VERSION\)=YY_FLEX_MINOR_VERSION < 6 \&\& \1='</bash>
  
 
[[Category:Installing OpenFOAM on Linux]] [[Category:Installing OpenFOAM on Ubuntu]]
 
[[Category:Installing OpenFOAM on Linux]] [[Category:Installing OpenFOAM on Ubuntu]]

Latest revision as of 14:49, 11 September 2016

1 Introduction

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


2 Ubuntu versions

2.1 Ubuntu 12.04

Run the following commands:

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 python python-dev

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 commands:

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 python python-dev

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


2.3 Ubuntu 15.10

Run the following commands:

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

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_THIRD_PARTY_USE_BISON_27=1  >> etc/prefs.sh

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

cd ~/foam/foam-extend-3.2
 
echo export WM_THIRD_PARTY_USE_BISON_27=1  >> etc/prefs.sh
 
source etc/bashrc


2.4 Ubuntu 16.04

Run the following commands:

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

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_THIRD_PARTY_USE_BISON_27=1  >> etc/prefs.sh

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

cd ~/foam/foam-extend-3.2
 
echo export WM_THIRD_PARTY_USE_BISON_27=1  >> etc/prefs.sh
 
source etc/bashrc

In addition, you will need to run the following command to fix an issue with the Flex version:

find src applications -name "*.L" -type f | xargs sed -i -e 's=\(YY\_FLEX\_SUBMINOR\_VERSION\)=YY_FLEX_MINOR_VERSION < 6 \&\& \1='