Install Rmpi on Mac and Redhat server
To me, learning something new always starts from stucking in some troubles. This time is the compiling error issued when I installed Rmpi
for the first time.
Installation
It turns out Rmpi
depends on open MPI
, which should be installed by
$ brew install open-mpi
Then in R
, install the package from source.
install.packages("Rmpi", type="source")
As to install Rmpi
on server, we need some specification. This line works on radon
.
R CMD INSTALL Rmpi_0.6-5.tar.gz --configure-args=--with-mpi=/apps/rhel6/openmpi/1.6.3/intel-13.1.1.163
Although this line can do the job, but it is not straight forward to get here.
- Download Rmpi_version.gz
- Add module
module add r
module add openmpi
- Check the directory of the openmpi via
ompi_info
- Final step to install
Rmpi
R CMD INSTALL Rmpi_0.6-5.tar.gz --configure-args=--with-mpi=/apps/rhel6/openmpi/1.6.3/intel-13.1.1.163