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

libmpi.so.0: cannot open shared object file // OpenFOAM 2.0.1 Installation

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 19, 2011, 08:52
Default libmpi.so.0: cannot open shared object file // OpenFOAM 2.0.1 Installation
  #1
New Member
 
Alexey Kochevsky
Join Date: Nov 2010
Location: Munich, Germany
Posts: 16
Rep Power: 15
alkochevsky is on a distinguished road
Hi,
I have installed OpenFOAM 2.0.1 under SuSE 11.3 (for 64 bit) according to these instructions: http://www.openfoam.com/download/suse.php
It worked successfully.

Unfortunately, when I have started it (e.g., icoFoam) several days later, I have got the following message:
icoFoam: error while loading shared libraries: libmpi.so.0: cannot open shared object file: No such file or directory

The foamInstallationTest fails as well:
FATAL ERROR: OpenFOAM environment not configured

I suppose, the openmpi library is not set correctly.
The command "env | $LD_LIBRARY_PATH" delivers this result:

bash: /opt/paraviewopenfoam3101/lib/paraview-3.10:/opt/openfoam201/platforms/linux64GccDPOpt/lib/openmpi-system:/opt/ThirdParty-2.0.1/platforms/linux64GccDPOpt/lib/openmpi-system:found:not:command:mpicc::/home/oko/OpenFOAM/oko-2.0.1/platforms/linux64GccDPOpt/lib:/opt/site/2.0.1/platforms/linux64GccDPOpt/lib:/opt/openfoam201/platforms/linux64GccDPOpt/lib:/opt/ThirdParty-2.0.1/platforms/linux64GccDPOpt/lib:/opt/openfoam201/platforms/linux64GccDPOpt/lib/dummy:found:not:command:mpicc:/usr/lib64/Togl1.7/:/home/oko/netgen-4.9.13/lib/:/usr/lib64/Togl1.7/:/home/oko/netgen-4.9.13/lib/:/usr/lib64/Togl1.7/

Nevertheless, the openmpi library is set:
the command "mpi-selector --list" delivers the result "openmpi-1.3.2".

Then, what is wrong?
By the way, I don't have the folder /opt/ThirdParty-2.0.1/ mentioned above. How can I find out where is my openmpi-1.3.2 library? And where it should be located? I suppose, I should edit something in the OpenFOAM configuration files. But what particular?

Best regards,
Alexey Kochevsky
alkochevsky is offline   Reply With Quote

Old   December 20, 2011, 04:36
Default
  #2
New Member
 
Alexey Kochevsky
Join Date: Nov 2010
Location: Munich, Germany
Posts: 16
Rep Power: 15
alkochevsky is on a distinguished road
Now I have installed the next version, OpenFOAM 2.1.0, according to the same instructions, http://www.openfoam.com/download/suse.php, that were yesterday updated. It works, I mean, at least the application icoFoam runs successfully.

For comparison, the command "env | $LD_LIBRARY_PATH" now delivers this result:

bash: /opt/OpenFOAM-ParaView-3.12.0/lib/paraview-3.12:/opt/OpenFOAM-scotch-5.1.12/lib:/opt/OpenFOAM-2.1.0/platforms/linux64GccDPOpt/lib/openmpi-system:/opt/ThirdParty-2.1.0/platforms/linux64GccDPOpt/lib/openmpi-system:/usr/lib64/mpi/gcc/openmpi/lib64:/home/oko/OpenFOAM/oko-2.1.0/platforms/linux64GccDPOpt/lib:/opt/site/2.1.0/platforms/linux64GccDPOpt/lib:/opt/OpenFOAM-2.1.0/platforms/linux64GccDPOpt/lib:/opt/ThirdParty-2.1.0/platforms/linux64GccDPOpt/lib:/opt/OpenFOAM-2.1.0/platforms/linux64GccDPOpt/lib/dummy:/usr/lib64/mpi/gcc/openmpi/lib64:/usr/lib64/Togl1.7/:/home/oko/netgen-4.9.13/lib/:/usr/lib64/Togl1.7/

As I see, the openmpi library, libmpi.so.0, is here:
/usr/lib64/mpi/gcc/openmpi/lib64

Nevertheless, the foamInstallationTest fails:
FATAL ERROR: OpenFOAM environment not configured.

The reason is that the variable $WM_THIRD_PARTY_DIR is not set.
oko@winpc90:~> env | $WM_PROJECT_INST_DIR
bash: /opt: is a directory
oko@winpc90:~> env | $WM_THIRD_PARTY_DIR
bash: /opt/ThirdParty-2.1.0: No such file or directory

In fact, with the standard installation, I have not got the folder ThirdParty-2.1.0 that is nevertheless referenced by the variable $LD_LIBRARY_PATH. Is here something wrong?
alkochevsky is offline   Reply With Quote

Old   December 21, 2011, 02:57
Default
  #3
Senior Member
 
Alberto Passalacqua
Join Date: Mar 2009
Location: Ames, Iowa, United States
Posts: 1,912
Rep Power: 36
alberto will become famous soon enoughalberto will become famous soon enough
Since you are using the SUSE pack, you should report this on OpenCFD bug reporting tool.

However, you should check that OpenFOAM is using the system openmpi, and that mpi is accessible from your command line. For example, can you actually run mpicc?

If you want to compile from source, you could follow my tutorial http://albertopassalacqua.com/?p=1080 . Please skip points from 10 to 14, since they are *not* required for OpenFOAM 2.1.

Best,
__________________
Alberto Passalacqua

GeekoCFD - A free distribution based on openSUSE 64 bit with CFD tools, including OpenFOAM. Available as in both physical and virtual formats (current status: http://albertopassalacqua.com/?p=1541)
OpenQBMM - An open-source implementation of quadrature-based moment methods.

To obtain more accurate answers, please specify the version of OpenFOAM you are using.
alberto is offline   Reply With Quote

Old   April 2, 2012, 21:29
Default adding library path
  #4
New Member
 
Carlos F. Lange
Join Date: Jan 2010
Location: Edmonton, Alberta, Canada
Posts: 2
Rep Power: 0
cflange is on a distinguished road
Send a message via Skype™ to cflange
I fixed this library issue by adding:

export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/lib64/mpi/gcc/openmpi/lib64/

to my .bashrc file.
cflange is offline   Reply With Quote

Reply

Tags
libmpi.so.0, openfoam 2.0.1, openmpi


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
[foam-extend.org] Error compiling OpenFOAM-1.6-ext Canesin OpenFOAM Installation 137 January 20, 2016 14:56
OpenFOAM 1.7.1 installation problem on OpenSUSE 11.3 flakid OpenFOAM Installation 16 December 28, 2010 08:48
Installation of OpenFOAM-1.6 on Ubuntu 9.10 marval OpenFOAM Installation 2 March 17, 2010 08:33
OF 1.6 | Ubuntu 9.10 (64bit) | GLIBCXX_3.4.11 not found piprus OpenFOAM Installation 22 February 25, 2010 13:43
ParaView Compilation jakaranda OpenFOAM Installation 3 October 27, 2008 11:46


All times are GMT -4. The time now is 07:15.