libmpi.so.0: cannot open shared object file // OpenFOAM 2.0.1 Installation
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 :confused:
I suppose, the openmpi library is not set correctly.
The command "env | $LD_LIBRARY_PATH" delivers this result:
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?
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:
As I see, the openmpi library, libmpi.so.0, is here:
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?
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.
adding library path
I fixed this library issue by adding:
to my .bashrc file.
|All times are GMT -4. The time now is 20:59.|