|
[Sponsors] |
[OpenFOAM.org] Regarding Installation Errors of OpenFOAM-2.4.x on CentOS 6.7 |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
April 19, 2016, 01:31 |
Regarding Installation Errors of OpenFOAM-2.4.x on CentOS 6.7
|
#1 |
Member
Atul Kumar
Join Date: Dec 2015
Location: National Centre for Combustion Research and Development
Posts: 48
Rep Power: 10 |
Hi friends,
When Ever I try to install any new version of open Foam I am getting simmiler errors in libraries. can any one help me to fix this problem. Code:
/home/atulkjoy/OpenFOAM/ThirdParty-2.4.x/platforms/linux64/gcc-4.8.4/lib/gcc/x86_64-unknown-linux-gnu/4.8.4/../../../../x86_64-unknown-linux-gnu/bin/ld: cannot find -lfluidThermophysicalModels /home/atulkjoy/OpenFOAM/ThirdParty-2.4.x/platforms/linux64/gcc-4.8.4/lib/gcc/x86_64-unknown-linux-gnu/4.8.4/../../../../x86_64-unknown-linux-gnu/bin/ld: cannot find -lturbulenceModels /home/atulkjoy/OpenFOAM/ThirdParty-2.4.x/platforms/linux64/gcc-4.8.4/lib/gcc/x86_64-unknown-linux-gnu/4.8.4/../../../../x86_64-unknown-linux-gnu/bin/ld: cannot find -lcompressibleTurbulenceModels /home/atulkjoy/OpenFOAM/ThirdParty-2.4.x/platforms/linux64/gcc-4.8.4/lib/gcc/x86_64-unknown-linux-gnu/4.8.4/../../../../x86_64-unknown-linux-gnu/bin/ld: cannot find -lincompressibleTransportModels /home/atulkjoy/OpenFOAM/ThirdParty-2.4.x/platforms/linux64/gcc-4.8.4/lib/gcc/x86_64-unknown-linux-gnu/4.8.4/../../../../x86_64-unknown-linux-gnu/bin/ld: cannot find -lcompressibleTwoPhaseSystem /home/atulkjoy/OpenFOAM/ThirdParty-2.4.x/platforms/linux64/gcc-4.8.4/lib/gcc/x86_64-unknown-linux-gnu/4.8.4/../../../../x86_64-unknown-linux-gnu/bin/ld: cannot find -lcompressibleEulerianInterfacialModels /home/atulkjoy/OpenFOAM/ThirdParty-2.4.x/platforms/linux64/gcc-4.8.4/lib/gcc/x86_64-unknown-linux-gnu/4.8.4/../../../../x86_64-unknown-linux-gnu/bin/ld: cannot find -lfiniteVolume /home/atulkjoy/OpenFOAM/ThirdParty-2.4.x/platforms/linux64/gcc-4.8.4/lib/gcc/x86_64-unknown-linux-gnu/4.8.4/../../../../x86_64-unknown-linux-gnu/bin/ld: cannot find -lfvOptions /home/atulkjoy/OpenFOAM/ThirdParty-2.4.x/platforms/linux64/gcc-4.8.4/lib/gcc/x86_64-unknown-linux-gnu/4.8.4/../../../../x86_64-unknown-linux-gnu/bin/ld: cannot find -lmeshTools /home/atulkjoy/OpenFOAM/ThirdParty-2.4.x/platforms/linux64/gcc-4.8.4/lib/gcc/x86_64-unknown-linux-gnu/4.8.4/../../../../x86_64-unknown-linux-gnu/bin/ld: cannot find -lsampling collect2: error: ld returned 1 exit status make[1]: *** [interFoam] Error 2 /home/atulkjoy/OpenFOAM/ThirdParty-2.4.x/platforms/linux64/gcc-4.8.4/lib/gcc/x86_64-unknown-linux-gnu/4.8.4/../../../../x86_64-unknown-linux-gnu/bin/ld: cannot find -lincompressibleTransportModels /home/atulkjoy/OpenFOAM/ThirdParty-2.4.x/platforms/linux64/gcc-4.8.4/lib/gcc/x86_64-unknown-linux-gnu/4.8.4/../../../../x86_64-unknown-linux-gnu/bin/ld: cannot find -lfluidThermophysicalModels collect2: error: ld returned 1 exit status make[2]: *** [/home/atulkjoy/OpenFOAM/OpenFOAM-2.4.x/platforms/linux64Gcc48DPOpt/lib/libcompressibleTwoPhaseSystem.so] Error 1 make[2]: Target `libso' not remade because of errors. + wmake libso interfacialModels /home/atulkjoy/OpenFOAM/ThirdParty-2.4.x/platforms/linux64/gcc-4.8.4/lib/gcc/x86_64-unknown-linux-gnu/4.8.4/../../../../x86_64-unknown-linux-gnu/bin/ld: cannot find -lcompressibleTwoPhaseSystem /home/atulkjoy/OpenFOAM/ThirdParty-2.4.x/platforms/linux64/gcc-4.8.4/lib/gcc/x86_64-unknown-linux-gnu/4.8.4/../../../../x86_64-unknown-linux-gnu/bin/ld: cannot find -lfluidThermophysicalModels collect2: error: ld returned 1 exit status make[2]: *** [/home/atulkjoy/OpenFOAM/OpenFOAM-2.4.x/platforms/linux64Gcc48DPOpt/lib/libcompressibleEulerianInterfacialModels.so] Error 1 make[2]: Target `libso' not remade because of errors. + wmake libso phaseCompressibleTurbulenceModels Last edited by wyldckat; May 1, 2016 at 18:15. Reason: Added [CODE][/CODE] markers |
|
April 19, 2016, 18:36 |
|
#2 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128 |
Quick answer: Run:
Code:
./Allwmake > make.log 2>&1 gzip < make.log > make.log.gz |
|
April 20, 2016, 02:26 |
Regarding error message
|
#3 |
Member
Atul Kumar
Join Date: Dec 2015
Location: National Centre for Combustion Research and Development
Posts: 48
Rep Power: 10 |
Thanks for the reply I am attaching my make file with the message.
Regards |
|
April 20, 2016, 07:38 |
Regarding Installation Errors of OpenFOAM-2.4.x
|
#4 |
Member
Atul Kumar
Join Date: Dec 2015
Location: National Centre for Combustion Research and Development
Posts: 48
Rep Power: 10 |
Hi Dear FOMERS,
In OpenFOAM-2.4.x during installation I am getting Following Errors. Code:
In member function ‘int STLASCIILexer::lex()’: Make/linux64Gcc48DPOpt/STLsurfaceFormatASCII.C:5521:9: error: no match for ‘operator=’ (operand types are ‘std::istream {aka std::basic_istream<char>}’ and ‘std::istream* {aka std::basic_istream<char>*}’) Make/linux64Gcc48DPOpt/STLsurfaceFormatASCII.C:5521:9: note: candidate is: In file included from /home/atulkjoy/OpenFOAM/ThirdParty-2.4.0/platforms/linux64/gcc-4.8.4/include/c++/4.8.4/iostream:40:0, from Make/linux64Gcc48DPOpt/STLsurfaceFormatASCII.C:95: /home/atulkjoy/OpenFOAM/ThirdParty-2.4.0/platforms/linux64/gcc-4.8.4/include/c++/4.8.4/istream:58:11: note: std::basic_istream<char>& std::basic_istream<char>::operator=(const std::basic_istream<char>&) class basic_istream : virtual public basic_ios<_CharT, _Traits> ^ Regards. Last edited by wyldckat; May 1, 2016 at 18:34. Reason: Added [CODE][/CODE] markers |
|
April 20, 2016, 17:27 |
|
#5 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128 |
Quick answer: The first error message is this one:
Code:
Make/linux64Gcc48DPOpt/STLsurfaceFormatASCII.C: In member function ‘int STLASCIILexer::lex()’: Make/linux64Gcc48DPOpt/STLsurfaceFormatASCII.C:5521:9: error: no match for ‘operator=’ (operand types are ‘std::istream {aka std::basic_istream<char>}’ and ‘std::istream* {aka std::basic_istream<char>*}’) yyin = & std::cin; ^ I need to know two details:
|
|
April 21, 2016, 00:55 |
|
#6 | |
Member
Atul Kumar
Join Date: Dec 2015
Location: National Centre for Combustion Research and Development
Posts: 48
Rep Power: 10 |
Quote:
CentOS release 6.7 (Final) flex --version flex 2.5.35 |
||
April 21, 2016, 06:02 |
|
#7 |
Member
Atul Kumar
Join Date: Dec 2015
Location: National Centre for Combustion Research and Development
Posts: 48
Rep Power: 10 |
Dear Bruno.
Thanks for all support I am having multiple FOAM versions but I have sepreated them in bashrc files as per your blogs. I guess it is flex erro, usually when I try to recomplie any version I get errro of libfl.so.2 and libfl.so not found. How can I fix this ?? I have used LD_LIBRARY_PATH=/usr/local/lib: already. |
|
April 21, 2016, 17:56 |
|
#8 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128 |
Hi Atul,
I suggest that you do not do that manually. That might be the reason why you're not able to build OpenFOAM properly. Did you install flex manually (from source code) or did you install it using yum? What do you get when you run the following command? Code:
locate libfl.so Bruno |
|
April 22, 2016, 02:43 |
|
#9 |
Member
Atul Kumar
Join Date: Dec 2015
Location: National Centre for Combustion Research and Development
Posts: 48
Rep Power: 10 |
$locate libfl.so
/home/atulkjoy/FDS/FDS6/bin/LIB64/libfl.so.2 /usr/local/lib/libfl.so /usr/local/lib/libfl.so.2 /usr/local/lib/libfl.so.2.0.0 Yes I have tried Flex 2.6.0 by source Code for FDS but flex --version returns the same line still $flex --version 2.5.35 I have used YUM for upgrading flex |
|
May 1, 2016, 18:36 |
|
#10 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128 |
Quick answer: Sorry for the late reply, but I only managed to take a look into this now.
The "libfl.so" is not needed for OpenFOAM. The problem you're having with Flex is really strange, but perhaps the following will solve the problem. Please run the following commands: Code:
#Go into OpenFOAM's main source folder cd $WM_PROJECT_DIR #Change how the flex version is checked find src applications -name "*.L" -type f | xargs sed -i -e 's=\(YY\_FLEX\_SUBMINOR\_VERSION\)=YY_FLEX_MINOR_VERSION < 6 \&\& \1=' Code:
./Allwmake > log.make 2>&1 |
|
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
OpenFOAM v3.0+ ?? | SBusch | OpenFOAM | 22 | December 26, 2016 14:24 |
[OpenFOAM.org] OpenFOAM 2.3.1 installation error on CentOS 6.6 | Naresh yathuru | OpenFOAM Installation | 2 | February 16, 2015 13:14 |
[OpenFOAM.org] OpenFOAM Installation on Centos 6.4 | unobtruse | OpenFOAM Installation | 3 | December 14, 2014 08:44 |
Critical errors gcc and icoFoam during installation of 15 | quartzian | OpenFOAM Installation | 3 | December 12, 2008 12:42 |
64bitrhel5 OF installation instructions | mirko | OpenFOAM Installation | 2 | August 12, 2008 18:07 |