Skip to content
Prev 199423 / 398503 Next

error in 2.10: "R include directory is empty" prevents package installation

After installing R 2.10 under RHEL5, whenever I attempt to install
packages I get the error message:
"Warning: R include directory is empty -- perhaps need to install
R-devel.rpm or similar"

Bioconductor did manage to install, but I do get this message when
using install.packages() for anything.
Suggestions for a fix would be appreciated!


installation info:
_
platform       x86_64-redhat-linux-gnu
arch           x86_64
os             linux-gnu
system         x86_64, linux-gnu
status
major          2
minor          10.0
year           2009
month          10
day            26
svn rev        50208
language       R
version.string R version 2.10.0 (2009-10-26)



sample error message

* installing *source* package ?corpcor? ...
** libs
Warning: R include directory is empty -- perhaps need to install
R-devel.rpm or similar
gcc -m64 -std=gnu99 -I/usr/include/R  -I/usr/local/include    -fpic
-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions
-fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -c
lambda.c -o lambda.o
lambda.c:24:15: error: R.h: No such file or directory
lambda.c: In function ?C_corlambda?:
lambda.c:111: warning: implicit declaration of function ?Calloc?
lambda.c:111: error: ?size_t? undeclared (first use in this function)
lambda.c:111: error: (Each undeclared identifier is reported only once
lambda.c:111: error: for each function it appears in.)
lambda.c:111: error: expected ?)? before ?nn?
lambda.c:111: warning: cast to pointer from integer of different size
lambda.c:153: warning: implicit declaration of function ?Free?
lambda.c: In function ?C_varlambda?:
lambda.c:181: error: ?size_t? undeclared (first use in this function)
lambda.c:181: error: expected ?)? before ?nn?
lambda.c:181: warning: cast to pointer from integer of different size
make: *** [lambda.o] Error 1
ERROR: compilation failed for package ?corpcor?
* removing ?/usr/lib64/R/library/corpcor?
* restoring previous ?/usr/lib64/R/library/corpcor?

The downloaded packages are in
        ?/tmp/RtmpyrF9FA/downloaded_packages?
Updating HTML index of packages in '.Library'
Warning message:
In install.packages("corpcor") :
  installation of package 'corpcor' had non-zero exit status