|
[Sponsors] |
libmpi.so.0: cannot open shared object file // OpenFOAM 2.0.1 Installation |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
December 19, 2011, 09:52 |
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: 16 |
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 |
|
December 20, 2011, 05:36 |
|
#2 |
New Member
Alexey Kochevsky
Join Date: Nov 2010
Location: Munich, Germany
Posts: 16
Rep Power: 16 |
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? |
|
December 21, 2011, 03:57 |
|
#3 |
Senior Member
Alberto Passalacqua
Join Date: Mar 2009
Location: Ames, Iowa, United States
Posts: 1,912
Rep Power: 36 |
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. |
|
April 2, 2012, 22:29 |
adding library path
|
#4 |
New Member
|
I fixed this library issue by adding:
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/lib64/mpi/gcc/openmpi/lib64/ to my .bashrc file. |
|
Tags |
libmpi.so.0, openfoam 2.0.1, openmpi |
|
|
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 15:56 |
OpenFOAM 1.7.1 installation problem on OpenSUSE 11.3 | flakid | OpenFOAM Installation | 16 | December 28, 2010 09:48 |
Installation of OpenFOAM-1.6 on Ubuntu 9.10 | marval | OpenFOAM Installation | 2 | March 17, 2010 09:33 |
OF 1.6 | Ubuntu 9.10 (64bit) | GLIBCXX_3.4.11 not found | piprus | OpenFOAM Installation | 22 | February 25, 2010 14:43 |
ParaView Compilation | jakaranda | OpenFOAM Installation | 3 | October 27, 2008 12:46 |