CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Installation

[OpenFOAM.org] Regarding Installation Errors of OpenFOAM-2.4.x on CentOS 6.7

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 19, 2016, 01:31
Default 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
atulkjoy is on a distinguished road
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
atulkjoy is offline   Reply With Quote

Old   April 19, 2016, 18:36
Default
  #2
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Quick answer: Run:
Code:
./Allwmake > make.log 2>&1
gzip < make.log > make.log.gz
Then attach the file "make.log.gz" to your next post. Because the error messages that you provided do not describe the actual origin of the problem.
wyldckat is offline   Reply With Quote

Old   April 20, 2016, 02:26
Default Regarding error message
  #3
Member
 
Atul Kumar
Join Date: Dec 2015
Location: National Centre for Combustion Research and Development
Posts: 48
Rep Power: 10
atulkjoy is on a distinguished road
Thanks for the reply I am attaching my make file with the message.
Regards
Attached Files
File Type: gz log.make.gz (30.7 KB, 1 views)
atulkjoy is offline   Reply With Quote

Old   April 20, 2016, 07:38
Default 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
atulkjoy is on a distinguished road
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>
           ^
I have tried by all possible ways I know. Please send your suggetions if/any.
Regards.
Attached Files
File Type: gz log.make.gz (30.7 KB, 0 views)

Last edited by wyldckat; May 1, 2016 at 18:34. Reason: Added [CODE][/CODE] markers
atulkjoy is offline   Reply With Quote

Old   April 20, 2016, 17:27
Default
  #5
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
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;
         ^
This is a rather strange error message, that I can't remember seeing before.

I need to know two details:
  1. What does the following command give you?
    Code:
    flex --version
  2. Which Linux Distribution and version are you using?
wyldckat is offline   Reply With Quote

Old   April 21, 2016, 00:55
Default
  #6
Member
 
Atul Kumar
Join Date: Dec 2015
Location: National Centre for Combustion Research and Development
Posts: 48
Rep Power: 10
atulkjoy is on a distinguished road
Quote:
Originally Posted by wyldckat View Post
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;
         ^
This is a rather strange error message, that I can't remember seeing before.

I need to know two details:
  1. What does the following command give you?
    Code:
    flex --version
  2. Which Linux Distribution and version are you using?
cat /etc/centos-release
CentOS release 6.7 (Final)

flex --version
flex 2.5.35
atulkjoy is offline   Reply With Quote

Old   April 21, 2016, 06:02
Default
  #7
Member
 
Atul Kumar
Join Date: Dec 2015
Location: National Centre for Combustion Research and Development
Posts: 48
Rep Power: 10
atulkjoy is on a distinguished road
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.
atulkjoy is offline   Reply With Quote

Old   April 21, 2016, 17:56
Default
  #8
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Hi Atul,

Quote:
Originally Posted by atulkjoy View Post
I have used LD_LIBRARY_PATH=/usr/local/lib: already.
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
Best regards,
Bruno
wyldckat is offline   Reply With Quote

Old   April 22, 2016, 02:43
Default
  #9
Member
 
Atul Kumar
Join Date: Dec 2015
Location: National Centre for Combustion Research and Development
Posts: 48
Rep Power: 10
atulkjoy is on a distinguished road
$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
atulkjoy is offline   Reply With Quote

Old   May 1, 2016, 18:36
Default
  #10
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
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='
Then try building OpenFOAM again, by running:
Code:
./Allwmake > log.make 2>&1
wyldckat is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


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


All times are GMT -4. The time now is 15:18.