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

OpenFOAM 4.1 on Fedora 24

Register Blogs Members List Search Today's Posts Mark Forums Read

Like Tree3Likes
  • 3 Post By JonW

Reply
 
LinkBack Thread Tools Display Modes
Old   October 21, 2016, 11:26
Default OpenFOAM 4.1 on Fedora 24
  #1
Member
 
Jon Elvar Wallevik
Join Date: Nov 2010
Location: Reykjavik, ICELAND
Posts: 85
Rep Power: 12
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 and Talder 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: 6
Rep Power: 4
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, 07:51
Default
  #3
New Member
 
Chris Pounds
Join Date: May 2015
Posts: 17
Rep Power: 4
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, 08:02
Default
  #4
New Member
 
Tom Alderweireldt
Join Date: Jan 2015
Location: Schilde, Belgium
Posts: 6
Rep Power: 4
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, 08:44
Default
  #5
Member
 
Jon Elvar Wallevik
Join Date: Nov 2010
Location: Reykjavik, ICELAND
Posts: 85
Rep Power: 12
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

Reply

Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
OpenFOAM v3.0+ ?? SBusch OpenFOAM 22 December 26, 2016 15:24
OpenFOAM 4.1 Released CFDFoundation OpenFOAM Announcements from OpenFOAM Foundation 0 October 13, 2016 06:42
OpenFOAM installation Fedora 19 dsn OpenFOAM Installation 39 April 19, 2015 14:13
OpenFOAM installation on Fedora 18 sd55 OpenFOAM Installation 18 April 14, 2013 15:40
OpenFoam 1.7.1 on Fedora 12 Help... Alphax OpenFOAM Installation 7 November 2, 2012 15:33


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