CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Installation (http://www.cfd-online.com/Forums/openfoam-installation/)
-   -   Installation of OpenFOAM 1.7.1 to OprnSUSE 11.2 (http://www.cfd-online.com/Forums/openfoam-installation/81850-installation-openfoam-1-7-1-oprnsuse-11-2-a.html)

superfxfund November 9, 2010 00:09

Installation of OpenFOAM 1.7.1 to OprnSUSE 11.2
 
While installation (Allwmake), I encountered following error.
Which file to modify?

/usr/lib64/gcc/x86_64-suse-linux/4.4/../../../../x86_64-suse-linux/bin/ld: cannot find -liberty


---------foamInstallationTest--------------
Executing /home/jun3/OpenFOAM/OpenFOAM-1.7.1/bin/foamInstallationTest:


Checking basic setup...
-------------------------------------------------------------------------------
Shell: bash
Host: hpc19
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/jun3/OpenFOAM yes yes
$WM_PROJECT_USER_DIR /home/jun3/OpenFOAM/jun3-1.7.1 no no
$WM_THIRD_PARTY_DIR /home/jun3/OpenFOAM/ThirdParty-1.7.1 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/jun3/OpenFOAM/OpenFOAM-1.7.1 yes yes yes

$FOAM_APPBIN ...7.1/applications/bin/linux64GccDPOpt yes yes yes
$FOAM_SITE_APPBIN ...nFOAM/site/1.7.1/bin/linux64GccDPOpt no no
$FOAM_USER_APPBIN ...7.1/applications/bin/linux64GccDPOpt no no
$WM_DIR /home/jun3/OpenFOAM/OpenFOAM-1.7.1/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.1/lib/linux64GccDPOpt yes yes yes
$FOAM_SITE_LIBBIN ...nFOAM/site/1.7.1/lib/linux64GccDPOpt no no
$FOAM_USER_LIBBIN ...nFOAM/jun3-1.7.1/lib/linux64GccDPOpt no no
$MPI_ARCH_PATH ...1/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/jun3/OpenFOAM/OpenFOAM-1.7.1/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.

akidess November 9, 2010 05:19

You are missing the liberty library - install the binutils-devel package and all should be well.

olesen November 9, 2010 08:42

Quote:

Originally Posted by superfxfund (Post 282694)
While installation (Allwmake), I encountered following error.
Which file to modify?

/usr/lib64/gcc/x86_64-suse-linux/4.4/../../../../x86_64-suse-linux/bin/ld: cannot find -liberty

On my openSUSE 11.2 system, the iberty library is part of binutils-devel.
Try installing that package, or else you can also try using gcc from the ThirdParty instead of your system compiler. This gcc should normally have iberty as part of its build.

superfxfund November 11, 2010 03:15

Thank you for akidess and olsen. According to your advice, I installed the packages of;
binutils-devel
cmake
libqt4-devel
flex

The installation 1.7.1 and paraFoam has been successfully done.


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