Error libmpi_cxx.so.0

Submitted by katterfe on Thu, 01/20/2011 - 18:28

Hey everybody,

after installing Liggghts on Fedora 14 the following error message occurs when I try to start liggghts:

liggghts: error while loading shared libraries: libmpi_cxx.so.0: cannot open shared object file: No such file or directory

I have installed the newest version of openmpi and the mentioned file can be found in /usr/lib/openmpi/lib

I attach a screenshot.

Thanks for your help!
Andre

AttachmentSize
Image icon liggghts.jpg278.87 KB
ckloss's picture

ckloss | Thu, 01/20/2011 - 18:43

Hey Andre,

we had similar issues - under some obscure circumstances, some fedora versions suffer from problems with the openmpi installation, where the system does not find the libs.

One way to circumvent this is to set symbolic links in a way like:

ln -s /usr/lib/openmpi/lib/libmpi_cxx.so.0 /usr/lib

You potentially have to to this also for other libs (but you will see it when the error messages come :-)
Hope that works... greetings to Magdeburg!

Cheers,
Christoph

katterfe | Thu, 01/20/2011 - 22:19

Thanks Christioph,

I had to do the link also for
libmpi.so.0
libopen-rte.so.0
libopen-pal.so.0
but now it works!

Thanks again!
Andre

Tamoghna | Tue, 06/25/2013 - 16:22

For 64bit change to:
sudo ln -s /usr/lib64/openmpi/lib/libmpi_cxx.so.1 /usr/lib64

manjura | Wed, 07/03/2013 - 19:48

Hello,

The executable liggghts-dev was working fine. But i recently recompile openfoam and paraview, after that I am getting the similar error as someone mentioned above. The executable liggghts-dev is giving me error. I am attaching a snapshot of the error.

A requested component was not found, or was unable to be opened. This
means that this component is either not installed or is unable to be
used on your system (e.g., sometimes this means that shared libraries
that the component requires are unable to be found/loaded). Note that
Open MPI stopped checking at the first component that it did not find.

Host: manjura-Inspiron-660
Framework: crs
Component: none
--------------------------------------------------------------------------
[manjura-Inspiron-660:31721] *** Process received signal ***
[manjura-Inspiron-660:31721] Signal: Segmentation fault (11)
[manjura-Inspiron-660:31721] Signal code: Address not mapped (1)
[manjura-Inspiron-660:31721] Failing at address: 0x28
[manjura-Inspiron-660:31721] [ 0] /lib/x86_64-linux-gnu/libpthread.so.0(+0xfcb0) [0x7f821dc22cb0]
[manjura-Inspiron-660:31721] [ 1] /usr/lib/libopen-pal.so.0(mca_base_select+0x108) [0x7f821d3d1518]
[manjura-Inspiron-660:31721] [ 2] /usr/lib/libopen-pal.so.0(opal_crs_base_select+0x7e) [0x7f821d3e390e]
[manjura-Inspiron-660:31721] [ 3] /usr/lib/libopen-pal.so.0(opal_cr_init+0x31e) [0x7f821d3c20ee]
[manjura-Inspiron-660:31721] [ 4] /usr/lib/libopen-pal.so.0(opal_init+0x159) [0x7f821d3c1a59]
[manjura-Inspiron-660:31721] [ 5] /usr/lib/libopen-rte.so.0(orte_init+0x4d) [0x7f821d613a0d]
[manjura-Inspiron-660:31721] [ 6] /usr/lib/libmpi.so.0(+0x362e1) [0x7f821e3782e1]
[manjura-Inspiron-660:31721] [ 7] /usr/lib/libmpi.so.0(MPI_Init+0x16b) [0x7f821e3993fb]
[manjura-Inspiron-660:31721] [ 8] liggghts-dev(main+0x1b) [0x48b4ab]
[manjura-Inspiron-660:31721] [ 9] /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xed) [0x7f821d87576d]
[manjura-Inspiron-660:31721] [10] liggghts-dev() [0x48c821]
[manjura-Inspiron-660:31721] *** End of error message ***

I couldn't find the missing files on /usr/lib64/openmpi/lib/ so that i can link them to /usr/lib

when i write 'which mpirun' on terminal it shows
/home/manjura/OpenFOAM/ThirdParty-2.2.0/platforms/linux64Gcc/openmpi-1.6.3/bin/mpirun
it should be /usr/bin/mpirun

Any help?

Thanks
Manjura

mmmn