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

BEGINNER: error while loading shared libraries

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 19, 2010, 05:57
Default BEGINNER: error while loading shared libraries
  #1
New Member
 
Karin Axelsson
Join Date: Feb 2010
Posts: 11
Rep Power: 16
ka1184 is on a distinguished road
Hi everyone!
I'm trying to get started with OpenFOAM (OpenFOAM-1.6), but I problems even running the tutorials! I'm trying to do the lid-driven flow tutorial. The foamInstalltiontest says that everything should be fine. Since I'm not a very experienced Linux user, I describe everything I do in detail since I might make fundamental mistakes that I hope you can help me detect....

The installation was made by a friend in a path called

/usr/OpenFOAM

and within this I created (whole pathway)

/usr/OpenFOAM/Karin/run
to which I copied the tutorials. I type in the terminal:

cd /usr/OpenFOAM/Karin/run/tutorials/incompressible/icoFoam/cavity


According to the tutorials I should just have to type in the terminal:
blockMesh
to generate the mesh, but when I do this I get the following error message:

blockMesh: error while loading shared libraries: libmeshTools.so: cannot open shared object file: No such file or directory



PLEASE HELP ME!!!!!!!!!!!!
ka1184 is offline   Reply With Quote

Old   February 19, 2010, 07:06
Default
  #2
Senior Member
 
romant's Avatar
 
Roman Thiele
Join Date: Aug 2009
Location: Eindhoven, NL
Posts: 374
Rep Power: 21
romant is on a distinguished road
In the case of installing OpenFOAM into a user defined directory, the path to the executables must be given. Did u check this part. For example if you just type the first part of blockMesh, like "block" and then hit tab to autocomplete. Does it show blockMesh?

Otherwise, try installing OpenFOAM into your home directory. If you wanna go as easy as possible with this one, try those scripts

http://hvirvel.com/OF/

by MadsR (who is also in this forum)

try this thread if you still have problems

http://www.cfd-online.com/Forums/ope...okbook-14.html

Or just download the original OpenFOAM 1.6 from the website, unpack them as described on the website and follow the README instructions inside the OpenFOAM-1.6 folder.
__________________
~roman
romant is offline   Reply With Quote

Old   February 19, 2010, 08:06
Default
  #3
New Member
 
Karin Axelsson
Join Date: Feb 2010
Posts: 11
Rep Power: 16
ka1184 is on a distinguished road
Thanks for your reply!
When I type "block" and then tab blockMesh appears. However, if I type "libmesh" nothing appears. Does that mean that the file libmeshTools.so is missing? If so, can I download it?

I tried before to download straight to my user account, but couldn't get the installation test to work... Then I disocverd that it was downloaded on the other location and decided to use that instead.
ka1184 is offline   Reply With Quote

Old   February 19, 2010, 08:11
Default
  #4
Senior Member
 
romant's Avatar
 
Roman Thiele
Join Date: Aug 2009
Location: Eindhoven, NL
Posts: 374
Rep Power: 21
romant is on a distinguished road
I think that the path that are supposed to be set when openfoam is not installed in the home directory, are set right. Therefore, there might be a mistake that your friend made when he set up OpenFOAM.

This is is how to set the environment variables according to the OpenFOAM README.

Code:
*** Installation in alternative locations
    OpenFOAM may also be installed in alternative locations. However, the
    installation directory should be network available (e.g., NFS) if parallel
    calculations are planned.

    The environment variable 'FOAM_INST_DIR' can be used to find and source the
    appropriate resource file. Here is a bash/ksh/sh example:

    + export FOAM_INST_DIR=/data/app/OpenFOAM
    + foamDotFile=$FOAM_INST_DIR/OpenFOAM-1.6/etc/bashrc
    + [ -f $foamDotFile ] && . $foamDotFile
If setting those does not work, I would suggest installing the openfoam binaries in your home directory, following the readme of course.
__________________
~roman
romant 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
DecomposePar unequal number of shared faces maka OpenFOAM Pre-Processing 6 August 12, 2010 10:01
error while loading shared libraries: libelf.so.0: cannot open shared object file: No esmailpour OpenFOAM 7 October 15, 2009 08:09
error while loading shared libraries: libXm.so.3 Renato Pacheco FLUENT 3 July 3, 2008 13:48
gambit "error while loading shared libraries" ggrant FLUENT 1 June 25, 2008 11:37
error while loading shared libraries: libXm.so.3 Emiliano FLUENT 1 September 5, 2007 21:03


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