I'm having a problem with Rmpi wherein I try to load it and I get this error message:
> library('Rmpi')
Error in dyn.load(file, DLLpath = DLLpath, ...) :
unable to load shared library '/usr/lib64/R/library/Rmpi/libs/Rmpi.so':
libmpi.so.0: cannot open shared object file: No such file or directory
In addition: Warning message:
.Last.lib failed in detach() for 'Rmpi', details:
call: dyn.unload(file.path(libpath, "libs", paste("Rmpi", .Platform$dynlib.ext,
error: dynamic/shared library '/usr/lib64/R/library/Rmpi/libs/Rmpi.so' was not loaded
Error in library("Rmpi") : .First.lib failed for 'Rmpi'
This error does not occur when I'm logged in as root, however.
It does not appear to be a permissions issue. I checked the permissions for libmpi.so.0:
[meehan@cnl10 /]$ ll /usr/lib64/lam/lib/
total 7.4M
-rw-r--r-- 1 root root 207 May 25 2008 lam.module
-rw-r--r-- 1 root root 885K May 25 2008 liblam.a
-rw-r--r-- 1 root root 361K May 25 2008 liblamf77mpi.a
lrwxrwxrwx 1 root root 21 Apr 12 2010 liblamf77mpi.so -> liblamf77mpi.so.0.0.0
lrwxrwxrwx 1 root root 21 Apr 12 2010 liblamf77mpi.so.0 -> liblamf77mpi.so.0.0.0
-rwxr-xr-x 1 root root 73K May 25 2008 liblamf77mpi.so.0.0.0
-rw-r--r-- 1 root root 2.2M May 25 2008 liblammpi++.a
-rw-r--r-- 1 root root 509K May 25 2008 liblammpio.a
lrwxrwxrwx 1 root root 20 Apr 12 2010 liblammpi++.so -> liblammpi++.so.0.0.0
lrwxrwxrwx 1 root root 20 Apr 12 2010 liblammpi++.so.0 -> liblammpi++.so.0.0.0
-rwxr-xr-x 1 root root 167K May 25 2008 liblammpi++.so.0.0.0
lrwxrwxrwx 1 root root 15 Apr 12 2010 liblam.so -> liblam.so.0.0.0
lrwxrwxrwx 1 root root 15 Apr 12 2010 liblam.so.0 -> liblam.so.0.0.0
-rwxr-xr-x 1 root root 332K May 25 2008 liblam.so.0.0.0
-rw-r--r-- 1 root root 2.2M May 25 2008 libmpi.a
lrwxrwxrwx 1 root root 15 Apr 12 2010 libmpi.so -> libmpi.so.0.0.0
lrwxrwxrwx 1 root root 15 Apr 12 2010 libmpi.so.0 -> libmpi.so.0.0.0
-rwxr-xr-x 1 root root 655K May 25 2008 libmpi.so.0.0.0
And Rmpi.so:
[meehan@cnl10 /]$ ll /usr/lib64/R/library/Rmpi/libs/
total 108K
-rwxr-xr-x 1 root root 104K Jan 20 2011 Rmpi.so
I am running R as sudo anyway.
Relevant system info: -Linux distro: CentOS 5.5 -R version: 2.11.1 (2010-05-31) -Rmpi version: 0.5-8 -MPI implementation is openmpi
[meehan@cnl10 /]$ echo $LD_LIBRARY_PATH
/opt/lib:/opt/open-mpi/tcp-`gnu41/lib:/opt/intel/mkl/10.2/lib/em64t:/opt/intel/fce/11.1/lib:/opt/intel/cce/11.1/lib:`
Any help would be most appreciated!
ldd
may help here, tryldd /usr/lib64/R/library/Rmpi/libs/Rmpi.so
to see what libraries it refers to, some of these may be unavailable. An even bigger hammer is to usestrace
and look for failingopen()
s – PrimateLD_LIBRARY_PATH
looks awkward. And even if those backticks appeared while posting here,/usr/lib64/lam/lib
is not part of the library path. Besides, are you sure that this is the MPI version thatRmpi
was linked against? Mixing different MPI implementations doesn't work 99.9% of the time. – Werbel