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 (https://www.cfd-online.com/Forums/openfoam-installation/96627-invalid-elf-header.html)

zcjwyl January 27, 2012 09:50

invalid ELF header
 
Hi, All,

I've installed OF2.0 & 1.6-ext both on my machine. The 2.0 works well but when I switched to 1.6ext and tried to run the cavity case with simpleFoam, it reported:


simpleFoam: error while loading shared libraries: ......../OpenFOAM/OpenFOAM-1.6-ext/lib/linux64GccDPOpt/libfiniteVolume.so: invalid ELF header

I've set the envoriment variables correctly then

What's the problem? Can anyone help? :)

wyldckat January 28, 2012 03:01

Greetings zcjwyl,

Mmm... I think you got that error because you didn't use a clean shell environment for building each version/variant of OpenFOAM. And since I don't feel like summarizing about what I mean by "shell environment", there is a blog post I write some time ago: Advanced tips for working with the OpenFOAM shell environment :)

As for doing a clean re-build, running the following commands should do the trick:
Code:

wcleanAll
export WM_NCOMPPROCS=4
./Allwmake > make.log 2>&1

Best regards,
Bruno

zcjwyl January 28, 2012 10:31

hi, 3Q, it works. :o


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