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

[OpenFOAM.com] Installing v1612+ on Fedora 25

Register Blogs Community New Posts Updated Threads Search

Like Tree2Likes
  • 2 Post By olesen

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 19, 2017, 12:02
Default Installing v1612+ on Fedora 25
  #1
Senior Member
 
Jon Elvar Wallevik
Join Date: Nov 2010
Location: Reykjavik, ICELAND
Posts: 103
Rep Power: 19
JonW will become famous soon enough
Hello foamers
I just finished installing OpenFOAM-v1612+ on Fedora 25 and this is what I did (note that the dnf install part is a bit messy, haven't had time to clean it, but this works on my pc). Hope this helps and good luck ...

First install some stuff on your system,...

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
sudo dnf install qt5-qttools-static

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

OpenFOAM-v1612+.tgz
ThirdParty-v1612+.tgz

---------------------------
(1)
In your .bashrc, put...
alias of1612='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-v1612+/etc/bashrc && PS1='\''\[\e[1;31m\][1612]\[\e[0m\]\[\e[1;32m\][pts/1]\[\e[0m\][\W]\[\e[1;31m\]:\[\e[0m\] '\'' '

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

---------------------------
(3)
New terminal and type of1612

cd $WM_THIRD_PARTY_DIR

./makeCmake cmake-3.2.2 2>&1 | tee makeLogFile_tmp1.txt

Please note, there is a possibility that you don't have to compile cmake. I did it, because I got into problems (which was due to missing "sudo dnf install qt5-qttools-static")
---------------------------
(4) If you have not done so already, then do...
cd /usr/bin
sudo ln -s qmake-qt5 qmake
---------------------------
(5)
New terminal and type of1612
---------------------------
(6)
cd $WM_THIRD_PARTY_DIR
./makeParaView
---------------------------
(7)
New terminal and type of1612
---------------------------
(8)
foam
export WM_NCOMPPROCS=$(cat /proc/cpuinfo | grep processor | wc -l)
./Allwmake
---------------------------
(9)
New terminal and type of1612
---------------------------
(10)
./Allwmake 2>&1 | tee wmake_log_file_1.txt
check for error in wmake_log_file_1.txt
---------------------------
(11)
Do the post-compilation steps as explained in
http://www.openfoam.com/code/build-guide.php
e.g.
mkdir -p $FOAM_USER_LIBBIN $FOAM_SITE_LIBBIN $FOAM_USER_APPBIN $FOAM_SITE_APPBIN $WM_PROJECT_USER_DIR
---------------------------
JonW is offline   Reply With Quote

Old   January 19, 2017, 14:15
Default 3 tiny errors,... nothing to worry about
  #2
Senior Member
 
Jon Elvar Wallevik
Join Date: Nov 2010
Location: Reykjavik, ICELAND
Posts: 103
Rep Power: 19
JonW will become famous soon enough
OK, I was bit fast here.
There are 3 tiny errors that occur during the compile. These are...
------------------------------------------------------
collect2: error: ld returned 1 exit status
CMakeFiles/runTimePostProcessing.dir/build.make:538: recipe for target '/home/jonelvar/OpenFOAM/OpenFOAM-v1612+/platforms/linux64GccDPInt32Opt/lib/librunTimePostProcessing.so' failed
make[2]: *** [/home/jonelvar/OpenFOAM/OpenFOAM-v1612+/platforms/linux64GccDPInt32Opt/lib/librunTimePostProcessing.so] Error 1
CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/runTimePostProcessing.dir/all' failed
make[1]: *** [CMakeFiles/runTimePostProcessing.dir/all] Error 2
Makefile:83: recipe for target 'all' failed
make: *** [all] Error 2

WARNING: incomplete build of VTK-based post-processing
------------------------------------------------------

...But, parafoam and foamToVTK works just fine.

To test the important stuff: Just done some tests in the tutorials, with mpirun reconstruct etc. and everything works just fine.

If you can find how to get rid of the above (minor/tiny) errors, then please tell.

Cheers
J.
JonW is offline   Reply With Quote

Old   January 24, 2017, 16:22
Default
  #3
Senior Member
 
Mark Olesen
Join Date: Mar 2009
Location: https://olesenm.github.io/
Posts: 1,685
Rep Power: 40
olesen has a spectacular aura aboutolesen has a spectacular aura about
Quote:
Originally Posted by JonW View Post
OK, I was bit fast here.
There are 3 tiny errors that occur during the compile. These are...
------------------------------------------------------
collect2: error: ld returned 1 exit status
CMakeFiles/runTimePostProcessing.dir/build.make:538: recipe for target '/home/jonelvar/OpenFOAM/OpenFOAM-v1612+/platforms/linux64GccDPInt32Opt/lib/librunTimePostProcessing.so' failed
make[2]: *** [/home/jonelvar/OpenFOAM/OpenFOAM-v1612+/platforms/linux64GccDPInt32Opt/lib/librunTimePostProcessing.so] Error 1
CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/runTimePostProcessing.dir/all' failed
make[1]: *** [CMakeFiles/runTimePostProcessing.dir/all] Error 2
Makefile:83: recipe for target 'all' failed
make: *** [all] Error 2

WARNING: incomplete build of VTK-based post-processing
------------------------------------------------------
Just a guess, but you might try this:
Code:
src/functionObjects/graphics/runTimePostProcessing/Allwclean
src/functionObjects/graphics/runTimePostProcessing/Allwmake
Sometimes the cmake fails if you have moved some of the files between builds (eg, relocated ThirdParty or used a different paraview or vtk).

If this also fails to solve the problem, it could be useful to see if there are more error messages available.

/mark
olesen is offline   Reply With Quote

Old   January 24, 2017, 16:37
Default
  #4
Senior Member
 
Mark Olesen
Join Date: Mar 2009
Location: https://olesenm.github.io/
Posts: 1,685
Rep Power: 40
olesen has a spectacular aura aboutolesen has a spectacular aura about
Quote:
Originally Posted by JonW View Post
sudo dnf install boost install boost-devel
sudo dnf install CGAL CGAL-devel
sudo dnf install qtwebkit qtwebkit-devel CGAL CGAL-devel openmpi openmpi-devel
sudo dnf install scotch scotch-devel ptscotch-openmpi ptscotch-openmpi-devel
If you go to all the effort of installing system libraries for boost, CGAL and scotch (instead of using the ThirdParty source), you will probably also want to have a step where you configure them as well.

You can either edit the relevant
Code:
etc/config.sh/
files, or use the heavily updated
Code:
bin/tools/foamConfigurePaths
script to handle the edits for you.
Eg,
Code:
cd $WM_PROJECT_DIR
bin/tools/foamConfigurePaths -boost boost-system -cgal cgal-system
wmRefresh
For a fully scripted installation, you might also want to take a look at the extra build scripts in the Community Add-ons repo - either to use directly, or just to get ideas.
wyldckat and dfeid like this.
olesen is offline   Reply With Quote

Old   January 27, 2017, 15:38
Default
  #5
Senior Member
 
Jon Elvar Wallevik
Join Date: Nov 2010
Location: Reykjavik, ICELAND
Posts: 103
Rep Power: 19
JonW will become famous soon enough
Thanks for this olesen, I will most certainly try this out.

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


All times are GMT -4. The time now is 07:55.