Difference between revisions of "Installation/Linux/foam-extend-4.0/Ubuntu"
From OpenFOAMWiki
< Installation | Linux | foam-extend-4.0
(→Ubuntu 16.04: Added link to thread on WSL issues) |
|||
Line 1: | Line 1: | ||
= Introduction = | = Introduction = | ||
− | This page is dedicated to preparing an [http://www.ubuntu.com Ubuntu] system for installing {{-Extend}} {{version4. | + | This page is dedicated to preparing an [http://www.ubuntu.com Ubuntu] system for installing {{-Extend}} {{version4.1-ext}}. |
__FORCETOC__ | __FORCETOC__ | ||
Line 6: | Line 6: | ||
= Ubuntu versions = | = Ubuntu versions = | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
== Ubuntu 18.04 == | == Ubuntu 18.04 == | ||
Line 69: | Line 12: | ||
<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 \ | ||
− | zlib1g-dev qt4-dev-tools libqt4-dev libncurses5-dev \ | + | zlib1g-dev qt4-dev-tools libqt4-dev libncurses5-dev curl bison\ |
− | libxt-dev rpm mercurial graphviz python python-dev gcc- | + | libxt-dev rpm mercurial graphviz python python-dev gcc-7 g++-7 |
</bash> | </bash> | ||
− | Then follow the instructions on the previous page, subsection [[Installation/Linux/foam-extend-4. | + | Then follow the instructions on the previous page, subsection [[Installation/Linux/foam-extend-4.1#Installing from source code|Get the source code]], but keep in mind to run a few additional commands '''before''' you run '''{{tt|source etc/bashrc}}'''... More specifically, the commands should be executed something like this: |
− | <bash>cd ~/foam/foam-extend-4. | + | <bash>cd ~/foam/foam-extend-4.1 |
− | |||
− | |||
echo "export WM_CC='gcc-5'" >> etc/prefs.sh | echo "export WM_CC='gcc-5'" >> etc/prefs.sh | ||
echo "export WM_CXX='g++-5'" >> etc/prefs.sh | echo "export WM_CXX='g++-5'" >> etc/prefs.sh | ||
− | |||
source etc/bashrc</bash> | source etc/bashrc</bash> |
Revision as of 11:50, 26 November 2019
1 Introduction
This page is dedicated to preparing an Ubuntu system for installing the foam-extend project .
2 Ubuntu versions
2.1 Ubuntu 18.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 curl bison\ libxt-dev rpm mercurial graphviz python python-dev gcc-7 g++-7
Then follow the instructions on the previous page, subsection Get the source code, but keep in mind to run a few additional commands before you run source etc/bashrc... More specifically, the commands should be executed something like this:
cd ~/foam/foam-extend-4.1 echo "export WM_CC='gcc-5'" >> etc/prefs.sh echo "export WM_CXX='g++-5'" >> etc/prefs.sh source etc/bashrc
Then before running Allwmake.firstInstall, run the following commands:
sed -i -e 's=rpmbuild --define=rpmbuild --define "_build_id_links none" --define=' ThirdParty/tools/makeThirdPartyFunctionsForRPM sed -i -e 's/gcc/\$(WM_CC)/' wmake/rules/linux64Gcc/c sed -i -e 's/g++/\$(WM_CXX)/' wmake/rules/linux64Gcc/c++