[R-sig-hpc] Problem compiling Rmpi on Linux

Dirk Eddelbuettel edd at debian.org
Mon Dec 8 19:43:18 CET 2008


Hi Marco,

On 8 December 2008 at 12:15, Blanchette, Marco wrote:
| I am trying without success to install the Rmpi package on our large computing cluster but it keeps failing at compilation time. The machine is:
| bash-3.2$ uname -a
| Linux cluster04 2.6.18-53.el5 x86_64 x86_64 x86_64 GNU/Linux
| 
| I have downloaded and successfully installed LAM-MPI under $HOME.

Just checking -- are you aware that 'sudo apt-get install r-cran-rmpi' gives
a pre-built and working Rmpi (albeit based off Open MPI) ?

By the same token, do you know that 'sudo apt-get install lam4-dev' gets you
a working LAM implementation ... for which Rmpi should automatically find
headers and libraries.  
 
| If I try to install the Rmpi package by
| $  R CMD INSTALL Rmpi --configure-args=--with-mpi=$HOME
| 
| I am getting the following error at compilation time (I also put the full transcript of the instalation at the end of this message).
| /usr/bin/ld: /home/mab/lib/libmpi.a(recv.o): relocation R_X86_64_32 against `a local symbol' can not be used when making a shared object; recompile with -fPIC
| /home/mab/lib/libmpi.a: could not read symbols: Bad value
| 
| Any help to resolve that issue would be greatly appreciated.

As Hoa indicated in the earlier reply, this error seems to stem from the fact
that your local libmpia.a is statically built wheresas R needs it as a
dynamic library.  

But as suggested above, maybe you can use the prebuilt packages?  

Cheers, Dirk

-- 
Three out of two people have difficulties with fractions.



More information about the R-sig-hpc mailing list