Rmpi for Mac OS X
Use homebrew to install Open MPI and Rmpi on Mac
OS (64bit only)
- For Mac OS El Capitan, follow this page
to install Apple's Xcode, Command Line Tools, and homebrew
(just homebrew itself).
For old versions of Mac OS, follow this page
to install Apple's Xcode, Command Line Tools, and homebrew.
Follow up to the Step 3 in that guide.
- At the terminal, install gcc by
brew install gcc
- At the terminal, install Open MPI by
brew install open-mpi
- Launch Rstudio or R and install Rmpi by
Note: To compile Rmpi with the latest version, grab it here and use
install.packages(file.choose(), repos = NULL, type = "source")
Note: You can install R through homebrew as well: brew
- Test Rmpi
- That's it.
To install Rmpi from command line (xterm terminal),
sudo R CMD INSTALL