|
[Sponsors] |
BEGINNER: error while loading shared libraries |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
February 19, 2010, 05:57 |
BEGINNER: error while loading shared libraries
|
#1 |
New Member
Karin Axelsson
Join Date: Feb 2010
Posts: 11
Rep Power: 16 |
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!!!!!!!!!!!! |
|
February 19, 2010, 07:06 |
|
#2 |
Senior Member
Roman Thiele
Join Date: Aug 2009
Location: Eindhoven, NL
Posts: 374
Rep Power: 21 |
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 |
|
February 19, 2010, 08:06 |
|
#3 |
New Member
Karin Axelsson
Join Date: Feb 2010
Posts: 11
Rep Power: 16 |
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. |
|
February 19, 2010, 08:11 |
|
#4 |
Senior Member
Roman Thiele
Join Date: Aug 2009
Location: Eindhoven, NL
Posts: 374
Rep Power: 21 |
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
__________________
~roman |
|
|
|
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 |