Hi Rick,

I just got Rmpi installed on a 16 CPU RHEL 4 box with OpenMPI. It took
quite a bit of fiddling of environment variables, but I did manage to
get it to work using mpicc (which incidentally does make life a bit
easier than trying to use gcc directly).

For the error below, what I had to do was explicitly add my MPI include
library to C_INCLUDE_PATH. The other thing I had to do was set MPI_ROOT
explicitly to the location of my OpenMPI installation. I only figured
this out by looking at Rmpi's configure.ac and looking at the configure
output at the 'Try to find mpi.h ...' stage, no echo was output meaning
that it was falling back to the default. I think this has to do with the
behavior/interoperability of mpicc and Rmpi.

In short, if you set your C_INCLUDE_PATH and MPI_ROOT (and
LD_LIBRARY_PATH if you haven't done that), you should be able to get it
to compile.

HTH,
Brian


On Mon, 2009-05-11 at 10:09 -0400, Sean Davis wrote:
> Did you try:
> 
> # assumes that mpicc is in the PATH
> CC=mpicc R CMD INSTALL Rmpi_0.5-7.tar.gz
> 
> This has worked for me on openSUSE in the past.
> 
> Sean


Thanks. mpicc is in the path, but this fails -  it cannot find mpi.h. If
I include "--configure-args=--with-mpi=/usr/lib64/openmpi/1.2.7-gcc" it
fails the same way as before.

Why is the Rmpi script asking for a directory but passing a file name?

Rick B.


--------------------------------------------------------------------------
This message w/attachments (message) may be privileged, ...{{dropped:27}}

