[R-sig-hpc] Problems Installing Rmpi

R. A. Bilonick rab at consolidated.net
Wed May 13 21:36:53 CEST 2009


On Wed, 2009-05-13 at 15:19 -0400, Hao Yu wrote:
> Rick, please use
> ###################################
> AC_INIT(DESCRIPTION)
> 
> AC_PROG_CC
> 
> AC_ARG_WITH(mpi,
> [   --with-mpi=/opt/lib32/usr/lib          Location of MPI library.],
> [   if test "${withval}" != no; then
>         MPI_ROOT=${withval}
>         MPI_INCLUDE="-I${MPI_ROOT}/include"
>         LDFLAGS="$LDFLAGS -L${withval}/lib"
>         CFLAGS="$CFLAGS -I${withval}/include"
>     fi  ]
> )
> MPITYPE="OPENMPI"
> MPI_DEPS="-DMPI2"
> AC_CHECK_LIB(util, openpty, [ MPI_LIBS="$MPI_LIBS -lutil" ])
> AC_CHECK_LIB(pthread, main, [ MPI_LIBS="$MPI_LIBS -lpthread" ])
> 
> PKG_LIBS="${MPI_LIBS} -fPIC"
> PKG_CPPFLAGS="${MPI_INCLUDE} ${MPI_DEPS} -D${MPITYPE} -fPIC"
> 
> AC_SUBST(PKG_LIBS)
> AC_SUBST(PKG_CPPFLAGS)
> AC_SUBST(DEFS)
> 
> AC_OUTPUT(src/Makevars)
> ###################################
> to replace the original configure.ac completely. It is completely bypass
> checking mpi.h and mpi.so. In this way, OS will not append mpi.h to
> ${MPI_INCLUDE} (hopefully).
> 
> Hao

Thanks. Then I do an autoconf? Anything else I need to do construct the
configure file before trying to install Rmpi?

Rick B.



More information about the R-sig-hpc mailing list