[R-SIG-Mac] Installing Rmpi on Mavericks

Prof Brian Ripley ripley at stats.ox.ac.uk
Fri Feb 28 19:06:33 CET 2014


It would be more convenient to use the environment variables, e.g. for 
Fedora I use

setenv RMPI_INCLUDE /usr/include/openmpi-x86_64
setenv RMPI_LIB_PATH /usr/lib64/openmpi/lib
setenv RMPI_TYPE OPENMPI

And 'brew' was not mentioned: you would need to install *that* first. 
But it is unnecessary: openmpi builds out of the box using the compilers 
used for R and needs no customizations.

On 28/02/2014 17:53, Paul Johnson wrote:
> I have had success in installing Rmpi on Mavericks, and it may be helpful
> to others:
>
> I first installed *gfortran* and *open-mpi*:
> brew install gfortran

In view of another thread today, does that clobber other compilers in 
/usr/local?

> brew install open-mpi
>
> Then in R I installed Rmpi using this command:
> *install.packages("Rmpi", type="source",
> configure.args="with-mpi=/usr/local/opt/open-mpi")*
>
> (The *configure.args* parameter got around the following error: "Cannot
> find mpi.h header file".)
>
> 	[[alternative HTML version deleted]]

Please do read the posting guide and what it says about that.


-- 
Brian D. Ripley,                  ripley at stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595



More information about the R-SIG-Mac mailing list