CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Installation

[OpenFOAM.org] OpenFOAM 4.1 on Fedora 24

Register Blogs Community New Posts Updated Threads Search

Like Tree4Likes
  • 4 Post By JonW

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 21, 2016, 12:26
Default OpenFOAM 4.1 on Fedora 24
  #1
Senior Member
 
Jon Elvar Wallevik
Join Date: Nov 2010
Location: Reykjavik, ICELAND
Posts: 103
Rep Power: 20
JonW will become famous soon enough
Hi foamers,
I just finished installing OpenFOAM 4.1 on Fedora 24. Now it is easier than before
Really, I just followed the homepage without modifications (more or less).
If you are lazy, and just want to copy paste then you have it below. Hope this helps.
J.


sudo dnf groupinstall 'Development Tools'
sudo dnf groupinstall 'C Development Tools and Libraries'
sudo dnf install openmpi openmpi-devel qt-devel qt-webkit-devel zlib-devel cmake wget boost-devel gmp-devel mpfr-devel patch readline-devel ncurses-devel python python-devel
sudo dnf install git gitk
sudo dnf install openmpi-devel qt-devel qtwebkit-devel zlib-devel cmake
sudo dnf install openmpi openmpi-devel qt-devel qt-webkit-devel zlib-devel cmake wget git gitk
sudo dnf install boost-devel gmp-devel mpfr-devel patch readline-devel ncurses-devel python python-devel
sudo dnf install CGAL CGAL-devel binutils-devel mercurial
sudo dnf install compat-gcc-34-g77
sudo dnf install freeglut freeglut-devel flex bison cmake zlib zlib-devel boost-thread boost-system boost-devel libXt-devel libXt scotch scotch-devel qt5-qtwebkit-devel
sudo dnf install qtwebkit qtwebkit-devel CGAL CGAL-devel openmpi openmpi-devel
sudo dnf install zlib zlib-devel boost boost-math boost-thread boost-system boost-devel openmpi openmpi-devel readline readline-devel ncurses-devel ncurses-libs ncurses libXt libXt-devel
sudo dnf install scotch scotch-devel ptscotch-openmpi ptscotch-openmpi-devel ptscotch-openmpi-devel-parmetis
sudo dnf install metis metis-devel fftw

----------------------------------------------------------
cd
cd OpenFOAM
wget -O - http://dl.openfoam.org/source/4-1 | tar xvz
wget -O - http://dl.openfoam.org/third-party/4-1 | tar xvz
----------------------------------------------------------
mv OpenFOAM-4.x-version-4.1 OpenFOAM-4.1
mv ThirdParty-4.x-version-4.1 ThirdParty-4.1
----------------------------------------------------------
in your ~/.bashrc
alias of41="export PATH=/usr/lib64/openmpi/bin/:$PATH && export LD_LIBRARY_PATH=/usr/lib64/openmpi/lib/:$LD_LIBRARY_PATH && source $HOME/OpenFOAM/OpenFOAM-4.1/etc/bashrc && PS1='\[\e[1;31m\][4.1]\[\e[0m\]\[\e[1;32m\][$(tty | cut -d/ -f3,4)]\[\e[0m\][\W]\[\e[1;31m\]:\[\e[0m\] ' "
----------------------------------------------------------
if you havent done so already....
cd /usr/bin
sudo ln -s qmake-qt5 qmake
----------------------------------------------------------
New terminal and type "of41"
cd $WM_THIRD_PARTY_DIR
./Allwmake
----------------------------------------------------------
New terminal and type "of41"
cd $WM_THIRD_PARTY_DIR
./makeParaView
----------------------------------------------------------
New terminal and type "of41"
foam
./Allwmake -j
----------------------------------------------------------
New terminal and type "of41"
foam
./Allwmake 2>&1 | tee wmake_log_file.txt
(you can check wmake_log_file.txt if there are any errors)
----------------------------------------------------------
wikstrom, cutter, Talder and 1 others like this.
JonW is offline   Reply With Quote

Old   January 20, 2017, 18:26
Smile worked like a charm for me on my recently upgraded fedora 24, many thanks, Talder
  #2
New Member
 
Tom Alderweireldt
Join Date: Jan 2015
Location: Schilde, Belgium
Posts: 16
Rep Power: 11
Talder is on a distinguished road
Quote:
Originally Posted by JonW View Post
Hi foamers,
I just finished installing OpenFOAM 4.1 on Fedora 24. Now it is easier than before
Really, I just followed the homepage without modifications (more or less).
If you are lazy, and just want to copy paste then you have it below. Hope this helps.
J.


