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

invalid ELF header

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

Reply
 
LinkBack Thread Tools Display Modes
Old   January 27, 2012, 09:50
Default invalid ELF header
  #1
New Member
 
Joyi Wang
Join Date: Apr 2010
Posts: 8
Rep Power: 6
zcjwyl is on a distinguished road
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?
zcjwyl is offline   Reply With Quote

Old   January 28, 2012, 03:01
Default
  #2
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 7,172
Blog Entries: 32
Rep Power: 70
wyldckat is a jewel in the roughwyldckat is a jewel in the roughwyldckat is a jewel in the rough
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
wyldckat is offline   Reply With Quote

Old   January 28, 2012, 10:31
Default
  #3
New Member
 
Joyi Wang
Join Date: Apr 2010
Posts: 8
Rep Power: 6
zcjwyl is on a distinguished road
hi, 3Q, it works.
zcjwyl 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
GroovyBC the dynamic cousin of funkySetFields that lives on the suburb of the mesh gschaider OpenFOAM 297 August 12, 2014 06:51
OpenFOAM install on Ubuntu Natty 11.04 bkubicek OpenFOAM 13 May 26, 2011 05:48
compilation problem with "fvPatch::lookupPatchField" Ya_Squall2010 OpenFOAM Programming & Development 4 May 25, 2010 09:29
Phase locked average in run time panara OpenFOAM 2 February 20, 2008 14:37
Invalid ELF header Solution rafal OpenFOAM Installation 0 February 5, 2007 10:00


All times are GMT -4. The time now is 21:47.