Thursday, August 13, 2015

Installing Rmpi on Ubuntu

Rmpi is an R package allowing use of MPI on R as unterstood from its name. To use it first I installed r-cran-rmpi package which has dependencies like openmpi-common and openmpi-bin but not something like openmpi-dev.
On an ubuntu machine I tried to install it on R, by install.packages("Rmpi") command where R is version 3.2.1. It gave me an error like "configure: error: "Cannot find mpi.h header file" which seemed to be related with unexistence of a dev package.
After a little search I found out that there is an Ubuntu package libopenmpi-dev needed to be installed too. After the installation of libopenmpi-dev Rmpi is installed correctly.

No comments:

Post a Comment