|
[Sponsors] |
[OpenFOAM.org] 4.0: Install without foamyHexMesh |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
October 10, 2016, 03:54 |
4.0: Install without foamyHexMesh
|
#1 |
Member
Hilbert
Join Date: Aug 2015
Location: Australia
Posts: 50
Rep Power: 11 |
Dear Foamers,
I am trying to install OpenFoam 4.0 on my universities clusters on which i do not have admin rights. Gcc(5.4.0) is installed on the system so i do not have to compile that myself. CGAL is not installed but since I do not need foamyHexMesh this should not be a problem. Now i have been following this install guide: https://openfoamwiki.net/index.php/I...CentOS_SL_RHEL Acording to wyldckat in this thread http://www.cfd-online.com/Forums/ope...s-sl-rhel.html I need to make a couple of adjustments to the standard guide step 7: Code:
source $HOME/OpenFOAM/OpenFOAM-4.0/etc/bashrc WM_LABEL_SIZE=64 Code:
source $HOME/OpenFOAM/OpenFOAM-4.0/etc/bashrc WM_LABEL_SIZE=64 WM_COMPILER_TYPE=ThirdParty FOAMY_HEX_MESH=yes Since paraview is already installed I have skipped steps #13 and #14 as well. If I run allwmake with this configuration I get an error that gmp cannot be found Code:
-- 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:639 (include) -- Configuring incomplete, errors occurred! See also "/home/z5026025/OpenFOAM/ThirdParty-4.0/build/linux64Gcc/CGAL-4.8/CMakeFiles/CMakeOutput.log". + exit 1 Code:
+ '[' -n /home/z5026025/OpenFOAM/ThirdParty-4.0/platforms/linux64Gcc/boost_1_55_0 -o boost_1_55_0 = boost-system ']' + wmake libso SloanRenumber /home/z5026025/OpenFOAM/OpenFOAM-4.0/src/renumber/SloanRenumber g++ -std=c++0x -m64 -Dlinux64 -DWM_ARCH_OPTION=64 -DWM_DP -DWM_LABEL_SIZE=64 -Wall -Wextra -Wold-style-cast -Wnon-virtual-dtor -Wno-unused-parameter -Wno-invalid-offsetof -O3 -DNoRepository -ftemplate-depth-100 -I/home/z5026025/OpenFOAM/ThirdParty-4.0/platforms/linux64Gcc/boost_1_55_0/include -I/home/z5026025/OpenFOAM/OpenFOAM-4.0/src/meshTools/lnInclude -I/home/z5026025/OpenFOAM/OpenFOAM-4.0/src/parallel/decompose/decompositionMethods/lnInclude -I/home/z5026025/OpenFOAM/OpenFOAM-4.0/src/renumber/renumberMethods/lnInclude -IlnInclude -I. -I/home/z5026025/OpenFOAM/OpenFOAM-4.0/src/OpenFOAM/lnInclude -I/home/z5026025/OpenFOAM/OpenFOAM-4.0/src/OSspecific/POSIX/lnInclude -fPIC -shared -Xlinker --add-needed -Xlinker --no-as-needed /home/z5026025/OpenFOAM/OpenFOAM-4.0/platforms/linux64GccDPInt64Opt/src/renumber/SloanRenumber/SloanRenumber.o -L/home/z5026025/OpenFOAM/OpenFOAM-4.0/platforms/linux64GccDPInt64Opt/lib \ -L/home/z5026025/OpenFOAM/ThirdParty-4.0/platforms/linux64Gcc/boost_1_55_0/lib -lboost_thread -lmeshTools -ldecompositionMethods -lrenumberMethods -o /home/z5026025/OpenFOAM/OpenFOAM-4.0/platforms/linux64GccDPInt64Opt/lib/libSloanRenumber.so /usr/bin/ld: cannot find -lboost_thread collect2: error: ld returned 1 exit status make: *** [/home/z5026025/OpenFOAM/OpenFOAM-4.0/platforms/linux64GccDPInt64Opt/lib/libSloanRenumber.so] Error 1 |
|
October 10, 2016, 17:23 |
|
#2 |
Senior Member
|
Hi,
First error is caused by missing GMP (http://gmplib.org), since you have skipped step 10 from the guide, you have no GMP. So compile it manually. Also, since you have skipped step 10, you miss mpfr library (http://www.mpfr.org), which is required by CGAL. Second error is causes by missing boost, guess it should be built during CGAL installation with makeCGAL script. |
|
October 10, 2016, 18:24 |
|
#3 |
Member
Hilbert
Join Date: Aug 2015
Location: Australia
Posts: 50
Rep Power: 11 |
HI alexeym,
Thanks for your reply. From what I understand, Openfoam only needs CGAL (and therefore boost and gmp and mpfr ) for foamyhexmesh. Since I don't need foamyhexmesh and only the solvers can i compile without needing CGAL and the other lib's? |
|
October 10, 2016, 23:03 |
|
#4 |
Senior Member
|
Well,
Code:
$ pwd $HOME/OpenFOAM/OpenFOAM-4.0 $ cd src $ $ grep -rl CGAL * renumber/Allwmake $ cd ../applications/ $ grep -rl CGAL * utilities/mesh/generation/Allwmake ... utilities/mesh/generation/foamyMesh/... ... To skip foamy*Mesh build you just need to unset FOAMY_HEX_MESH environment variable (export -n FOAMY_HEX_MESH or comment out 'export FOAMY_HEX_MESH=yes' line in etc/bashrc). To skip SloanRenumber build you need to unset BOOST_ARCH_PATH and set boost_version variable to something not equal to boost-system. This can be achieved by commenting out whole etc/config.sh/CGAL file. Or comment out 'wmake $targetType SloanRenumber' in src/renumber/Allwmake file. |
|
October 11, 2016, 01:41 |
|
#5 |
Member
Hilbert
Join Date: Aug 2015
Location: Australia
Posts: 50
Rep Power: 11 |
Hi alexeym,
Thanks heaps, commenting out wmake $targetType SloanRenumber' did the trick. It is all running smoothly now. Cheers |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[foam-extend.org] How to install foam-extend 4.0 in UBUNTU 18.04 | silvino | OpenFOAM Installation | 19 | June 21, 2022 16:57 |
[OpenFOAM.org] cant able to install openfoam 4.0 | SCORPIO | OpenFOAM Installation | 1 | February 24, 2018 19:12 |
[OpenFOAM.org] Installing OpenFOAM 4.0 on Fedora 23 | JonW | OpenFOAM Installation | 6 | June 13, 2017 15:29 |
error make SU2 4.0.1 | Heathckliff | SU2 Installation | 2 | November 9, 2015 06:48 |
How to Install OpenFOAM on 64 Ubuntu 9.04 | hansel | OpenFOAM Installation | 62 | March 19, 2010 15:43 |