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

Installation/Tutorial - libraries not found (blockMesh)

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

Reply
 
LinkBack Thread Tools Display Modes
Old   June 8, 2009, 10:12
Default Installation/Tutorial - libraries not found (blockMesh)
  #1
Member
 
Bernard Esterhuyse
Join Date: Mar 2009
Location: Pretoria, South Africa
Posts: 50
Rep Power: 8
bernarde is on a distinguished road
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!
bernarde is offline   Reply With Quote

Old   June 8, 2009, 10:49
Default
  #2
Senior Member
 
Pawel Sosnowski
Join Date: Mar 2009
Location: Trieste, Italy
Posts: 105
Rep Power: 9
psosnows is on a distinguished road
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
psosnows is offline   Reply With Quote

Old   June 8, 2009, 11:06
Default
  #3
Member
 
Bernard Esterhuyse
Join Date: Mar 2009
Location: Pretoria, South Africa
Posts: 50
Rep Power: 8
bernarde is on a distinguished road
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.
bernarde is offline   Reply With Quote

Old   June 19, 2009, 12:36
Default
  #4
New Member
 
zakk
Join Date: Jun 2009
Posts: 8
Rep Power: 8
arslantuf is on a distinguished road
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.
arslantuf 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
Problems in compiling paraview in Suse 10.3 platform chiven OpenFOAM Installation 3 December 1, 2009 08:21
Installation OF1.5-dev ttdtud OpenFOAM Installation 46 May 5, 2009 02:32
OpenFOAM15 installables are incomplete problem with paraFoam tryingof OpenFOAM Bugs 17 December 7, 2008 05:41
Regarding FoamX running Kindly help out hariya03 OpenFOAM Pre-Processing 0 April 18, 2008 04:26
Problem with rhoSimpleFoam matteo_gautero OpenFOAM Running, Solving & CFD 0 February 28, 2008 07:51


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