sudo dnf groupinstall 'Development Tools'
sudo dnf groupinstall 'C Development Tools and Libraries'
sudo dnf install openmpi openmpi-devel qt-devel qt-webkit-devel zlib-devel cmake wget boost-devel gmp-devel mpfr-devel patch readline-devel ncurses-devel python python-devel
sudo dnf install git gitk
sudo dnf install openmpi-devel qt-devel qtwebkit-devel zlib-devel cmake
sudo dnf install openmpi openmpi-devel qt-devel qt-webkit-devel zlib-devel cmake wget git gitk
sudo dnf install boost-devel gmp-devel mpfr-devel patch readline-devel ncurses-devel python python-devel
sudo dnf install CGAL CGAL-devel binutils-devel mercurial
sudo dnf install compat-gcc-34-g77
sudo dnf install freeglut freeglut-devel flex bison cmake zlib zlib-devel boost-thread boost-system boost-devel libXt-devel libXt scotch scotch-devel qt5-qtwebkit-devel
sudo dnf install qtwebkit qtwebkit-devel CGAL CGAL-devel openmpi openmpi-devel
sudo dnf install zlib zlib-devel boost boost-math boost-thread boost-system boost-devel openmpi openmpi-devel readline readline-devel ncurses-devel ncurses-libs ncurses libXt libXt-devel
sudo dnf install scotch scotch-devel ptscotch-openmpi ptscotch-openmpi-devel ptscotch-openmpi-devel-parmetis
sudo dnf install metis metis-devel fftw

----------------------------------------------------------
cd
cd OpenFOAM
wget -O - http://dl.openfoam.org/source/4-1 | tar xvz
wget -O - http://dl.openfoam.org/third-party/4-1 | tar xvz
----------------------------------------------------------
mv OpenFOAM-4.x-version-4.1 OpenFOAM-4.1
mv ThirdParty-4.x-version-4.1 ThirdParty-4.1
----------------------------------------------------------
in your ~/.bashrc
alias of41="export PATH=/usr/lib64/openmpi/bin/:$PATH && export LD_LIBRARY_PATH=/usr/lib64/openmpi/lib/:$LD_LIBRARY_PATH && source $HOME/OpenFOAM/OpenFOAM-4.1/etc/bashrc && PS1='\[\e[1;31m\][4.1]\[\e[0m\]\[\e[1;32m\][$(tty | cut -d/ -f3,4)]\[\e[0m\][\W]\[\e[1;31m\]:\[\e[0m\] ' "
----------------------------------------------------------
if you havent done so already....
cd /usr/bin
sudo ln -s qmake-qt5 qmake
----------------------------------------------------------
New terminal and type "of41"
cd $WM_THIRD_PARTY_DIR
./Allwmake
----------------------------------------------------------
New terminal and type "of41"
cd $WM_THIRD_PARTY_DIR
./makeParaView
----------------------------------------------------------
New terminal and type "of41"
foam
./Allwmake -j
----------------------------------------------------------
New terminal and type "of41"
foam
./Allwmake 2>&1 | tee wmake_log_file.txt
(you can check wmake_log_file.txt if there are any errors)
----------------------------------------------------------
This worked like a charm on my newly upgraded Fedora 24 system, many thanks, I spent a lot more time on getting previous OpenFOAM releases to install properly.
Talder
Talder is offline   Reply With Quote

Old   April 15, 2017, 08:51
Default
  #3
New Member
 
Chris Pounds
Join Date: May 2015
Posts: 20
Rep Power: 11
Pndsc is on a distinguished road
Does anyone know if these instructions are current for Fedora 25?
Pndsc is offline   Reply With Quote

Old   April 15, 2017, 09:02
Default
  #4
New Member
 
Tom Alderweireldt
Join Date: Jan 2015
Location: Schilde, Belgium
Posts: 16
Rep Power: 11
Talder is on a distinguished road
Hi, I did not reinstall or recompile for Fedora 25, but I have done an online upgrade from Fedora 24 to Fedora 25 and found out OpenFoam 4.1 still works.
Talder is offline   Reply With Quote

Old   April 18, 2017, 09:44
Default
  #5
Senior Member
 
Jon Elvar Wallevik
Join Date: Nov 2010
Location: Reykjavik, ICELAND
Posts: 103
Rep Power: 20
JonW will become famous soon enough
In fedora 24, I tarballed my OpenFOAM directory (i.e. "tar czf of.tgz OpenFOAM" in ~). Thereafter I did a completely fresh install for f25.
After extracting the tarball "tar xzf of.tgz" in f25, no problems so far (of course after doing the dnf install stuff mentioned above).
JonW is offline   Reply With Quote

Old   November 10, 2017, 09:57
Default On Fedora 26 works also very well!
  #6
New Member
 
Stanislav Knotek
Join Date: Nov 2013
Location: Brno
Posts: 3
Rep Power: 13
Stanislav is on a distinguished road
On Fedora 26 it works also well. Only needed to fix bugs using

Paraview installation on scientific linux??

and

https://www.cfd-online.com/Forums/op...dora-24-a.html

where simply [34567] was used.
Stanislav is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
[OpenFOAM.org] OpenFOAM 2.4.0 and Fedora 22: error building CGAL macelee OpenFOAM Installation 4 April 2, 2016 23:01
OpenFOAM v3.0.1 Training, London, Houston, Berlin, Jan-Mar 2016 cfd.direct OpenFOAM Announcements from Other Sources 0 January 5, 2016 04:18
OpenFOAM Training, London, Chicago, Munich, Sep-Oct 2015 cfd.direct OpenFOAM Announcements from Other Sources 2 August 31, 2015 14:36
OpenFOAM 1.6 ext - Compilation errors - Fedora 17(32bit) toolpost OpenFOAM Installation 15 September 21, 2012 10:38
Qt installation in Fedora for OpenFOAM......Required Urgently...... devesh.baghel OpenFOAM 1 November 17, 2009 10:08


All times are GMT -4. The time now is 01:37.