[R-sig-hpc] Trouble using Rmpi after successful installation

Hao Yu hyu at stats.uwo.ca
Tue Apr 27 15:49:34 CEST 2010


Try
R CMD ldd path_to_Rmpi.so

to see if Rmpi can find libs in /usr/lib64/openmpi/1.3.2-gcc/lib.
Otherwise you have to modify env LD_LIBRARY_PATH or modify R script to add
at third line

LD_LIBRARY_PATH=/usr/lib64/openmpi/1.3.2-gcc/lib

Hao

Paul Geeleher wrote:
> Hi guys,
>
> I'm trying to install Rmpi on the slave nodes of my cluster. The
> installation seems to work with no errors or warnings using this
> command:
>
> R CMD INSTALL
> --configure-args="--with-Rmpi-include=/usr/lib64/openmpi/1.3.2-gcc/include
> --with-Rmpi-libpath=/usr/lib64/openmpi/1.3.2-gcc/lib
> --with-Rmpi-type=OPENMPI" Rmpi_0.5-8.tar.gz
>
> But when I attempt to load Rmpi I get the following error:
>
>> 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
> Error in library(Rmpi) : .First.lib failed for 'Rmpi'
> Error in dyn.unload(file.path(libpath, "libs", paste("Rmpi",
> .Platform$dynlib.ext,  :
>  dynamic/shared library '/usr/lib64/R/library/Rmpi/libs/Rmpi.so' was not
> loaded
>
> I wonder does anybody have an ideas as to what might be wrong here?
>
> It seemed to install just fine on my master node by the way.
>
> Thanks,
>
> Paul.
>
>
> --
> Paul Geeleher
> School of Mathematics, Statistics and Applied Mathematics
> National University of Ireland
> Galway
> Ireland
> --
> www.bioinformaticstutorials.com
>
> --
> Paul Geeleher
> School of Mathematics, Statistics and Applied Mathematics
> National University of Ireland
> Galway
> Ireland
> --
> www.bioinformaticstutorials.com
>
> _______________________________________________
> R-sig-hpc mailing list
> R-sig-hpc at r-project.org
> https://stat.ethz.ch/mailman/listinfo/r-sig-hpc
>


-- 
Department of Statistics & Actuarial Sciences
Fax Phone#:(519)-661-3813
The University of Western Ontario
Office Phone#:(519)-661-3622
London, Ontario N6A 5B7
http://www.stats.uwo.ca/faculty/yu



More information about the R-sig-hpc mailing list