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

error while loading shared libraries

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

Reply
 
LinkBack Thread Tools Display Modes
Old   August 26, 2012, 00:54
Default error while loading shared libraries
  #1
New Member
 
Rogue's Avatar
 
Robert
Join Date: Aug 2012
Posts: 3
Rep Power: 5
Rogue is on a distinguished road
Hi all,
I was using OpenFoam 2.1 it was working very well until when I decide to install OpenFoam 1.6-ext for a project.
I follow the readme file instructions for the installation, all seem working good.
But when i typed blockMesh to execute the cavity case, i got this error message :

esni@ubuntu:~/iOpenFoam/incompressible/applis/icoFoam/cavity$ blockMesh
blockMesh: error while loading shared libraries: libparMetisDecomp.so: cannot open shared object file: No such file or directory

I got the message with OpenFoam 2.1 and 1.6.
I am using ubuntu 12.04.
Any help is welcome

Best regards
Rogue
Rogue is offline   Reply With Quote

Old   August 26, 2012, 07:41
Default
  #2
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,511
Blog Entries: 34
Rep Power: 86
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
Greetings Rogue and welcome to the forum!

Here you go:
  1. Edit the file "~/.bashrc".
  2. Modify the lines you have, possibly that look something like this:
    Code:
    . $HOME/OpenFOAM/OpenFOAM-2.1.1/etc/bashrc
    . $HOME/OpenFOAM/OpenFOAM-1.6-ext/etc/bashrc
  3. Change those two to this instead:
    Code:
    alias of211='. $HOME/OpenFOAM/OpenFOAM-2.1.1/etc/bashrc'
    alias of16ext='. $HOME/OpenFOAM/OpenFOAM-1.6-ext/etc/bashrc'
  4. Save and close the text editor.
  5. Now, whenever you start a new terminal, run of211 or of16ext depending on the version you want to use.
I advise you to build 1.6-ext once again, because the shell environment was contaminated with the 2.1 version

For more information on this subject: Advanced tips for working with the OpenFOAM shell environment

Best regards,
Bruno

PS: I've moved your post to a new thread, from that old thread... because it was really old already.

Last edited by wyldckat; September 18, 2012 at 14:39. Reason: typo, there was an alias in the wrong place
wyldckat is offline   Reply With Quote

Old   August 29, 2012, 00:25
Default
  #3
New Member
 
Rogue's Avatar
 
Robert
Join Date: Aug 2012
Posts: 3
Rep Power: 5
Rogue is on a distinguished road
Hi wyldckat,

Thanks, it's now working with of 2.1.1 but I get some errors trying to reinstall of 1.6 ext.
I am trying to fix it.

Thanks again.
Rogue is offline   Reply With Quote

Old   September 18, 2012, 09:31
Default Progress
  #4
New Member
 
Join Date: Mar 2011
Posts: 10
Rep Power: 6
RygeltheXVI is on a distinguished road
Hail,
I am currently encountering the same issue.
Did you end up resolving the problem and if so how?

Thanks
RygeltheXVI is offline   Reply With Quote

Old   September 18, 2012, 14:40
Default
  #5
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,511
Blog Entries: 34
Rep Power: 86
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
Greetings Rygel,

He possibly solved it by following the instructions on post #2

Best regards,
Bruno
wyldckat is offline   Reply With Quote

Old   September 19, 2012, 16:00
Default
  #6
New Member
 
Rogue's Avatar
 
Robert
Join Date: Aug 2012
Posts: 3
Rep Power: 5
Rogue is on a distinguished road
Hi RygeltheXVI,
I just follow what is said in post #2 as told by wyldckat to fix it.
hope it'll do so with you!
Rogue 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
parallel running - error while loading shared libraries: seami OpenFOAM Installation 1 December 9, 2011 05:39
BEGINNER: error while loading shared libraries ka1184 OpenFOAM 3 February 19, 2010 08:11
error while loading shared libraries: libelf.so.0: cannot open shared object file: No esmailpour OpenFOAM 7 October 15, 2009 07:09
error while loading shared libraries: libXm.so.3 Renato Pacheco FLUENT 3 July 3, 2008 12:48
gambit "error while loading shared libraries" ggrant FLUENT 1 June 25, 2008 10:37


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