CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Installation (https://www.cfd-online.com/Forums/openfoam-installation/)
-   -   Invalid ELF header Solution (https://www.cfd-online.com/Forums/openfoam-installation/57578-invalid-elf-header-solution.html)

rafal February 5, 2007 10:00

Hi I came across the followin
 
Hi
I came across the following message when I ve installed OpenFOAM on gentoo.

icoFoam: error while loading shared libraries: /usr/lib/libz.so: invalid ELF header

the problem is with the place where the libraries are in gentoo. In short gentoo puts:

shared lib in /lib
static archive in /usr/lib
libtool script in /usr/lib
linker script in /usr/lib that points to /lib

FIX for it is simple:

cd /usr/lib
ln -s /lib/libz.so libz.so

after this everything runs smoothly http://www.cfd-online.com/OpenFOAM_D...part/happy.gif


All times are GMT -4. The time now is 19:03.