|
[Sponsors] |
[OpenFOAM.org] Openfoam 5 on centos 7, environment variables issue |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
January 20, 2018, 16:28 |
Openfoam 5 on centos 7, environment variables issue
|
#1 |
Member
Join Date: Mar 2016
Posts: 33
Rep Power: 10 |
I am trying to install Openfoam 5 on a centos 7 box. I followed the steps on the wiki pages with the following commands:
Code:
cd /share/apps mkdir OpenFOAM cd OpenFOAM/ wget "http://dl.openfoam.org/source/5-0" -O OpenFOAM-5.0.tgz wget "http://dl.openfoam.org/third-party/5-0" -O ThirdParty-5.0.tgz tar -xzf OpenFOAM-5.0.tgz tar -xzf ThirdParty-5.0.tgz mv OpenFOAM-5.x-version-5.0 OpenFOAM-5.0 mv ThirdParty-5.x-version-5.0 ThirdParty-5.0 cd ThirdParty-5.0 mkdir download wget -P download https://www.cmake.org/files/v3.9/cmake-3.9.0.tar.gz wget -P download https://github.com/CGAL/cgal/release...AL-4.10.tar.xz wget -P download https://netix.dl.sourceforge.net/pro...1_55_0.tar.bz2 tar -xzf download/cmake-3.9.0.tar.gz tar -xJf download/CGAL-4.10.tar.xz tar -xjf download/boost_1_55_0.tar.bz2 cd .. sed -i -e 's/\(boost_version=\)boost-system/\1boost_1_55_0/' OpenFOAM-5.0/etc/config.sh/CGAL sed -i -e 's/\(cgal_version=\)cgal-system/\1CGAL-4.10/' OpenFOAM-5.0/etc/config.sh/CGAL echo "alias of50='source /share/apps/OpenFOAM/OpenFOAM-5.0/etc/bashrc $FOAM_SETTINGS'" >> $HOME/.bashrc source ~/.bashrc of50 cd $WM_THIRD_PARTY_DIR wget "https://raw.github.com/wyldckat/scri.../master/getGcc" wget "https://raw.github.com/wyldckat/Thir...s/makeBinutils" wget "https://raw.github.com/wyldckat/Thir...ls/getBinutils" chmod +x get* make* ./getGcc gcc-4.8.5 gmp-5.1.2 mpfr-3.1.2 mpc-1.0.1 ./makeGcc -no-multilib gmp-5.1.2 mpfr-3.1.2 mpc-1.0.1 gcc-4.8.5 wmRefresh ./getBinutils ./makeBinutils gcc-4.8.5 wmRefresh #change version of cmake to 3.9.0 in makeCmake ./makeCmake wmRefresh ./makeCGAL I opened makeCGAL and added the full path of the cmake instead of the cmake command only. Then I got another error which says can not find GMP. Code:
== Set up flags == -- Build type: Release -- USING CXXFLAGS = ' -frounding-math -O3 -DNDEBUG' -- USING LDFLAGS = ' ' == Set up flags (DONE) == == Detect external libraries == -- External libraries supported: GMP;GMPXX;MPFR;ZLIB;OpenGL;LEDA;MPFI;RS;RS3;OpenNL;Eigen3;BLAS;LAPACK;QGLViewer;ESBTL;Coin3D;NTL;IPE -- Preconfiguring library: GMP ... -- Could NOT find GMP (missing: GMP_LIBRARIES GMP_INCLUDE_DIR) CMake Error at cmake/modules/CGAL_SetupDependencies.cmake:66 (message): CGAL requires GMP to be found Call Stack (most recent call first): CMakeLists.txt:681 (include) -- Configuring incomplete, errors occurred! See also "/share/apps/OpenFOAM/ThirdParty-5.0/build/linux64Gcc48/CGAL-4.10/CMakeFiles/CMakeOutput.log". + exit 1 [root@rocks7 ThirdParty-5.0]# ls Allclean build etc makeBinutils makeLLVM README.html Allwmake CGAL-4.10 gcc-4.8.5 makeCGAL makeParaView README.org AllwmakeLibccmio cmake-3.9.0 getBinutils makeCmake mpc-1.0.1 README_scotch binutils-2.23 COPYING getGcc makeGcc mpfr-3.1.2 scotch_6.0.3 boost_1_55_0 download gmp-5.1.2 makeGperftools platforms |
|
October 5, 2020, 23:45 |
|
#2 |
New Member
zhaobo
Join Date: Sep 2019
Posts: 6
Rep Power: 7 |
So, have you solved it yet? I come up with the same problem.
|
|
October 6, 2020, 09:52 |
|
#3 |
Senior Member
Mark Olesen
Join Date: Mar 2009
Location: https://olesenm.github.io/
Posts: 1,715
Rep Power: 40 |
Even if you compile CGAL in headers-only mode, it still seems to require gmp and mprf development headers. One of the first things you can do would be to disable CGAL. Edit the etc/config.sh/CCAL file to indicate 'none'. Refresh the environment and continue to build. Leaving out CGAL will only remove the foamy mesher, which not many people use anyhow.
However, I would suggest using a new version of OpenFOAM. Since you are using CentOS-7, you could use the copr build of OpenFOAM-v1912 or OpenFOAM-v2006: https://develop.openfoam.com/Develop...ompiled/redhat This should save you a considerable amount of time. |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
OpenFOAM 4.0 Released | CFDFoundation | OpenFOAM Announcements from OpenFOAM Foundation | 2 | October 6, 2017 06:40 |
[OpenFOAM.org] OpenFOAM 3.01 on Centos 5.11 - MPI Issue | vmgbritt | OpenFOAM Installation | 4 | September 15, 2016 15:42 |
[OpenFOAM.org] Paraview install failing (With OpenFOAM 3.0.0 and CentOS 7) | davidrobinson50 | OpenFOAM Installation | 1 | June 2, 2016 18:54 |
how to add OpenFoam in module environment | smpark | OpenFOAM | 4 | May 12, 2011 15:00 |
OpenFOAM 1.5.x package - CentOS 5.3 x86_64 | linnemann | OpenFOAM Installation | 7 | July 30, 2009 04:14 |