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

[OpenFOAM.com] v1606+ Installing on Fedora 23

Register Blogs Community New Posts Updated Threads Search

Like Tree2Likes
  • 1 Post By JonW
  • 1 Post By wyldckat

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 13, 2016, 21:00
Default v1606+ Installing on Fedora 23
  #1
Senior Member
 
Jon Elvar Wallevik
Join Date: Nov 2010
Location: Reykjavik, ICELAND
Posts: 103
Rep Power: 20
JonW will become famous soon enough
Hello foamers

I just finished installing the ozom OpenFOAM-v1606+ on Fedora 23 and this is what I did (as before with the OF 4.0 installation, note that the dnf install part is a bit messy. Still, I haven't had time to clean it, but this works on my pc). Hope this helps...

First install some stuff on your system (same with the of4.0, see prevous post),...

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

-----------------------------------------------------
(0)
Download, unpack and rename the following as explained on the home page...
http://www.openfoam.com/download/install-source.php

OpenFOAM-v1606+.tgz
ThirdParty-v1606+.tgz

... and note also the md5sum discussion in
http://www.cfd-online.com/Forums/ope...oam-v1606.html
---------------------------
(1)
In your .bashrc, put...
alias of1606='export PATH=/usr/lib64/openmpi/bin/:/usr/lib64/ccache:/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/home/jonelvar/.local/bin:/home/jonelvar/bin && export LD_LIBRARY_PATH=/usr/lib64/openmpi/lib/: && source /home/jonelvar/OpenFOAM/OpenFOAM-v1606+/etc/bashrc && PS1='\''\[\e[1;31m\][1606]\[\e[0m\]\[\e[1;32m\][pts/1]\[\e[0m\][\W]\[\e[1;31m\]:\[\e[0m\] '\'' '

(you can also have the path part in the beginning of your .bashrc instead, if you like)
---------------------------
(2)
Download...
http://www.cmake.org/files/v3.2/cmake-3.2.1.tar.gz
unpack (i.e. tar xzf cmake-3.2.1.tar.gz) and put in $WM_THIRD_PARTY_DIR
---------------------------
(3)
New terminal and type of1606

cd $WM_THIRD_PARTY_DIR

./makeCmake 2>&1 | tee makeLogFile_tmp1.txt

wmSET $FOAM_SETTINGS
---------------------------
(4) If you have not done so already, then do...
cd /usr/bin
sudo ln -s qmake-qt5 qmake
---------------------------
(5)
New terminal and type of1606
---------------------------
(6)
cd $WM_THIRD_PARTY_DIR
./makeParaView
---------------------------
(7)
New terminal and type of1606
---------------------------
(8)
foam
export WM_NCOMPPROCS=$(cat /proc/cpuinfo | grep processor | wc -l)
./Allwmake
---------------------------
(9)
New terminal and type of1606
---------------------------
(10)
./Allwmake 2>&1 | tee wmake_log_file_1.txt
In this file you can check if there any errors.
---------------------------
(11)
Do the post-compilation steps as explained in
http://www.openfoam.com/code/build-guide.php
---------------------------
JonW is offline   Reply With Quote

Old   July 13, 2016, 21:03
Default regarding cmake
  #2
Senior Member
 
Jon Elvar Wallevik
Join Date: Nov 2010
Location: Reykjavik, ICELAND
Posts: 103
Rep Power: 20
JonW will become famous soon enough
I just forgot to mention

README.org in ThirdParty-v1606+, says to use version 3.5.2, but the makeCmake wants 3.2.1

I used the latter (i.e. 3.2.1) and everything went OK
mm.abdollahzadeh likes this.
JonW is offline   Reply With Quote

Old   September 11, 2016, 11:50
Default
  #3
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Quick note: I've added a link to this thread here: https://openfoamwiki.net/index.php/I...dora#Fedora_23

Anyone can create these wiki pages, you can even copy-paste-adapt the instructions from other wiki pages that are listed here: https://openfoamwiki.net/index.php/Installation - in section "How to help" it's even explained how to do it.
JonW likes this.
__________________
wyldckat is offline   Reply With Quote

Old   August 8, 2017, 15:57
Default small adjustment of step 1, about $HOME
  #4
Senior Member
 
Jon Elvar Wallevik
Join Date: Nov 2010
Location: Reykjavik, ICELAND
Posts: 103
Rep Power: 20
JonW will become famous soon enough
The "step (1)" above, is supposed to be as follows:

alias ofva1606="export PATH=/usr/lib64/openmpi/bin/:$PATH && export LD_LIBRARY_PATH=/usr/lib64/openmpi/lib/:$LD_LIBRARY_PATH && source $HOME/OpenFOAM/OpenFOAM-v1606+/etc/bashrc && PS1='\[\e[1;30m\][v1606]\[\e[0m\]\[\e[1;30m\][$(tty | cut -d/ -f3,4)]\[\e[0m\][\W]\[\e[1;30m\]:\[\e[0m\] ' "

I don't understand why "$HOME" didn't copy as is, when I did this post.

J.
JonW 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] Installing OpenFOAM 4.0 on Fedora 23 JonW OpenFOAM Installation 6 June 13, 2017 15:29
[OpenFOAM.com] Installing v1612+ on Fedora 25 JonW OpenFOAM Installation 4 January 27, 2017 16:38
[OpenFOAM.com] v1606+ Installing on Fedora 24 JonW OpenFOAM Installation 2 September 11, 2016 16:54
Problem of Installing “engrid” using Fedora 19 sbvawt enGrid 3 November 3, 2014 05:06
why i get this error during installing Linux Fedora? gholamghar Main CFD Forum 1 July 23, 2010 04:14


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