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

error while loading shared libraries

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread 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: 13
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
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 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: 13
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: 16
Rep Power: 15
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
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 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: 13
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


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
parallel running - error while loading shared libraries: seami OpenFOAM Installation 1 December 9, 2011 04:39
BEGINNER: error while loading shared libraries ka1184 OpenFOAM 3 February 19, 2010 07: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 18:25.