|
[Sponsors] |
[OpenFOAM.org] Instructions to install OpenFOAM-2.4.x on CentOS-6.10 |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
October 8, 2018, 14:02 |
|
#2 | |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Quick answer: At the start of that section, I wrote sometime ago the following note:
Quote:
__________________
|
||
October 8, 2018, 14:24 |
|
#3 |
New Member
So Anon
Join Date: Jun 2014
Posts: 28
Rep Power: 12 |
Well, first thing is I get this error when I run
Code:
module load openmpi-x86_64 || export PATH=$PATH:/usr/lib64/openmpi/bin Code:
+(0):ERROR:0: Unable to locate a modulefile for 'openmpi-x86_64' Code:
note: 'keypad' is defined in DSO /lib64/libtinfo.so.5 so try adding it to the linker command line Then during make processes in ThirdParty, first error I get is during cmake make: Code:
... [ 88%] /opt/rh/devtoolset-2/root/usr/libexec/gcc/x86_64-redhat-linux/4.8.2/ld: CMakeFiles/ccmake.dir/CursesDialog/cmCursesMainForm.cxx.o: undefined reference to symbol 'keypad' /opt/rh/devtoolset-2/root/usr/libexec/gcc/x86_64-redhat-linux/4.8.2/ld: note: 'keypad' is defined in DSO /lib64/libtinfo.so.5 so try adding it to the linker command line /lib64/libtinfo.so.5: could not read symbols: Invalid operation collect2: error: ld returned 1 exit status make[2]: *** [bin/ccmake] Error 1 make[1]: *** [Source/CMakeFiles/ccmake.dir/all] Error 2 make[1]: *** Waiting for unfinished jobs.... Building CXX object Source/CMakeFiles/CTestLib.dir/CTest/cmCTestConfigureHandler.cxx.o ... NOTE: I'm not installing OF to $HOME folder, so I changed all $HOME variables in instructions to wherever I'm installing. But if there are any static $HOME variable used in anything downloaded / wget'ed, they remain unchanged. Just to clarify any related issues. Last edited by redbullah; October 8, 2018 at 14:42. Reason: edit |
|
October 8, 2018, 15:13 |
|
#4 |
New Member
So Anon
Join Date: Jun 2014
Posts: 28
Rep Power: 12 |
Additional question to the previous post: the default installation path of OF-2.4.x is
Code:
$HOME Code:
foamInstall=$CFD/$WM_PROJECT Code:
foamInstall=$WHEREVER/$WM_PROJECT |
|
October 8, 2018, 16:25 |
|
#5 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Quick answers:
1. The first error/warning about the openmpi module is normal, because you're possibly installed it just recently, hence it's not yet available to load via module command, unless you start a new terminal. 2. The second error you are getting is because you are not fully following the written instructions. The instructions at https://openfoamwiki.net/index.php/I...HEL#CentOS_6.6 were written and tested to compile a custom GCC 4.8.4 build. But the error message you are getting is because you are trying to use GCC 4.8.2 from the SCL "devtoolset-2" package. This resulted in you tripping over this bug: https://bugs.openfoam.org/view.php?id=1196 Therefore, if you do not want to compile a custom build of GCC 4.8.4, then you should install and use another "devtoolset-?" package. From the record I have here: https://openfoamwiki.net/index.php/I...tion_.28GCC.29 - the GCC 5.* series is still usable with OpenFOAM 2.4.x. 3. As for installing in another path, you can use the actual path, instead of relying on a variable "$WHEREVER". For example: Code:
foamInstall=/opt/$WM_PROJECT |
|
October 8, 2018, 17:15 |
|
#6 |
New Member
So Anon
Join Date: Jun 2014
Posts: 28
Rep Power: 12 |
Hi wyldckat, I didn't quite understand what I'm doing wrong, I'm following the instructions line by line. The only error I'm getting in the log.mkgcc log file is
Code:
xgcc: error trying to exec 'cc1': execvp: No such file or directory I think I don't have any errors related to the installation location. After applying everything in the instructions, I successfully get the icofoam -help results, but there there are errors also in OpenFOAM's make log file. Regards. |
|
October 8, 2018, 17:29 |
|
#7 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Quick answer: Please package the log files and attach them to your next post, if possible. In the wiki page is mentioned that you can package the files with the following command, e.g.:
Code:
gzip < log.make > log.make.gz My guess is that GCC 4.8.2 is being loaded automatically in your system, possibly due to a command within your "~/.bashrc" file... or it's loaded automatically by the system, if the administrator made it the default compiler... The instructions in the wiki page assume that the default GCC version is 4.4.7, if I'm not mistaken. |
|
October 8, 2018, 17:53 |
|
#8 |
New Member
So Anon
Join Date: Jun 2014
Posts: 28
Rep Power: 12 |
Hi,
I wanted to upload all logs and it exceeded the limit, so here I'm sharing a link to Google Drive. https://drive.google.com/open?id=1Ky...-QcllUeH_nyNFU Your last message made me think that it might be something with the default settings or the admin, since I have no administrative privileges. My ~/.bashrc file is pretty clean, however gcc --version returns version 4.8.5 for me. Last edited by redbullah; October 9, 2018 at 17:29. |
|
October 13, 2018, 08:07 |
|
#9 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Sorry for the delay, but I've only managed to look at the log files now.
So, things are a bit confusing, but the good news is that only the "foamy*Mesh" meshers aren't fully built... and the reason as to why not is really strange.... if you run this command: Code:
ls -l /cfd/honel/OpenFOAM/ThirdParty-2.4.x/platforms/linux64Gcc48/boost_1_55_0/lib Everything else seems to be working just fine. As for GCC, the log file reports that version 4.8.4 was built successfully. CMake was not compiled, but whichever version you already have in your system, did the job just fine with CGAL 4.6. |
|
September 7, 2019, 18:18 |
|
#10 | |
New Member
So Anon
Join Date: Jun 2014
Posts: 28
Rep Power: 12 |
Quote:
Code:
Linking CXX executable ../bin/ccmake [ 90%] Building CXX object Source/CMakeFiles/CTestLib.dir/CTest/cmCTestCoverageHandler.cxx.o [ 91%] Building CXX object Source/CMakeFiles/CPackLib.dir/CPack/cmCPackRPMGenerator.cxx.o [ 91%] Building CXX object Source/CMakeFiles/CTestLib.dir/CTest/cmParseMumpsCoverage.cxx.o [ 91%] Building CXX object Source/CMakeFiles/CTestLib.dir/CTest/cmParseCacheCoverage.cxx.o [ 91%] Building CXX object Source/CMakeFiles/CTestLib.dir/CTest/cmParseGTMCoverage.cxx.o /opt/rh/devtoolset-2/root/usr/libexec/gcc/x86_64-redhat-linux/4.8.2/ld: CMakeFiles/ccmake.dir/CursesDialog/cmCursesMainForm.cxx.o: undefined reference to symbol 'keypad' /opt/rh/devtoolset-2/root/usr/libexec/gcc/x86_64-redhat-linux/4.8.2/ld: note: 'keypad' is defined in DSO /lib64/libtinfo.so.5 so try adding it to the linker command line /lib64/libtinfo.so.5: could not read symbols: Invalid operation collect2: error: ld returned 1 exit status make[2]: *** [bin/ccmake] Error 1 make[1]: *** [Source/CMakeFiles/ccmake.dir/all] Error 2 make[1]: *** Waiting for unfinished jobs.... [ 92%] Building CXX object Source/CMakeFiles/CTestLib.dir/CTest/cmParsePHPCoverage.cxx.o [ 92%] Building CXX object Source/CMakeFiles/CTestLib.dir/CTest/cmCTestEmptyBinaryDirectoryCommand.cxx.o [ 92%] Building CXX object Source/CMakeFiles/CTestLib.dir/CTest/cmCTestGenericHandler.cxx.o Linking CXX static library libCPackLib.a [ 92%] Built target CPackLib [ 92%] Building CXX object Source/CMakeFiles/CTestLib.dir/CTest/cmCTestHandlerCommand.cxx.o [ 92%] Building CXX object Source/CMakeFiles/CTestLib.dir/CTest/cmCTestLaunch.cxx.o [ 93%] Building CXX object Source/CMakeFiles/CTestLib.dir/CTest/cmCTestMemCheckCommand.cxx.o [ 93%] Building CXX object Source/CMakeFiles/CTestLib.dir/CTest/cmCTestMemCheckHandler.cxx.o [ 93%] Building CXX object Source/CMakeFiles/CTestLib.dir/CTest/cmCTestMultiProcessHandler.cxx.o [ 93%] Building CXX object Source/CMakeFiles/CTestLib.dir/CTest/cmCTestReadCustomFilesCommand.cxx.o [ 94%] Building CXX object Source/CMakeFiles/CTestLib.dir/CTest/cmCTestRunScriptCommand.cxx.o [ 94%] Building CXX object Source/CMakeFiles/CTestLib.dir/CTest/cmCTestRunTest.cxx.o [ 94%] Building CXX object Source/CMakeFiles/CTestLib.dir/CTest/cmCTestScriptHandler.cxx.o [ 94%] Building CXX object Source/CMakeFiles/CTestLib.dir/CTest/cmCTestSleepCommand.cxx.o [ 94%] Building CXX object Source/CMakeFiles/CTestLib.dir/CTest/cmCTestStartCommand.cxx.o [ 95%] Building CXX object Source/CMakeFiles/CTestLib.dir/CTest/cmCTestSubmitCommand.cxx.o [ 95%] Building CXX object Source/CMakeFiles/CTestLib.dir/CTest/cmCTestSubmitHandler.cxx.o [ 95%] Building CXX object Source/CMakeFiles/CTestLib.dir/CTest/cmCTestTestCommand.cxx.o [ 95%] Building CXX object Source/CMakeFiles/CTestLib.dir/CTest/cmCTestTestHandler.cxx.o [ 96%] Building CXX object Source/CMakeFiles/CTestLib.dir/CTest/cmCTestUpdateCommand.cxx.o [ 96%] Building CXX object Source/CMakeFiles/CTestLib.dir/CTest/cmCTestUpdateHandler.cxx.o [ 96%] Building CXX object Source/CMakeFiles/CTestLib.dir/CTest/cmCTestUploadCommand.cxx.o [ 96%] Building CXX object Source/CMakeFiles/CTestLib.dir/CTest/cmCTestUploadHandler.cxx.o [ 96%] Building CXX object Source/CMakeFiles/CTestLib.dir/CTest/cmCTestVC.cxx.o [ 97%] Building CXX object Source/CMakeFiles/CTestLib.dir/CTest/cmCTestGlobalVC.cxx.o [ 97%] Building CXX object Source/CMakeFiles/CTestLib.dir/CTest/cmCTestCVS.cxx.o [ 97%] Building CXX object Source/CMakeFiles/CTestLib.dir/CTest/cmCTestSVN.cxx.o [ 97%] Building CXX object Source/CMakeFiles/CTestLib.dir/CTest/cmCTestBZR.cxx.o [ 97%] Building CXX object Source/CMakeFiles/CTestLib.dir/CTest/cmCTestGIT.cxx.o [ 98%] Building CXX object Source/CMakeFiles/CTestLib.dir/CTest/cmCTestHG.cxx.o Linking CXX static library libCTestLib.a [ 98%] Built target CTestLib make: *** [all] Error 2 er real 0m38.327s user 3m57.085s sys 0m32.222s Error building: cmake-2.8.12.1 |
||
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Map of the OpenFOAM Forum - Understanding where to post your questions! | wyldckat | OpenFOAM | 10 | September 2, 2021 06:29 |
OpenFOAM Training Jan-Jul 2017, Virtual, London, Houston, Berlin | CFDFoundation | OpenFOAM Announcements from Other Sources | 0 | January 4, 2017 07:15 |
[OpenFOAM.org] Problems installing OpenFOAM 2.1.0 on CentOS 6.2 | svinaya | OpenFOAM Installation | 1 | December 23, 2016 09:47 |
OpenFOAM Training, London, Chicago, Munich, Sep-Oct 2015 | cfd.direct | OpenFOAM Announcements from Other Sources | 2 | August 31, 2015 14:36 |
64bitrhel5 OF installation instructions | mirko | OpenFOAM Installation | 2 | August 12, 2008 19:07 |