[Rcpp-devel] Manual Rcpp installation failure

Dirk Eddelbuettel edd at debian.org
Thu Jul 16 23:52:40 CEST 2015


Alain,

On 16 July 2015 at 17:20, Alain Forget wrote:
| I need to manually download and install Rcpp for R-3.1.2 on CentOS. I downloaded Rcpp from the "Package source" link here:

Which version of CentOS?  
 
| https://cran.r-project.org/web/packages/Rcpp/index.html
| 
| I then unpacked the tar.gz, and ran the following command to install the package, which resulted in the errors below:
| 
| $ R CMD INSTALL Rcpp -l  my/R/packages/directory
| * installing *source* package 'Rcpp' ...
| ** package 'Rcpp' successfully unpacked and MD5 sums checked
| ** libs
| Warning: R include directory is empty -- perhaps need to install R-devel.rpm or similar
| g++ -m64 -I/usr/include/R -DNDEBUG -I../inst/include/ -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 Date.cpp -o Date.o
| In file included from ../inst/include/RcppCommon.h:29,
|                  from ../inst/include/Rcpp.h:27,
|                  from Date.cpp:31:
| ../inst/include/Rcpp/r/headers.h:52:15: error: R.h: No such file or directory
| ../inst/include/Rcpp/r/headers.h:53:24: error: Rinternals.h: No such file or directory
| ../inst/include/Rcpp/r/headers.h:54:27: error: R_ext/Complex.h: No such file or directory
| ../inst/include/Rcpp/r/headers.h:55:25: error: R_ext/Parse.h: No such file or directory
| ../inst/include/Rcpp/r/headers.h:56:28: error: R_ext/Rdynload.h: No such file or directory
| ../inst/include/Rcpp/r/headers.h:57:22: error: Rversion.h: No such file or directory
| In file included from ../inst/include/Rcpp.h:27,
|                  from Date.cpp:31:
| ../inst/include/RcppCommon.h:67:29: error: R_ext/Callbacks.h: No such file or directory
| ../inst/include/RcppCommon.h:68:30: error: R_ext/Visibility.h: No such file or directory
| ../inst/include/RcppCommon.h:71:19: error: Rmath.h: No such file or directory
| In file included from ../inst/include/RcppCommon.h:132,
|                  from ../inst/include/Rcpp.h:27,
|                  from Date.cpp:31:
| ../inst/include/Rcpp/Interrupt.h:25:34: error: R_ext/GraphicsEngine.h: No such file or directory
| In file included from ../inst/include/Rcpp.h:73,
|                  from Date.cpp:31:
| ../inst/include/Rcpp/Rmath.h:134:27: error: missing binary operator before token "("
| In file included from ../inst/include/Rcpp.h:27,
|                  from Date.cpp:31:
| ../inst/include/RcppCommon.h:76: error: 'SEXP' does not name a type
| ../inst/include/RcppCommon.h:83: error: 'SEXP' does not name a type
| ../inst/include/RcppCommon.h:90: error: variable or field 'Rcpp_ReleaseObject' declared void
| ../inst/include/RcppCommon.h:90: error: 'SEXP' was not declared in this scope
| Date.cpp:1276: error: expected '}' at end of input
| make: *** [Date.o] Error 1
| 
| I'm guessing there's something basic I am not aware of? Any suggestions or assistance in manually installing Rcpp would be greatly appreciated, since so many other packages depend on Rcpp, so we're rather stuck until this works.

You may be missing R-devel (which is what CentOS/RHEL/Fedora calls it IIRC)
which supplies the R headers.  Rcpp needs them.

Dirk

-- 
http://dirk.eddelbuettel.com | @eddelbuettel | edd at debian.org


More information about the Rcpp-devel mailing list