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

x86_64-suse-linux/bin/ld: cannot find -liberty

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   December 16, 2010, 02:55
Angry x86_64-suse-linux/bin/ld: cannot find -liberty
  #1
Member
 
Stefan
Join Date: Jun 2009
Posts: 67
Rep Power: 8
preibie is on a distinguished road
Hallo everybody,

I want to change from OpenFOAM 1.6 to 1.7. So I downloaded OpenFOAM white git as explained on openfoam.com. The next step is to compile so I write ./Allwmake and this is the output message:

make[2]: Entering directory `/home/preibisch/OpenFOAM/OpenFOAM-1.7.x/applications/utilities/thermophysical/mixtureAdiabaticFlameT'
g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-40 -I/home/preibisch/OpenFOAM/OpenFOAM-1.7.x/src/thermophysicalModels/specie/lnInclude -IlnInclude -I. -I/home/preibisch/OpenFOAM/OpenFOAM-1.7.x/src/OpenFOAM/lnInclude -I/home/preibisch/OpenFOAM/OpenFOAM-1.7.x/src/OSspecific/POSIX/lnInclude -fPIC -Xlinker --add-needed Make/linux64GccDPOpt/mixtureAdiabaticFlameT.o -L/home/preibisch/OpenFOAM/OpenFOAM-1.7.x/lib/linux64GccDPOpt \
-lspecie -lOpenFOAM -liberty -ldl -lm -o /home/preibisch/OpenFOAM/OpenFOAM-1.7.x/applications/bin/linux64GccDPOpt/mixtureAdiabaticFlameT
/usr/lib64/gcc/x86_64-suse-linux/4.4/../../../../x86_64-suse-linux/bin/ld: cannot find -liberty
collect2: ld returned 1 exit status
make[2]: *** [/home/preibisch/OpenFOAM/OpenFOAM-1.7.x/applications/bin/linux64GccDPOpt/mixtureAdiabaticFlameT] Fehler 1
make[2]: Leaving directory `/home/preibisch/OpenFOAM/OpenFOAM-1.7.x/applications/utilities/thermophysical/mixtureAdiabaticFlameT'
make[1]: *** [mixtureAdiabaticFlameT] Fehler 2
make[1]: Das Target »application« wurde wegen Fehlern nicht aktualisiert.
make[1]: Leaving directory `/home/preibisch/OpenFOAM/OpenFOAM-1.7.x/applications/utilities/thermophysical'
make: *** [thermophysical] Fehler 2
make: Das Target »application« wurde wegen Fehlern nicht aktualisiert

I don't know what is wrong ! I checked gcc and flex and they are up to date.
Can somebody help me?

Preibie
preibie is offline   Reply With Quote

Old   December 16, 2010, 03:20
Default
  #2
Member
 
Stefan
Join Date: Jun 2009
Posts: 67
Rep Power: 8
preibie is on a distinguished road
I have run the foamInstallationTest and this is the result:

Checking basic setup...
-------------------------------------------------------------------------------
Shell: bash
Host: Fluent64-2
OS: Linux version 2.6.31.12-0.2-desktop
-------------------------------------------------------------------------------


Checking main OpenFOAM env variables...
-------------------------------------------------------------------------------
Environment_variable Set_to_file_or_directory Valid Crit
-------------------------------------------------------------------------------
$WM_PROJECT_INST_DIR /home/preibisch/OpenFOAM yes yes
$WM_PROJECT_USER_DIR /home/preibisch/OpenFOAM/preibisch-1.7.x yes no
$WM_THIRD_PARTY_DIR .../preibisch/OpenFOAM/ThirdParty-1.7.x 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/preibisch/OpenFOAM/OpenFOAM-1.7.x yes yes yes

$FOAM_APPBIN ...7.x/applications/bin/linux64GccDPOpt yes yes yes
$FOAM_SITE_APPBIN ...nFOAM/site/1.7.x/bin/linux64GccDPOpt no no
$FOAM_USER_APPBIN ...7.x/applications/bin/linux64GccDPOpt yes yes no
$WM_DIR ...ibisch/OpenFOAM/OpenFOAM-1.7.x/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 ...M/OpenFOAM-1.7.x/lib/linux64GccDPOpt yes yes yes
$FOAM_SITE_LIBBIN ...nFOAM/site/1.7.x/lib/linux64GccDPOpt no no
$FOAM_USER_LIBBIN .../preibisch-1.7.x/lib/linux64GccDPOpt no no
$MPI_ARCH_PATH ...x/platforms/linux64Gcc/openmpi-1.4.1 yes yes yes
-------------------------------------------------------------------------------


Third party software
-------------------------------------------------------------------------------
Software Version Location
-------------------------------------------------------------------------------
gcc 4.4.1 /usr/bin/gcc
gzip 1.3.12 /usr/bin/gzip
tar 1.21 /bin/tar
icoFoam
WARNING: Conflicting installations:
OpenFOAM settings : /home/preibisch/OpenFOAM/OpenFOAM-1.7.x/applications/bin/linux64GccDPOpt/icoFoam
current path :
CRITICAL ERROR

-------------------------------------------------------------------------------


Summary
-------------------------------------------------------------------------------
Base configuration ok.

*** The foam installation contains 1 critical error(s)
*** Review the output for warning messages and consult
*** the installation guide for trouble shooting.

done.
preibie is offline   Reply With Quote

Old   December 16, 2010, 03:46
Default
  #3
Senior Member
 
Alberto Passalacqua
Join Date: Mar 2009
Location: Ames, Iowa, United States
Posts: 1,894
Rep Power: 26
alberto will become famous soon enoughalberto will become famous soon enough
What version of SUSE? You can check it with

cat /etc/SuSE-release
__________________
Alberto Passalacqua

GeekoCFD - A free distribution based on openSUSE 64 bit with CFD tools, including OpenFOAM. Available as live DVD/USB, hard drive image and virtual image.
OpenQBMM - An open-source implementation of quadrature-based moment methods
alberto is offline   Reply With Quote

Old   December 16, 2010, 04:23
Default
  #4
Member
 
Stefan
Join Date: Jun 2009
Posts: 67
Rep Power: 8
preibie is on a distinguished road
cat /etc/SuSE-release

openSUSE 11.2 (x86_64)
VERSION = 11.2
preibie is offline   Reply With Quote

Old   December 16, 2010, 04:49
Default
  #5
Senior Member
 
Robert Sawko
Join Date: Mar 2009
Posts: 117
Rep Power: 13
AlmostSurelyRob will become famous soon enough
Perhpas it's a bit late for a reply but in my case (same system OpenSUSE 11.2 ) installing a package

binutils-dev

helped according to the similar post here
http://ubuntuforums.org/showthread.php?t=390903

And if you pardon the pun it's a bit awkward that under free, open source system a free, open source piece of software complains about the lack of liberty.
AlmostSurelyRob is offline   Reply With Quote

Old   December 16, 2010, 07:30
Default
  #6
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,507
Blog Entries: 34
Rep Power: 86
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
Quote:
Originally Posted by AlmostSurelyRob View Post
And if you pardon the pun it's a bit awkward that under free, open source system a free, open source piece of software complains about the lack of liberty.
It's a lesson in itself: although one might be free, one must learn what is liberty, how to get it and how to use it! Although in Linux, all you have to do is type a few commands together and liberty is yours
It's also like knowledge: just because one has access to a library, it does not automatically turn the person into a know-it-all!
wyldckat is offline   Reply With Quote

Old   December 16, 2010, 10:35
Smile
  #7
Member
 
Stefan
Join Date: Jun 2009
Posts: 67
Rep Power: 8
preibie is on a distinguished road
thanks for the help. Now OpenFOAM works!

Next Step Paraview
preibie is offline   Reply With Quote

Old   December 16, 2010, 10:47
Default
  #8
Senior Member
 
Alberto Passalacqua
Join Date: Mar 2009
Location: Ames, Iowa, United States
Posts: 1,894
Rep Power: 26
alberto will become famous soon enoughalberto will become famous soon enough
Yes, but the fact that library was not available by default tells me you did not install the "C++ development" pattern, which should pull it in.
__________________
Alberto Passalacqua

GeekoCFD - A free distribution based on openSUSE 64 bit with CFD tools, including OpenFOAM. Available as live DVD/USB, hard drive image and virtual image.
OpenQBMM - An open-source implementation of quadrature-based moment methods
alberto is offline   Reply With Quote

Reply

Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
cannot find -liberty Aneirin OpenFOAM Bugs 1 December 10, 2010 20:37
Errors running allwmake in OpenFOAM141dev with WM_COMPILE_OPTION%3ddebug unoder OpenFOAM Installation 11 January 30, 2008 21:30
Cannot find liberty %3cIMG SRC%3d%22httpopenfoamcfdonlinecomforumcliparthappygif%22 ALT%3d%22%22 BORDER%3d0%3e panara OpenFOAM Installation 5 August 10, 2007 14:39


All times are GMT -4. The time now is 13:35.