It sounds like you should use the mpicc / mpiCC compilers for installing RMPI...? If you do, libmpi (and friends) should be found automatically.
You might want to contact the RMPI developers -- it sounds like this is a specific check in their configuration script that is failing. They can probably best answer why and how to fix it.
________________________________
From: lam-bounces_at_[hidden] [mailto:lam-bounces_at_[hidden]] On Behalf Of Emiliano Barreto_Hernandez
Sent: Tuesday, May 09, 2006 1:07 PM
To: General LAM/MPI mailing list
Subject: Re: LAM: compilation problem
Dear Brain
Thatks for yuor answer.
Follow your advice I've already recompiled lam mpi using --enable-shared --disable-static option
And setup
exprot LD_LIBRARY_PATH=/usr/local/lib (where there is a libmpi.a and
-rwxr-xr-x 1 root root 777 2006-05-09 15:26 libmpi.la
lrwxrwxrwx 1 root root 15 2006-05-09 15:26 libmpi.so -> libmpi.so.0.0.0
lrwxrwxrwx 1 root root 15 2006-05-09 15:26 libmpi.so.0 -> libmpi.so.0.0.0
-rwxr-xr-x 1 root root 828225 2006-05-09 15:26 libmpi.so.0.0.0
But when try to install
Rmpi with R CMD INSTALL Rmpi_0.5-2.tar.gz
The next error apair
checking mpi.h presence... yes
checking for mpi.h... yes
Try to find libmpi or libmpich ...
checking for main in -lmpi... no
libmpi not found. exiting...
ERROR: configuration failed for package 'Rmpi'
** Removing '/usr/local/lib64/R/library/Rmpi'
Some idea?
Emiliano
On 5/9/06, Brian Barrett <brbarret_at_[hidden]> wrote:
On May 9, 2006, at 1:44 PM, Emiliano Barreto_Hernandez wrote:
> Ive tryed to install Rmpi that is an implemetation of mpi in R that
> use
> lam-mpi.
>
> I used the next command:
>
> R CMD INSTALL Rmpi_0.5-2.tar.gz
>
> But occurred this error:
>
> gcc -shared -L/usr/local/lib64 -o Rmpi.so conversion.o internal.o
> RegQuery.o
> Rmpi.o -lmpi -llam -lutil -lpthread -L/usr/local/lib64/R/lib -lR
> /usr/lib64/gcc-lib/x86_64-suse-linux/3.3.3/../../../../x86_64-suse-
> linux/bin
> /ld: /usr/local/lib/libmpi.a( infoset.o): relocation R_X86_64_32
> can not be
> used when making a shared object; recompile with -fPIC
> /usr/local/lib/libmpi.a: could not read symbols: Bad value
> collect2: ld returned 1 exit status
> make: *** [Rmpi.so ] Error 1
> chmod: cannot access `/usr/local/lib64/R/library/Rmpi/libs/*': No
> such file
> or directory
> ERROR: compilation failed for package 'Rmpi'
> ** Removing '/usr/local/lib64/R/library/Rmpi'
>
> It looks like I must recompile lim with -fPIC but I coudn't. May
> you give me
> some advice
This means you must recompile LAM/MPI with the -fPIC option. There
are two ways to do that. The simplest is to recompile LAM/MPI with
the options --enable-shared --disable-static. This will also
probably make it easier to use R with LAM/MPI, but you will have to
use LD_LIBRARY_PATH or rpath to make sure the LAM/MPI shared
libraries can be loaded.
The other option is to still compile LAM/MPI as a static library and
compile with the -fPIC option. This can be done by using a configure
line like:
./configure CFLAGS="-fPIC" CXXFLAGS="-fPIC" FFLAGS="-fPIC" <normal
options>
Hope this helps,
Brian
--
Brian Barrett
LAM/MPI developer and all around nice guy
Have a LAM/MPI day: http://www.lam-mpi.org/
_______________________________________________
This list is archived at http://www.lam-mpi.org/MailArchives/lam/
--
--------------------------------------------------------
Emiliano Barreto_Hernandez
Profesor Asociado
Colombia EMBnet Node Manager
Centro de Bioinformática
Instituto de Biotecnología - Universidad Nacional de Colombia
Edificio Manuel Ancizar
Bogotá - Colombia
Tel +57 3165000 ext 16956 Fax +571 3165415
ebarretoh_at_[hidden]
http://bioinf.ibun.unal.edu.co
http://www.co.embnet.org
|