Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

the installation of rpy2 an amazon linux via

sudo pip-2.7 install rpy2

fails with

In file included from ./rpy/rinterface/_rinterface.c:58:0:
./rpy/rinterface/_rinterface.h:8:15: fatal error: R.h: No such file or directory
compilation terminated.
error: command 'gcc' failed with exit status 1

Installation by compilation of the source fails in the same manner. sudo python2.7 install

complete log at:

share|improve this question

The answer was to install the R-development files with:

sudo yum -y install R-devel
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.