Hi,
I try to compile and run Rmpi using LAM/MPI, but I have faced a problem. I
appreciate your help.

The command that use that I use to install Rmpi and the result is as it
follows. Please be also informed that I set LD_LIBRARY_PATH in R script. As
far as I understand, the problem is related to "liblam.so.0", but I do not
know how to resolve it.

Thanks,
Arash
Odum School of Ecology
University of Georgia

R CMD INSTALL Rmpi_0.5-9.tar.gz --configure-args="--with-mpi=/usr/lamarash
--prefix=/usr/lamarash CC=/usr/lamarash/bin/mpicc"
* installing to library ‘/usr/local/lib64/R/library’
* installing *source* package ‘Rmpi’ ...
checking for gcc... gcc -std=gnu99
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 -std=gnu99 accepts -g... yes
checking for gcc -std=gnu99 option to accept ISO C89... none needed
Trying to find mpi.h ...
Found in /usr/lamarash/include
Trying to find libmpi.so or libmpich.a ...
Found libmpi in /usr/lamarash/lib
Try to find liblam.so ...
Found liblam in /usr/lamarash/lib
checking for openpty in -lutil... yes
checking for main in -lpthread... yes
configure: creating ./config.status
config.status: creating src/Makevars
** libs
gcc -std=gnu99 -I/usr/local/lib64/R/include -DPACKAGE_NAME=\"\"
-DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\"
-DPACKAGE_BUGREPORT=\"\" -I/usr/lamarash/include  -DMPI2 -DLAM
-I/usr/local/include    -fpic  -g -O2 -c RegQuery.c -o RegQuery.o
gcc -std=gnu99 -I/usr/local/lib64/R/include -DPACKAGE_NAME=\"\"
-DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\"
-DPACKAGE_BUGREPORT=\"\" -I/usr/lamarash/include  -DMPI2 -DLAM
-I/usr/local/include    -fpic  -g -O2 -c Rmpi.c -o Rmpi.o
gcc -std=gnu99 -I/usr/local/lib64/R/include -DPACKAGE_NAME=\"\"
-DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\"
-DPACKAGE_BUGREPORT=\"\" -I/usr/lamarash/include  -DMPI2 -DLAM
-I/usr/local/include    -fpic  -g -O2 -c conversion.c -o conversion.o
gcc -std=gnu99 -I/usr/local/lib64/R/include -DPACKAGE_NAME=\"\"
-DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\"
-DPACKAGE_BUGREPORT=\"\" -I/usr/lamarash/include  -DMPI2 -DLAM
-I/usr/local/include    -fpic  -g -O2 -c internal.c -o internal.o
gcc -std=gnu99 -shared -L/usr/local/lib64 -o Rmpi.so RegQuery.o Rmpi.o
conversion.o internal.o -L/usr/lamarash/lib -lmpi -llam -lutil -lpthread
installing to /usr/local/lib64/R/library/Rmpi/libs
** R
** demo
** inst
** preparing package for lazy loading
** help
*** installing help indices
** building package indices ...
** testing if installed package can be loaded
Error in dyn.load(file, DLLpath = DLLpath, ...) :
  unable to load shared object
'/usr/local/lib64/R/library/Rmpi/libs/Rmpi.so':
  /usr/lamarash/lib/liblam.so.0: undefined symbol: bproc_execmove
Warning: .Last.lib failed in detach() for 'Rmpi', details:
  call: dyn.unload(file.path(libpath, "libs", paste("Rmpi",
.Platform$dynlib.ext,
  error: shared object '/usr/local/lib64/R/library/Rmpi/libs/Rmpi.so' was
not loaded
ERROR: loading failed
* removing ‘/usr/local/lib64/R/library/Rmpi’

	[[alternative HTML version deleted]]

