Skip to content

Error in library(Rmpi)

7 messages · Hao Yu, Arash Fard

#
Did you turn on dynamic lib when you were installing lam? The default was
static lib. Rmpi needs libmpi.so and liblam.so to work. Also use
             R CMD ldd path_to_Rmpi.so
to see if Rmpi finds all libs.

Hao
Arash Fard wrote:

  
    
#
If you are able to
./R CMD INSTALL /root/src/Rmpi/Rmpi_0.5-7.tar.gz
 --configure-args=--with-mpi=/usr/lam

I assume Lam is in /usr/lam. So its lib must be in /usr/lam/lib or
usr/lam/lib64. Modify R script and add
LD_LIBRARY_PATH=/usr/lam/lib64

right after the first two lines. Then run R CMD ldd again to see if all
libs are sourced properly.

Hao
Arash Fard wrote: