Dear Friends,

I have installed mpich2 in Ubuntu 9.10 and it is working fine. When I tried to 
install Rmpi inside R environment I find following error message,
> install.packages("Rmpi", configure.args="--with-mpi=/usr/include/mpich2")
Warning in install.packages("Rmpi", configure.args = 
"--with-mpi=/usr/include/mpich2") :
  argument 'lib' is missing: using '/usr/local/lib/R/site-library'
--- Please select a CRAN mirror for use in this session ---
Loading Tcl/Tk interface ... done
trying URL 'http://stat.ethz.ch/CRAN/src/contrib/Rmpi_0.5-9.tar.gz'
Content type 'application/x-gzip' length 87953 bytes (85 Kb)
opened URL
==================================================
downloaded 85 Kb

* 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 ...
Cannot find mpi.h header file
Please use --with-mpi=/path/to/mpi or specify the environment variable MPI_ROOT
ERROR: configuration failed for package ‘Rmpi’
* Removing ‘/usr/local/lib/R/site-library/Rmpi’
* Restoring previous ‘/usr/local/lib/R/site-library/Rmpi’

The downloaded packages are in
    ‘/tmp/RtmpqXFUIm/downloaded_packages’
Warning messages:
1: closing unused connection 3 (http://cran.r-project.org/CRAN_mirrors.csv) 
2: In install.packages("Rmpi", configure.args = 
"--with-mpi=/usr/include/mpich2") :
  installation of package 'Rmpi' had non-zero exit status


 I also tried to do through R CMD INSTALL. That too turns out with error saying 
that can not find mpi.h.

root@mlscubl10-desktop:~# R CMD INSTALL Rmpi_0.5-9.tar.gz 
--configure-args=--with-mpi=/usr/include/mpich2/
* Installing to library ‘/usr/local/lib/R/site-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 ...
Cannot find mpi.h header file
Please use --with-mpi=/path/to/mpi or specify the environment variable MPI_ROOT
ERROR: configuration failed for package ‘Rmpi’
* Removing ‘/usr/local/lib/R/site-library/Rmpi’
* Restoring previous ‘/usr/local/lib/R/site-library/Rmpi’

I found couple of list mails advising to edit ZZZ.R file in Rmpi. But I did not 
get what precisely I need to change in that. So, can you please tell me what 
changes I have to make in zzz.R, to make Rmpi to run? 


Thanking you in anticipation,

Regards,
Prashantha

Prashantha Hebbar Kiradi,
Dept. of Biotechnology,
Manipal Life Sciences Center,
Manipal University,
Manipal, India
Email:prashantha.hebbar@manipal.edu


      
	[[alternative HTML version deleted]]

