CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Installation (http://www.cfd-online.com/Forums/openfoam-installation/)
-   -   x86_64-suse-linux/bin/ld: cannot find -liberty (http://www.cfd-online.com/Forums/openfoam-installation/83150-x86_64-suse-linux-bin-ld-cannot-find-liberty.html)

preibie December 16, 2010 02:55

x86_64-suse-linux/bin/ld: cannot find -liberty
 
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 :mad: ! I checked gcc and flex and they are up to date.
Can somebody help me?

Preibie

preibie December 16, 2010 03:20

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) :mad:
*** Review the output for warning messages and consult
*** the installation guide for trouble shooting.

done.

alberto December 16, 2010 03:46

What version of SUSE? You can check it with

cat /etc/SuSE-release

preibie December 16, 2010 04:23

cat /etc/SuSE-release

openSUSE 11.2 (x86_64)
VERSION = 11.2

AlmostSurelyRob December 16, 2010 04:49

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.

wyldckat December 16, 2010 07:30

Quote:

Originally Posted by AlmostSurelyRob (Post 287634)
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 :D
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!

preibie December 16, 2010 10:35

thanks for the help. Now OpenFOAM works!

Next Step Paraview :confused:

alberto December 16, 2010 10:47

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.


All times are GMT -4. The time now is 14:37.