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

invalid ELF header

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread 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: 16
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
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
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: 16
zcjwyl is on a distinguished road
hi, 3Q, it works.
zcjwyl is offline   Reply With Quote

Reply


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 Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
compilation problem with "fvPatch::lookupPatchField" Ya_Squall2010 OpenFOAM Programming & Development 9 November 15, 2021 22:01
[swak4Foam] GroovyBC the dynamic cousin of funkySetFields that lives on the suburb of the mesh gschaider OpenFOAM Community Contributions 300 October 29, 2014 18:00
OpenFOAM install on Ubuntu Natty 11.04 bkubicek OpenFOAM 13 May 26, 2011 05:48
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 07:32.