|
[Sponsors] |
[OpenFOAM.org] openfoam 2.3.0 installation in RHEL 5 |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
May 16, 2014, 05:03 |
openfoam 2.3.0 installation in RHEL 5
|
#1 |
New Member
pratap
Join Date: Nov 2013
Posts: 21
Rep Power: 12 |
Hi All,
I would like to know whether I can install OF 2.30 in red hat linux 5. Regards Pratap |
|
May 23, 2014, 12:03 |
Install OpenFOAM 2.3.0 on RHEL4
|
#2 |
Member
J.-H. Wang
Join Date: Oct 2010
Posts: 72
Rep Power: 16 |
I am trying to install 2.3.0 on RHEL 4.1.2 on a cluster, following the instructions of
http://openfoamwiki.net/index.php/In...CentOS_SL_RHEL I was able to follow all the steps except for the one: Code:
#forcefully load Open-MPI into the environment #the export command has been reported as needed due to the #module not being available in a clean installation module load openmpi-x86_64 || export PATH=$PATH:/usr/lib64/openmpi/bin #here you can change 4 to the number of cores you've got source $HOME/OpenFOAM/OpenFOAM-2.3.0/etc/bashrc WM_NCOMPPROCS=4 foamCompiler=ThirdParty \ WM_COMPILER=Gcc48 WM_MPLIB=SYSTEMOPENMPI Code:
-bash: module: command not found log file: https://dl.dropboxusercontent.com/u/...-22-14.log.zip JHW |
|
May 24, 2014, 13:45 |
|
#3 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,980
Blog Entries: 45
Rep Power: 128 |
Greetings Pratap,
I've finished writing and testing the following instructions on CentOS 5.10: http://openfoamwiki.net/index.php/In...EL#CentOS_5.10 I don't know which specific RHEL 5 you have, but do try those instructions and let me know if anything doesn't work as intended. Best regards, Bruno
__________________
|
|
May 24, 2014, 14:28 |
|
#4 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,980
Blog Entries: 45
Rep Power: 128 |
Greetings JHW,
I was going to try and install CentOS 4.8 on a virtual machine, but then I re-read your post and I think you're confusing version numbers, as there is no "RHEL 4.1.2", but RHEL 5 comes with GCC 4.1.2. You can confirm this by running: Code:
cat /etc/*-release Code:
CentOS release 5.10 (Final) Best regards, Bruno
__________________
|
|
May 24, 2014, 19:45 |
|
#5 |
Member
J.-H. Wang
Join Date: Oct 2010
Posts: 72
Rep Power: 16 |
Hi Bruno,
Thanks for the reply. That was very embarrassing I was simply following the thread here http://www.howtoforge.com/how_to_fin...x_distribution And I thought the displayed version of the gcc compiler is the linux distribution version. Lesson learned! I remove the entire Thirdparty folder and re-install it following this instruction http://openfoamwiki.net/index.php/In...CentOS_SL_RHEL and now it works, with one minor problem. Just thought you might want to know. I had problems building setSet library (log attached). I was able to identify the problem caused by the readline utility. I followed the solution listed here http://openfoamwiki.net/index.php/In...mpile_OpenFOAM and solved it. Anyway, thanks a lot again. JHW |
|
May 25, 2014, 06:40 |
|
#6 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,980
Blog Entries: 45
Rep Power: 128 |
Hi JHW,
Many thanks for the detailed feedback! It's the second time someone tells me that this issue exists with building setSet, but I usually am not able to trigger this issue. I'll give it another try to double-check this detail and add a sed based hack to the instructions... but I'll also try to figure out why this occurs. By the way, knowing which RHEL version you're using would possibly make it easier for me to reproduce the same error. edit: Figured it out why it happened and have updated the wiki page accordingly. Best regards, Bruno PS: As your thread was on the same topic of installing OpenFOAM 2.3.0 on RHEL 5, I've merged the two related threads, to keep a good discussion thread on this topic! Last edited by wyldckat; May 25, 2014 at 08:19. Reason: see "edit:" |
|
May 25, 2014, 11:53 |
|
#7 |
Member
J.-H. Wang
Join Date: Oct 2010
Posts: 72
Rep Power: 16 |
Thanks. The version I was using:
Code:
-bash-3.2$ cat /etc/*-release Red Hat Enterprise Linux Server release 5.10 (Tikanga) |
|
May 25, 2014, 19:28 |
|
#8 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,980
Blog Entries: 45
Rep Power: 128 |
Hi JHW,
Many thanks for the feedback! Then it's pretty much the same as CentOS 5.10. What I managed to figure out was that as I was using a clean system, I therefore didn't have the "readline" development package installed, hence setSet would not use the library "readline". But on your system, it was already installed, which lead to the error you got. I later re-tried with CentOS 6.5 as well, to ascertain if this issue also happened there or not, but it didn't. Nonetheless, it might happen with 6.4 or older, as I vaguely remember that this issue was fixed sometime ago, namely the dependency on the "libncurses.so". Best regards, Bruno
__________________
|
|
June 2, 2014, 13:32 |
Problem installing on CentOS 5.10
|
#9 |
New Member
Michael Strawbridge
Join Date: Jun 2014
Posts: 6
Rep Power: 12 |
I have followed the recommended steps at http://openfoamwiki.net/index.php/In...EL#CentOS_5.10 for installing on our CentOS 5.10 cluster with success until the last step.
At step 18 when I run: Code:
./makeParaView4 -qmake $WM_THIRD_PARTY_DIR/platforms/$WM_ARCH$WM_COMPILER/qt-4.8.4/bin/qmake PARAVIEW_INSTALL_THIRD_PARTY_LIBRARIES:BOOL=ON Code:
ParaView_SOURCE_DIR=/opt/OpenFOAM/ThirdParty-2.3.0/ParaView-4.1.0 ParaView_BINARY_DIR=/opt/OpenFOAM/ThirdParty-2.3.0/build/linux64Gcc48/ParaView-4.1.0 ParaView_DIR=/opt/OpenFOAM/ThirdParty-2.3.0/platforms/linux64Gcc48/ParaView-4.1.0 sed: can't read /opt/OpenFOAM/ThirdParty-2.3.0/ParaView-4.1.0/VTK/Utilities/kwsys/kwsysDateStamp.cmake: No such file or directory date-stamp: Build stages selected --------------------- -config true -make true -install true --------------------- Features selected mesa false mpi false python false qt true --------------------- Version information qt 4.8.4 version 4.1.0 major 4.1 build Release MISMATCH! specified 4.1.0 found --------------------- removing old build directory /opt/OpenFOAM/ThirdParty-2.3.0/build/linux64Gcc48/ParaView-4.1.0 ---- Configuring paraview-4.1.0 (major version: 4.1) MPI support : false Python support : false MESA support : false Qt dev support : true Source : /opt/OpenFOAM/ThirdParty-2.3.0/ParaView-4.1.0 Build : /opt/OpenFOAM/ThirdParty-2.3.0/build/linux64Gcc48/ParaView-4.1.0 Target : /opt/OpenFOAM/ThirdParty-2.3.0/platforms/linux64Gcc48/ParaView-4.1.0 Build type : Release ---- cmake -DCMAKE_INSTALL_PREFIX:PATH=/opt/OpenFOAM/ThirdParty-2.3.0/platforms/linux64Gcc48/ParaView-4.1.0 -DBUILD_SHARED_LIBS:BOOL=ON VTK_USE_RPATH:BOOL=OFF -DPARAVIEW_INSTALL_DEVELOPMENT_FILES:BOOL=ON -DBUILD_TESTING:BOOL=OFF -DPARAVIEW_INSTALL_THIRD_PARTY_LIBRARIES:BOOL=ON -DPARAVIEW_BUILD_QT_GUI=ON -DQT_QMAKE_EXECUTABLE:FILEPATH=/opt/OpenFOAM/ThirdParty-2.3.0/platforms/linux64Gcc48/qt-4.8.4/bin/qmake -DCMAKE_BUILD_TYPE:STRING=Release /opt/OpenFOAM/ThirdParty-2.3.0/ParaView-4.1.0 ---- -- The C compiler identification is GNU CMake Error: Could not find cmake module file: /opt/OpenFOAM/ThirdParty-2.3.0/build/linux64Gcc48/ParaView-4.1.0/CMakeFiles/2.8.12.1/CMakeCCompiler.cmake -- The CXX compiler identification is GNU CMake Error: Could not find cmake module file: /opt/OpenFOAM/ThirdParty-2.3.0/build/linux64Gcc48/ParaView-4.1.0/CMakeFiles/2.8.12.1/CMakeCXXCompiler.cmake -- Check for working C compiler: /opt/OpenFOAM/ThirdParty-2.3.0/platforms/linux64/gcc-4.8.1/bin/gcc CMake Error at /opt/cmake/Modules/CMakeTestCCompiler.cmake:36 (TRY_COMPILE): Unknown extension ".c" for file /opt/OpenFOAM/ThirdParty-2.3.0/build/linux64Gcc48/ParaView-4.1.0/CMakeFiles/CMakeTmp/testCCompiler.c try_compile() works only for enabled languages. Currently these are: C CXX See project() command to enable other languages. Call Stack (most recent call first): CMakeLists.txt:32 (project) -- Check for working C compiler: /opt/OpenFOAM/ThirdParty-2.3.0/platforms/linux64/gcc-4.8.1/bin/gcc -- broken CMake Error at /opt/cmake/Modules/CMakeTestCCompiler.cmake:52 (MESSAGE): The C compiler "/opt/OpenFOAM/ThirdParty-2.3.0/platforms/linux64/gcc-4.8.1/bin/gcc" is not able to compile a simple test program. It fails with the following output: CMake will not be able to correctly generate this project. Call Stack (most recent call first): CMakeLists.txt:32 (project) -- Configuring incomplete, errors occurred! See also "/opt/OpenFOAM/ThirdParty-2.3.0/build/linux64Gcc48/ParaView-4.1.0/CMakeFiles/CMakeOutput.log". See also "/opt/OpenFOAM/ThirdParty-2.3.0/build/linux64Gcc48/ParaView-4.1.0/CMakeFiles/CMakeError.log". Starting make make: *** No targets specified and no makefile found. Stop. real 0m0.003s user 0m0.002s sys 0m0.001s Done make Installing ParaView to /opt/OpenFOAM/ThirdParty-2.3.0/platforms/linux64Gcc48/ParaView-4.1.0 make: *** No rule to make target `install'. Stop. --- Installation complete for paraview-4.1.0 Set environment variables: export ParaView_DIR=/opt/OpenFOAM/ThirdParty-2.3.0/platforms/linux64Gcc48/ParaView-4.1.0 export PATH=$ParaView_DIR/bin:$PATH export PV_PLUGIN_PATH=$FOAM_LIBBIN/paraview-4.1 --- Done -------- Thanks. Mike Last edited by wyldckat; June 2, 2014 at 15:06. Reason: Added [CODE][/CODE] |
|
June 2, 2014, 15:17 |
|
#10 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,980
Blog Entries: 45
Rep Power: 128 |
Greetings Mike and welcome to the forum!
My first suspicion is that the error message you're getting is related to the build being made as superuser, i.e. as root. The installation instructions on the wiki were designed for building as normal user, not as root, because that way it's less likely that the person following the wiki page to skip an important step and mistakenly make an error, and when trying to fix it, accidentally completely destroys the whole system installation... My second suspicion is that you ran out of disk space on the partition that has the folder "/opt". My third suspicion is that "/opt" is an NFS mount, which can lead to seriously major problems when doing trying to build source code over a shared network folder, because it's a lot easier this way for metadata to not be up-to-date on time of the build. If possible, please retry following the build instructions as a normal user. Once the build is completely done, you can copy or move only the important folders+files of the installation to "/opt" and then use chown and chmod for restoring the correct permissions. Best regards, Bruno
__________________
|
|
June 2, 2014, 16:05 |
|
#11 |
New Member
Michael Strawbridge
Join Date: Jun 2014
Posts: 6
Rep Power: 12 |
Bruno ... thanks for the quick reply.
You are right on one of your suspicions. I am installing as root ... maybe not good, but I've come this far so I'll finish. /opt is a local directory and is not running out of disk space. As it turns out my problems were caused by yet another version of cmake that was previously installed in /opt. It was picking this up instead of the expected CentOS version from cmake-2.6.4. After I removed that from my execution path, it used the CentOS cmake and the build of ParaView 4.1.0 completed as expected. Thanks for your help and thanks especially for such well written step-by-step instructions for installation! Mike |
|
June 3, 2014, 13:26 |
|
#12 |
New Member
Michael Strawbridge
Join Date: Jun 2014
Posts: 6
Rep Power: 12 |
OK ... I finished the installation into /opt as root and everything went fine.
However all of /opt/OpenFOAM is owned by root. When I turned this over to a regular user to try out, he tested some of the tutorials and got these results: % pwd ~/snaps/foam % /opt/OpenFOAM/OpenFOAM-2.3.0/tutorials/Alltest -default -root ~/snaps/foam Modifying /opt/OpenFOAM/OpenFOAM-2.3.0/etc/controlDict cp: cannot create regular file `/opt/OpenFOAM/OpenFOAM-2.3.0/etc/controlDict.org': Permission denied /opt/OpenFOAM/OpenFOAM-2.3.0/tutorials/Alltest: line 174: /opt/OpenFOAM/OpenFOAM-2.3.0/etc/controlDict: Permission denied Copying the tutorials cp: cannot create directory `../tutorialsTest': Permission denied Modifying the controlDicts to run only one time step /opt/OpenFOAM/OpenFOAM-2.3.0/tutorials/Alltest: line 182: cd: ../tutorialsTest: No such file or directory The installation was meant for several users to use a single install of OpenFOAM ... hence installation by root in /opt rather than having each user install OpenFOAM in his home directory. How can this be configured so multiple users can use it? Thanks. Mike |
|
June 3, 2014, 17:17 |
|
#13 | |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,980
Blog Entries: 45
Rep Power: 128 |
Hi Mike,
As long as all users have read and execute permissions, but only root can write, then it's ready to be used The OpenFOAM User Guide starts off in the introduction section of Chapter 2 on how to deal with the tutorials, i.e. first make a copy (of the tutorials folder) for personal use . Quoting myself from a few minutes ago, both you and the users can find the OpenFOAM Guides at the following locations: Quote:
Bruno
__________________
|
||
June 6, 2014, 10:25 |
|
#14 |
New Member
Michael Strawbridge
Join Date: Jun 2014
Posts: 6
Rep Power: 12 |
OK ... it turns out the final step 17 running ./Allwmake in PVReaders directory did not work. Here is the output from running that:
Code:
wmakeLnInclude: linking include files to ./lnInclude Making dependency list for source file vtkPV4Readers.C SOURCE=vtkPV4Readers.C ; g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -O3 -DNoRepository -ftemplate-depth-100 -I/opt/OpenFOAM/ThirdParty-2.3.0/platforms/linux64Gcc48/ParaView-4.1.0/include/paraview-4.1 -IlnInclude -I. -I/opt/OpenFOAM/OpenFOAM-2.3.0/src/OpenFOAM/lnInclude -I/opt/OpenFOAM/OpenFOAM-2.3.0/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linux64Gcc48DPOpt/vtkPV4Readers.o '/opt/OpenFOAM/OpenFOAM-2.3.0/platforms/linux64Gcc48DPOpt/lib/libvtkPV4Readers.so' is up to date. + '[' -d /opt/OpenFOAM/ThirdParty-2.3.0/platforms/linux64Gcc48/ParaView-4.1.0 -a -r /opt/OpenFOAM/ThirdParty-2.3.0/platforms/linux64Gcc48/ParaView-4.1.0 ']' + wmake libso vtkPV4blockMesh wmakeLnInclude: linking include files to ./lnInclude Making dependency list for source file vtkPV4blockMesh.C Making dependency list for source file vtkPV4blockMeshConvert.C Making dependency list for source file vtkPV4blockMeshUtils.C SOURCE=vtkPV4blockMesh.C ; g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -O3 -DNoRepository -ftemplate-depth-100 -I/opt/OpenFOAM/OpenFOAM-2.3.0/src/meshTools/lnInclude -I/opt/OpenFOAM/OpenFOAM-2.3.0/src/mesh/blockMesh/lnInclude -I/opt/OpenFOAM/ThirdParty-2.3.0/platforms/linux64Gcc48/ParaView-4.1.0/include/paraview-4.1 -I../../vtkPV4Readers/lnInclude -I../PV4blockMeshReader -IlnInclude -I. -I/opt/OpenFOAM/OpenFOAM-2.3.0/src/OpenFOAM/lnInclude -I/opt/OpenFOAM/OpenFOAM-2.3.0/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linux64Gcc48DPOpt/vtkPV4blockMesh.o SOURCE=vtkPV4blockMeshConvert.C ; g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -O3 -DNoRepository -ftemplate-depth-100 -I/opt/OpenFOAM/OpenFOAM-2.3.0/src/meshTools/lnInclude -I/opt/OpenFOAM/OpenFOAM-2.3.0/src/mesh/blockMesh/lnInclude -I/opt/OpenFOAM/ThirdParty-2.3.0/platforms/linux64Gcc48/ParaView-4.1.0/include/paraview-4.1 -I../../vtkPV4Readers/lnInclude -I../PV4blockMeshReader -IlnInclude -I. -I/opt/OpenFOAM/OpenFOAM-2.3.0/src/OpenFOAM/lnInclude -I/opt/OpenFOAM/OpenFOAM-2.3.0/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linux64Gcc48DPOpt/vtkPV4blockMeshConvert.o SOURCE=vtkPV4blockMeshUtils.C ; g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -O3 -DNoRepository -ftemplate-depth-100 -I/opt/OpenFOAM/OpenFOAM-2.3.0/src/meshTools/lnInclude -I/opt/OpenFOAM/OpenFOAM-2.3.0/src/mesh/blockMesh/lnInclude -I/opt/OpenFOAM/ThirdParty-2.3.0/platforms/linux64Gcc48/ParaView-4.1.0/include/paraview-4.1 -I../../vtkPV4Readers/lnInclude -I../PV4blockMeshReader -IlnInclude -I. -I/opt/OpenFOAM/OpenFOAM-2.3.0/src/OpenFOAM/lnInclude -I/opt/OpenFOAM/OpenFOAM-2.3.0/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linux64Gcc48DPOpt/vtkPV4blockMeshUtils.o '/opt/OpenFOAM/OpenFOAM-2.3.0/platforms/linux64Gcc48DPOpt/lib/libvtkPV4blockMesh.so' is up to date. + cd PV4blockMeshReader + mkdir -p Make/linux64Gcc48DPOpt + cd Make/linux64Gcc48DPOpt + cmake ../.. -- The C compiler identification is GNU CMake Error: Could not find cmake module file: /opt/OpenFOAM/OpenFOAM-2.3.0/applications/utilities/postProcessing/graphics/PV4Readers/PV4blockMeshReader/PV4blockMeshReader/Make/linux64Gcc48DPOpt/CMakeFiles/2.8.12.1/CMakeCCompiler.cmake -- The CXX compiler identification is GNU CMake Error: Could not find cmake module file: /opt/OpenFOAM/OpenFOAM-2.3.0/applications/utilities/postProcessing/graphics/PV4Readers/PV4blockMeshReader/PV4blockMeshReader/Make/linux64Gcc48DPOpt/CMakeFiles/2.8.12.1/CMakeCXXCompiler.cmake -- Check for working C compiler: /opt/OpenFOAM/ThirdParty-2.3.0/platforms/linux64/gcc-4.8.1/bin/gcc CMake Error at /opt/cmake/Modules/CMakeTestCCompiler.cmake:36 (TRY_COMPILE): Unknown extension ".c" for file /opt/OpenFOAM/OpenFOAM-2.3.0/applications/utilities/postProcessing/graphics/PV4Readers/PV4blockMeshReader/PV4blockMeshReader/Make/linux64Gcc48DPOpt/CMakeFiles/CMakeTmp/testCCompiler.c try_compile() works only for enabled languages. Currently these are: C CXX See project() command to enable other languages. Call Stack (most recent call first): -- Check for working C compiler: /opt/OpenFOAM/ThirdParty-2.3.0/platforms/linux64/gcc-4.8.1/bin/gcc -- broken CMake Error at /opt/cmake/Modules/CMakeTestCCompiler.cmake:52 (MESSAGE): The C compiler "/opt/OpenFOAM/ThirdParty-2.3.0/platforms/linux64/gcc-4.8.1/bin/gcc" is not able to compile a simple test program. It fails with the following output: CMake will not be able to correctly generate this project. Call Stack (most recent call first): -- Configuring incomplete, errors occurred! See also "/opt/OpenFOAM/OpenFOAM-2.3.0/applications/utilities/postProcessing/graphics/PV4Readers/PV4blockMeshReader/PV4blockMeshReader/Make/linux64Gcc48DPOpt/CMakeFiles/CMakeOutput.log". See also "/opt/OpenFOAM/OpenFOAM-2.3.0/applications/utilities/postProcessing/graphics/PV4Readers/PV4blockMeshReader/PV4blockMeshReader/Make/linux64Gcc48DPOpt/CMakeFiles/CMakeError.log". + make make: *** No targets specified and no makefile found. Stop. + '[' -d /opt/OpenFOAM/ThirdParty-2.3.0/platforms/linux64Gcc48/ParaView-4.1.0 -a -r /opt/OpenFOAM/ThirdParty-2.3.0/platforms/linux64Gcc48/ParaView-4.1.0 ']' + wmake libso vtkPV4Foam wmakeLnInclude: linking include files to ./lnInclude Making dependency list for source file vtkPV4Foam.C Making dependency list for source file vtkPV4FoamFields.C Making dependency list for source file vtkPV4FoamMesh.C Making dependency list for source file vtkPV4FoamMeshLagrangian.C Making dependency list for source file vtkPV4FoamMeshSet.C Making dependency list for source file vtkPV4FoamMeshVolume.C Making dependency list for source file vtkPV4FoamMeshZone.C Making dependency list for source file vtkPV4FoamUpdateInfo.C Making dependency list for source file vtkPV4FoamUtils.C SOURCE=vtkPV4Foam.C ; g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -O3 -DNoRepository -ftemplate-depth-100 -I/opt/OpenFOAM/OpenFOAM-2.3.0/src/meshTools/lnInclude -I/opt/OpenFOAM/OpenFOAM-2.3.0/src/finiteVolume/lnInclude -I/opt/OpenFOAM/OpenFOAM-2.3.0/src/lagrangian/basic/lnInclude -I../../vtkPV4Readers/lnInclude -I../PV4FoamReader -I/opt/OpenFOAM/ThirdParty-2.3.0/platforms/linux64Gcc48/ParaView-4.1.0/include/paraview-4.1 -DHAS_VTK_POLYHEDRON -IlnInclude -I. -I/opt/OpenFOAM/OpenFOAM-2.3.0/src/OpenFOAM/lnInclude -I/opt/OpenFOAM/OpenFOAM-2.3.0/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linux64Gcc48DPOpt/vtkPV4Foam.o SOURCE=vtkPV4FoamFields.C ; g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -O3 -DNoRepository -ftemplate-depth-100 -I/opt/OpenFOAM/OpenFOAM-2.3.0/src/meshTools/lnInclude -I/opt/OpenFOAM/OpenFOAM-2.3.0/src/finiteVolume/lnInclude -I/opt/OpenFOAM/OpenFOAM-2.3.0/src/lagrangian/basic/lnInclude -I../../vtkPV4Readers/lnInclude -I../PV4FoamReader -I/opt/OpenFOAM/ThirdParty-2.3.0/platforms/linux64Gcc48/ParaView-4.1.0/include/paraview-4.1 -DHAS_VTK_POLYHEDRON -IlnInclude -I. -I/opt/OpenFOAM/OpenFOAM-2.3.0/src/OpenFOAM/lnInclude -I/opt/OpenFOAM/OpenFOAM-2.3.0/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linux64Gcc48DPOpt/vtkPV4FoamFields.o SOURCE=vtkPV4FoamMesh.C ; g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -O3 -DNoRepository -ftemplate-depth-100 -I/opt/OpenFOAM/OpenFOAM-2.3.0/src/meshTools/lnInclude -I/opt/OpenFOAM/OpenFOAM-2.3.0/src/finiteVolume/lnInclude -I/opt/OpenFOAM/OpenFOAM-2.3.0/src/lagrangian/basic/lnInclude -I../../vtkPV4Readers/lnInclude -I../PV4FoamReader -I/opt/OpenFOAM/ThirdParty-2.3.0/platforms/linux64Gcc48/ParaView-4.1.0/include/paraview-4.1 -DHAS_VTK_POLYHEDRON -IlnInclude -I. -I/opt/OpenFOAM/OpenFOAM-2.3.0/src/OpenFOAM/lnInclude -I/opt/OpenFOAM/OpenFOAM-2.3.0/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linux64Gcc48DPOpt/vtkPV4FoamMesh.o SOURCE=vtkPV4FoamMeshLagrangian.C ; g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -O3 -DNoRepository -ftemplate-depth-100 -I/opt/OpenFOAM/OpenFOAM-2.3.0/src/meshTools/lnInclude -I/opt/OpenFOAM/OpenFOAM-2.3.0/src/finiteVolume/lnInclude -I/opt/OpenFOAM/OpenFOAM-2.3.0/src/lagrangian/basic/lnInclude -I../../vtkPV4Readers/lnInclude -I../PV4FoamReader -I/opt/OpenFOAM/ThirdParty-2.3.0/platforms/linux64Gcc48/ParaView-4.1.0/include/paraview-4.1 -DHAS_VTK_POLYHEDRON -IlnInclude -I. -I/opt/OpenFOAM/OpenFOAM-2.3.0/src/OpenFOAM/lnInclude -I/opt/OpenFOAM/OpenFOAM-2.3.0/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linux64Gcc48DPOpt/vtkPV4FoamMeshLagrangian.o SOURCE=vtkPV4FoamMeshSet.C ; g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -O3 -DNoRepository -ftemplate-depth-100 -I/opt/OpenFOAM/OpenFOAM-2.3.0/src/meshTools/lnInclude -I/opt/OpenFOAM/OpenFOAM-2.3.0/src/finiteVolume/lnInclude -I/opt/OpenFOAM/OpenFOAM-2.3.0/src/lagrangian/basic/lnInclude -I../../vtkPV4Readers/lnInclude -I../PV4FoamReader -I/opt/OpenFOAM/ThirdParty-2.3.0/platforms/linux64Gcc48/ParaView-4.1.0/include/paraview-4.1 -DHAS_VTK_POLYHEDRON -IlnInclude -I. -I/opt/OpenFOAM/OpenFOAM-2.3.0/src/OpenFOAM/lnInclude -I/opt/OpenFOAM/OpenFOAM-2.3.0/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linux64Gcc48DPOpt/vtkPV4FoamMeshSet.o SOURCE=vtkPV4FoamMeshVolume.C ; g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -O3 -DNoRepository -ftemplate-depth-100 -I/opt/OpenFOAM/OpenFOAM-2.3.0/src/meshTools/lnInclude -I/opt/OpenFOAM/OpenFOAM-2.3.0/src/finiteVolume/lnInclude -I/opt/OpenFOAM/OpenFOAM-2.3.0/src/lagrangian/basic/lnInclude -I../../vtkPV4Readers/lnInclude -I../PV4FoamReader -I/opt/OpenFOAM/ThirdParty-2.3.0/platforms/linux64Gcc48/ParaView-4.1.0/include/paraview-4.1 -DHAS_VTK_POLYHEDRON -IlnInclude -I. -I/opt/OpenFOAM/OpenFOAM-2.3.0/src/OpenFOAM/lnInclude -I/opt/OpenFOAM/OpenFOAM-2.3.0/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linux64Gcc48DPOpt/vtkPV4FoamMeshVolume.o SOURCE=vtkPV4FoamMeshZone.C ; g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -O3 -DNoRepository -ftemplate-depth-100 -I/opt/OpenFOAM/OpenFOAM-2.3.0/src/meshTools/lnInclude -I/opt/OpenFOAM/OpenFOAM-2.3.0/src/finiteVolume/lnInclude -I/opt/OpenFOAM/OpenFOAM-2.3.0/src/lagrangian/basic/lnInclude -I../../vtkPV4Readers/lnInclude -I../PV4FoamReader -I/opt/OpenFOAM/ThirdParty-2.3.0/platforms/linux64Gcc48/ParaView-4.1.0/include/paraview-4.1 -DHAS_VTK_POLYHEDRON -IlnInclude -I. -I/opt/OpenFOAM/OpenFOAM-2.3.0/src/OpenFOAM/lnInclude -I/opt/OpenFOAM/OpenFOAM-2.3.0/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linux64Gcc48DPOpt/vtkPV4FoamMeshZone.o SOURCE=vtkPV4FoamUpdateInfo.C ; g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -O3 -DNoRepository -ftemplate-depth-100 -I/opt/OpenFOAM/OpenFOAM-2.3.0/src/meshTools/lnInclude -I/opt/OpenFOAM/OpenFOAM-2.3.0/src/finiteVolume/lnInclude -I/opt/OpenFOAM/OpenFOAM-2.3.0/src/lagrangian/basic/lnInclude -I../../vtkPV4Readers/lnInclude -I../PV4FoamReader -I/opt/OpenFOAM/ThirdParty-2.3.0/platforms/linux64Gcc48/ParaView-4.1.0/include/paraview-4.1 -DHAS_VTK_POLYHEDRON -IlnInclude -I. -I/opt/OpenFOAM/OpenFOAM-2.3.0/src/OpenFOAM/lnInclude -I/opt/OpenFOAM/OpenFOAM-2.3.0/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linux64Gcc48DPOpt/vtkPV4FoamUpdateInfo.o SOURCE=vtkPV4FoamUtils.C ; g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -O3 -DNoRepository -ftemplate-depth-100 -I/opt/OpenFOAM/OpenFOAM-2.3.0/src/meshTools/lnInclude -I/opt/OpenFOAM/OpenFOAM-2.3.0/src/finiteVolume/lnInclude -I/opt/OpenFOAM/OpenFOAM-2.3.0/src/lagrangian/basic/lnInclude -I../../vtkPV4Readers/lnInclude -I../PV4FoamReader -I/opt/OpenFOAM/ThirdParty-2.3.0/platforms/linux64Gcc48/ParaView-4.1.0/include/paraview-4.1 -DHAS_VTK_POLYHEDRON -IlnInclude -I. -I/opt/OpenFOAM/OpenFOAM-2.3.0/src/OpenFOAM/lnInclude -I/opt/OpenFOAM/OpenFOAM-2.3.0/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linux64Gcc48DPOpt/vtkPV4FoamUtils.o '/opt/OpenFOAM/OpenFOAM-2.3.0/platforms/linux64Gcc48DPOpt/lib/libvtkPV4Foam.so' is up to date. + cd PV4FoamReader + mkdir -p Make/linux64Gcc48DPOpt + cd Make/linux64Gcc48DPOpt + cmake ../.. -- The C compiler identification is GNU CMake Error: Could not find cmake module file: /opt/OpenFOAM/OpenFOAM-2.3.0/applications/utilities/postProcessing/graphics/PV4Readers/PV4FoamReader/PV4FoamReader/Make/linux64Gcc48DPOpt/CMakeFiles/2.8.12.1/CMakeCCompiler.cmake -- The CXX compiler identification is GNU CMake Error: Could not find cmake module file: /opt/OpenFOAM/OpenFOAM-2.3.0/applications/utilities/postProcessing/graphics/PV4Readers/PV4FoamReader/PV4FoamReader/Make/linux64Gcc48DPOpt/CMakeFiles/2.8.12.1/CMakeCXXCompiler.cmake -- Check for working C compiler: /opt/OpenFOAM/ThirdParty-2.3.0/platforms/linux64/gcc-4.8.1/bin/gcc CMake Error at /opt/cmake/Modules/CMakeTestCCompiler.cmake:36 (TRY_COMPILE): Unknown extension ".c" for file /opt/OpenFOAM/OpenFOAM-2.3.0/applications/utilities/postProcessing/graphics/PV4Readers/PV4FoamReader/PV4FoamReader/Make/linux64Gcc48DPOpt/CMakeFiles/CMakeTmp/testCCompiler.c try_compile() works only for enabled languages. Currently these are: C CXX See project() command to enable other languages. Call Stack (most recent call first): -- Check for working C compiler: /opt/OpenFOAM/ThirdParty-2.3.0/platforms/linux64/gcc-4.8.1/bin/gcc -- broken CMake Error at /opt/cmake/Modules/CMakeTestCCompiler.cmake:52 (MESSAGE): The C compiler "/opt/OpenFOAM/ThirdParty-2.3.0/platforms/linux64/gcc-4.8.1/bin/gcc" is not able to compile a simple test program. It fails with the following output: CMake will not be able to correctly generate this project. Call Stack (most recent call first): -- Configuring incomplete, errors occurred! See also "/opt/OpenFOAM/OpenFOAM-2.3.0/applications/utilities/postProcessing/graphics/PV4Readers/PV4FoamReader/PV4FoamReader/Make/linux64Gcc48DPOpt/CMakeFiles/CMakeOutput.log". See also "/opt/OpenFOAM/OpenFOAM-2.3.0/applications/utilities/postProcessing/graphics/PV4Readers/PV4FoamReader/PV4FoamReader/Make/linux64Gcc48DPOpt/CMakeFiles/CMakeError.log". + make make: *** No targets specified and no makefile found. Stop. Code:
%paraFoam FATAL ERROR: ParaView reader module libraries do not exist Please build the reader module before continuing: cd $FOAM_UTILITIES/postProcessing/graphics/PV4Readers ./Allwclean ./Allwmake Is this what we should suggest to users or is there a way to get the PV4Readers to install correctly? Thanks. Mike Last edited by wyldckat; June 7, 2014 at 10:20. Reason: Added [CODE][/CODE] |
|
June 7, 2014, 10:26 |
|
#15 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,980
Blog Entries: 45
Rep Power: 128 |
Hi Mike,
The option "-builtin" is related to the ParaView version, and since the version installed with OpenFOAM 2.3.0 is ParaView 4.1.0, it should work just fine on CentOS 5. As for the build problem, it's the same error you got when you tried building ParaView, where the older CMake version was getting in the way and messing up the build process. Have a look at post #9, where the output error you reported is essentially the same. Best regards, Bruno PS: Please, when posting code, file contents or data output, use the "[CODE]" markers, as explained here: Posting code and output with [CODE] |
|
June 9, 2014, 10:09 |
|
#16 |
New Member
Michael Strawbridge
Join Date: Jun 2014
Posts: 6
Rep Power: 12 |
That doesn't seem to be the same problem here.
Even after verifying that it is using cmake from /opt/OpenFOAM/ThirdParty-2.3.0/platforms/linux64Gcc48/cmake-2.8.12.1/bin/cmake it fails. I should note that there was a break between running steps 1-15 and then finishing with steps 16-17. I had to logout after step 15 ... then later login and finish with steps 16-17. Perhaps I missed setting up some ENV variable somewhere. After I logged back in I ran: source /opt/OpenFOAM/OpenFOAM-2.3.0/etc/bashrc foamCompiler=ThirdParty WM_COMPILER =Gcc48 WM_MPLIB=SYSTEMOPENMPI then cd $WM_THIRD_PARTY_DIR ./makeParaView4 -qmake $WM_THIRD_PARTY_DIR/platforms/$WM_ARCH$WM_COMPILER/qt-4.8.4/bin/qmake PARAVIEW_INSTALL_THIRD_PARTY_LIBRARIES:BOOL=ON cd $FOAM_UTILITIES/postProcessing/graphics/PV4Readers wmSET $FOAM_SETTINGS ./Allwclean ./Allwmake |
|
June 9, 2014, 13:27 |
|
#17 | ||
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,980
Blog Entries: 45
Rep Power: 128 |
Hi Mike,
Back in post #11, you wrote this: Quote:
Perhaps ParaView didn't end up being build with success? To check if ParaView was built with success, the easiest is to run the following command on a shell environment ready to use OpenFOAM: Code:
which paraview Code:
/opt/OpenFOAM/ThirdParty-2.3.0/platforms/linux64Gcc48/ParaView-4.1.0/bin/paraview Although if the Allwmake script did try to build the PV4Readers, then ParaView should have been built with success. Therefore, going back to the latest error message you had posted before, there is this line clearly indicating that the old CMake version is being picked up: Quote:
Best regards, Bruno
__________________
|
|||
June 9, 2014, 14:33 |
|
#18 |
New Member
Michael Strawbridge
Join Date: Jun 2014
Posts: 6
Rep Power: 12 |
Hi Bruno,
You are right (of course). I was so fixated on finding the correct cmake in PATH that I forgot all about the setting of CMAKE_ROOT environment variable ... which was set to the conflicting cmake version at /opt/cmake. Thanks again. Mike |
|
June 10, 2014, 20:00 |
|
#19 |
New Member
DAPHNE
Join Date: Apr 2014
Posts: 6
Rep Power: 12 |
Hi Bruno,
I am using Cent OS Version 6.5...I followed the steps in Wiki to install OpenFOAM 2.3.0. http://openfoamwiki.net/index.php/In...CentOS_SL_RHEL And when I was running step #7 Code:
module load openmpi-x86_64 || export PATH=$PATH:/usr/lib64/openmpi/bin Code:
init.c(556):ERROR:161: Cannot initialize TCL But executing the next command as follows, I received an error as follows: Code:
[root@CAE CAE]# source $HOME/OpenFOAM/OpenFOAM-2.3.0/etc/bashrc WM_NCOMPPROCS=4 foamCompiler=ThirdParty WM_COMPILER=Gcc48 WM_MPLIB=SYSTEMOPENMPI Code:
Cannot open configuration file /home/CAE/OpenFOAM/ThirdParty-2.2.x/platforms/linux64Gcc/openmpi-1.6.3/share/openmpi/mpicc-wrapper-data.txt Error parsing data file mpicc: Not found Is there anywhere else I should change the path of OpenFOAM? I dont have any aliases.I set the environment variables in every new tab I open.But still there is an error. But when I execute the above commands like 2 separate commands no issues as follows: Code:
[root@CAE CAE]# source $HOME/OpenFOAM/OpenFOAM-2.3.0/etc/bashrc [root@CAE CAE]# WM_NCOMPPROCS=4 foamCompiler=ThirdParty WM_COMPILER=Gcc48 WM_MPLIB=SYSTEMOPENMPI But after executing step 14 Code:
./Allwmake > make.log 2>&1 I found error in log file. It seems there is some problem in build. A part of Log file contents: Code:
home/CAE/OpenFOAM/ThirdParty-2.3.0/platforms/linux64Gcc/CGAL-4.3/include/CGAL/GMP/Gmpzf_type.h:496: error: was not declared in this scope /home/CAE/OpenFOAM/ThirdParty-2.3.0/platforms/linux64Gcc/CGAL-4.3/include/CGAL/GMP/Gmpzf_type.h:497: error: was not declared in this scope /home/CAE/OpenFOAM/ThirdParty-2.3.0/platforms/linux64Gcc/CGAL-4.3/include/CGAL/GMP/Gmpzf_type.h:503: error: has no member named /home/CAE/OpenFOAM/ThirdParty-2.3.0/platforms/linux64Gcc/CGAL-4.3/include/CGAL/GMP/Gmpzf_type.h:503: error: was not declared in this scope /home/CAE/OpenFOAM/ThirdParty-2.3.0/platforms/linux64Gcc/CGAL-4.3/include/CGAL/GMP/Gmpzf_type.h:504: error: expected initializer before token /home/CAE/OpenFOAM/ThirdParty-2.3.0/platforms/linux64Gcc/CGAL-4.3/include/CGAL/GMP/Gmpzf_type.h:505: error: was not declared in this scope /home/CAE/OpenFOAM/OpenFOAM-2.3.0/platforms/linux64GccDPOpt/bin/surfaceMeshImport /usr/bin/ld: cannot find -lOpenFOAM collect2: ld returned 1 exit status make[2]: *** [/home/CAE/OpenFOAM/OpenFOAM-2.3.0/platforms/linux64GccDPOpt/bin/surfaceMeshImport] Error 1 make[1]: *** [surfaceMeshImport] Error 2 After running the foamInstallationTest I got the following: Code:
Executing ./foamInstallationTest: Checking basic setup... ------------------------------------------------------------------------------- Shell: bash Host: CAE OS: Linux version 2.6.32-431.17.1.el6.x86_64 ------------------------------------------------------------------------------- Checking main OpenFOAM env variables... ------------------------------------------------------------------------------- Environment_variable Set_to_file_or_directory Valid Crit ------------------------------------------------------------------------------- $WM_PROJECT_INST_DIR /home/CAE/OpenFOAM yes yes $WM_PROJECT_USER_DIR /home/CAE/OpenFOAM/CAE-2.3.0 no no $WM_THIRD_PARTY_DIR /home/CAE/OpenFOAM/ThirdParty-2.3.0 yes yes ------------------------------------------------------------------------------- Checking the OpenFOAM env variables set on the PATH... ------------------------------------------------------------------------------- Environment_variable Set_to_file_or_directory Valid Path Crit ------------------------------------------------------------------------------- $WM_PROJECT_DIR /home/CAE/OpenFOAM/OpenFOAM-2.3.0 yes yes yes $FOAM_APPBIN ...-2.3.0/platforms/linux64GccDPOpt/bin yes yes yes $FOAM_SITE_APPBIN .../2.3.0/platforms/linux64GccDPOpt/bin no no $FOAM_USER_APPBIN ...-2.3.0/platforms/linux64GccDPOpt/bin no no $WM_DIR /home/CAE/OpenFOAM/OpenFOAM-2.3.0/wmake yes yes yes ------------------------------------------------------------------------------- Checking the OpenFOAM env variables set on the LD_LIBRARY_PATH... ------------------------------------------------------------------------------- Environment_variable Set_to_file_or_directory Valid Path Crit ------------------------------------------------------------------------------- $FOAM_LIBBIN ...-2.3.0/platforms/linux64GccDPOpt/lib yes yes yes $FOAM_SITE_LIBBIN .../2.3.0/platforms/linux64GccDPOpt/lib no no $FOAM_USER_LIBBIN ...-2.3.0/platforms/linux64GccDPOpt/lib no no $MPI_ARCH_PATH ...0/platforms/linux64Gcc/openmpi-1.6.5 yes yes yes ------------------------------------------------------------------------------- Third party software ------------------------------------------------------------------------------- Software Version Location ------------------------------------------------------------------------------- flex 2.5.35 /usr/bin/flex ERROR: gcc version is too old for this release of OpenFOAM User version : 4.4.7 Minimum required: 4.5.0 gcc 4.4.7 /usr/bin/gcc gzip 1.3.12 /usr/bin/gzip tar 1.23 /bin/tar icoFoam WARNING: Conflicting installations: OpenFOAM settings : /home/CAE/OpenFOAM/OpenFOAM-2.3.0/platforms/linux64GccDPOpt/bin/icoFoam current path : CRITICAL ERROR ------------------------------------------------------------------------------- Summary ------------------------------------------------------------------------------- The system test has evoked 1 fatal error(s). The foam installation contains 1 critical error(s). Review the output for warning messages and consult the installation guide for troubleshooting. Done Any suggestions for changing the OpenFOAm settings for Conflicting installation is appreciated. Last edited by wyldckat; June 15, 2014 at 08:35. Reason: DAPHNE: to add test result of OpenFOAM installation | wyldckat: Added [CODE][/CODE] for clarity |
|
June 15, 2014, 08:34 |
|
#20 | |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,980
Blog Entries: 45
Rep Power: 128 |
Greetings DAPHNE,
This error message: Quote:
If you had continued to proceeded with the installation instructions as they are written, you wouldn't have gotten all of these problems I'll make a note of this in the wiki pages, so that people won't fall into the same line of thought. Best regards, Bruno
__________________
|
||
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[OpenFOAM.org] Problem during installation of openfoam 2.3.0 on ubuntu 16.04 | jarvis | OpenFOAM Installation | 2 | March 20, 2018 08:32 |
OpenFOAM 2.3.0 + HELYX-OS - ld.so error. | astrohome | OpenFOAM Installation | 2 | July 27, 2014 16:13 |
OpenFoam 2.3.0 installation on SUSE Linux Enterprise Server 11 | sherif35 | OpenFOAM Installation | 4 | July 7, 2014 12:22 |
[Discussion] Restructuring the Installation page at openfoamwiki.net | wyldckat | OpenFOAM Installation | 16 | November 2, 2013 11:43 |
New OpenFOAM Forum Structure | jola | OpenFOAM | 2 | October 19, 2011 06:55 |