CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM (http://www.cfd-online.com/Forums/openfoam/)
-   -   Installation/Tutorial - libraries not found (blockMesh) (http://www.cfd-online.com/Forums/openfoam/65208-installation-tutorial-libraries-not-found-blockmesh.html)

bernarde June 8, 2009 10:12

Installation/Tutorial - libraries not found (blockMesh)
 
Hi

I'm having some toruble with the installation of OpenFOAM 1.5.

Running the installation test, I get a good result, and it looks like everything is fine:

Checking basic setup...
-------------------------------------------------------------------------------
Shell: bash
Host: bernard
OS: Linux version 2.6.22.5-31-default
-------------------------------------------------------------------------------

Checking main OpenFOAM env variables...
-------------------------------------------------------------------------------
Environment_variable Set_to_file_or_directory Valid Crit
-------------------------------------------------------------------------------
$WM_PROJECT_INST_DIR /home/bernard/OpenFOAM yes yes
$WM_PROJECT_USER_DIR /home/bernard/OpenFOAM/bernard-1.5 yes no
$WM_THIRD_PARTY_DIR /home/bernard/OpenFOAM/ThirdParty yes yes
-------------------------------------------------------------------------------

Checking the OpenFOAM env variables set on the PATH...
-------------------------------------------------------------------------------
Environment_variable Set_to_file_or_directory Valid Path Crit
-------------------------------------------------------------------------------
$WM_PROJECT_DIR /home/bernard/OpenFOAM/OpenFOAM-1.5 yes yes yes
$FOAM_APPBIN ...1.5/applications/bin/linux64GccDPOpt yes yes yes
$FOAM_USER_APPBIN ...1.5/applications/bin/linux64GccDPOpt no no
$WM_DIR .../bernard/OpenFOAM/OpenFOAM-1.5/wmake yes yes yes
-------------------------------------------------------------------------------

Checking the OpenFOAM env variables set on the LD_LIBRARY_PATH...
-------------------------------------------------------------------------------
Environment_variable Set_to_file_or_directory Valid Path Crit
-------------------------------------------------------------------------------
$FOAM_LIBBIN ...OAM/OpenFOAM-1.5/lib/linux64GccDPOpt yes no yes
$FOAM_USER_LIBBIN ...FOAM/bernard-1.5/lib/linux64GccDPOpt yes no no
$MPI_ARCH_PATH ...nmpi-1.2.6/platforms/linux64GccDPOpt yes no yes
-------------------------------------------------------------------------------

Third party software
-------------------------------------------------------------------------------
Software Version Location
-------------------------------------------------------------------------------
gcc 4.3.1 ...penFOAM/ThirdParty/gcc-4.3.1/platforms/linux64/bin/gcc
gzip 1.3.12 /usr/bin/gzip
tar 1.17 /bin/tar
icoFoam .../OpenFOAM-1.5/applications/bin/linux64GccDPOpt/icoFoam
-------------------------------------------------------------------------------

Checking networking...
-------------------------------------------------------------------------------
Action Result Crit
-------------------------------------------------------------------------------
Pinging_bernard Successful yes
Pinging_localHost Successful yes
Test_rsh: Unsuccessful_connection_refused* yes
Test_ssh: Unsuccessful_connection_refused* yes
FATAL ERROR: No remote shell available.
OpenFOAM 1.5 enviroment requires either ssh and/or rsh.
Contact your system administrator.

-------------------------------------------------------------------------------
The system test has evoked 1 fatal error(s).
Critical systems ok.
Review the output for warning messages and consult
the installation guide for trouble shooting.
done.

However, when I try to run the frist tutortial, icoFoam/cavity, I get the following error:

bernard:/home/bernard/OpenFOAM/bernard-1.5/run/tutorials/icoFoam/cavity # blockMesh
blockMesh: error while loading shared libraries: libmeshTools.so: cannot open shared object file: No such file or directory
bernard:/home/bernard/OpenFOAM/bernard-1.5/run/tutorials/icoFoam/cavity # blockMesh .cavity
blockMesh: error while loading shared libraries: libmeshTools.so: cannot open shared object file: No such file or directory

Checking which libraries are used, I see:

bernard:/home/bernard/OpenFOAM/bernard-1.5/run/tutorials/icoFoam/cavity # ldd `which blockMesh`
libmeshTools.so => not found
libdynamicMesh.so => not found
libOpenFOAM.so => not found
libdl.so.2 => /lib64/libdl.so.2 (0x00002ba13b743000)
libstdc++.so.6 => /usr/lib64/libstdc++.so.6 (0x00002ba13b947000)
libm.so.6 => /lib64/libm.so.6 (0x00002ba13bc4f000)
libgcc_s.so.1 => /lib64/libgcc_s.so.1 (0x00002ba13bea3000)
libc.so.6 => /lib64/libc.so.6 (0x00002ba13c0b1000)
libpthread.so.0 => /lib64/libpthread.so.0 (0x00002ba13c3f7000)
/lib64/ld-linux-x86-64.so.2 (0x00002ba13b526000)

Thus the first three libraries are not found. Is there a way to set a path for these?

Any help much appreciated!

psosnows June 8, 2009 10:49

Hello Bernard,

first- I suppose you had root privilages while instalation:
Code:

sudo make install
and the second thing, did you add the line:
Code:

. $HOME/OpenFOAM/OpenFOAM-1.5/etc/bashrc
to the end of your ~/.bashrc file?

thats all what comes to my mind right now, hope it helps

Pawel

bernarde June 8, 2009 11:06

Thanks for the reply. Yes, those issues are sorted out. In the mean time I have figured out a part of the problem. The LD_LIBRARY_PATH did not contain all the required paths - I added the path to the libraries there, and it worked.

arslantuf June 19, 2009 12:36

Hi,

could you send me OpenFOAM-1.5/etc/bashrc file and may be .basrch shell file.
I couldnt be succesfull configuring the environment . I m getting the error:

Executing foamInstallationTest:


Checking basic setup...
-------------------------------------------------------------------------------

FATAL ERROR: OpenFOAM environment not configured.

Please refer to the installation section of the README file:
<OpenFOAM installation dir>/OpenFOAM-1.5/README
to source the OpenFOAM environment.


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