libmpi.so.0: cannot open shared object file // OpenFOAM 2.0.1 Installation
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 :confused: 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 |
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? |
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, |
adding library path
I fixed this library issue by adding:
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/lib64/mpi/gcc/openmpi/lib64/ to my .bashrc file. |
All times are GMT -4. The time now is 09:58. |