[R-sig-hpc] Problems Installing Rmpi on openSUSE 11.1 x86_64

Hao Yu hyu at stats.uwo.ca
Fri Jun 26 17:23:14 CEST 2009


Hi Melwin,

Did you try

R CMD INSTALL Rmpi_0.5-7.tar.gz --configure-args=--with-mpi=/path_to_lam

Your system may have several mpi and Rmpi did not find a right mpi.

BTW, when you are installing lam, make sure to turn dynamic lib on. The
default one is static one and Rmpi needs libmpi.so to work.

Hao

Melwin wrote:
> Thanks for the reply.
>
> 2009/6/24 Rowe, Brian Lee Yung (Portfolio Analytics) <B_Rowe at ml.com>:
>> Did you confirm that your MPI installation is working? That is the
>> probably the first step.
> LAM seems to work ok:
>    johnson at linuxmodel:~> lamboot -v
>
>    LAM 7.1.4/MPI 2 C++/ROMIO - Indiana University
>
>    n-1<4165> ssi:boot:base:linear: booting n0 (localhost)
>    n-1<4165> ssi:boot:base:linear: finished
>    johnson at linuxmodel:~> lamexec C hostname
>    linuxmodel
>
>
>> Regarding LD_LIBRARY_PATH, since I don't know what your configuration
>> is, make sure you export it to your environment and also don't overwrite
>> any existing values.
>>  i.e. This is better:
>>  $ export LD_LIBRARY_PATH=/usr/lib64:$LD_LIBRARY_PATH
>> since it looks like you're on a 64 bit platform.
>
> Tried that. Same results as before:
>    johnson at linuxmodel:~>     R CMD INSTALL Rmpi_0.5-7.tar.gz
>    * Installing to library
> '/home/johnson/R/x86_64-unknown-linux-gnu-library/2.8'
>    * Installing *source* package 'Rmpi' ...
>    checking for gcc... gcc
>    checking for C compiler default output file name... a.out
>    checking whether the C compiler works... yes
>    checking whether we are cross compiling... no
>    checking for suffix of executables...
>    checking for suffix of object files... o
>    checking whether we are using the GNU C compiler... yes
>    checking whether gcc accepts -g... yes
>    checking for gcc option to accept ISO C89... none needed
>    I am here /usr
>    Try to find mpi.h ...
>    Found in /usr/include
>    Try to find libmpi.so or libmpich.a
>    checking for main in -lmpi... no
>    libmpi not found. exiting...
>    ERROR: configuration failed for package 'Rmpi'
>    ** Removing '/home/johnson/R/x86_64-unknown-linux-gnu-library/2.8/Rmpi'
>
>> I use OpenMPI and it include an mpi-based compiler which I found to work
>> better than gcc directly. You might try that. Just make sure you export
>> your MPI_ROOT.
> I would love to use OpenMPI, but I gather the slave spawning from within R
> is not yet possible - which is what I need in interactive mode
> (https://stat.ethz.ch/pipermail/r-sig-hpc/2009-February/000104.html). I'd
> love to hear that this has changed.
>
>> It would also probably help to include a bit more output
>> from the compilation process.
> The dump above contains the entire output, I hope that helps.
>
> thanks again,
> Melwin
>
> _______________________________________________
> 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