[Rcpp-devel] Manual Rcpp installation failure

Alain Forget aforget at cmu.edu
Sun Jul 19 17:42:59 CEST 2015


Hey Dirk (and Rccp-devels),

Centos 6.3

I have tried looking for R-devel but have been unsuccessful in even figuring out what it is (an R package? Its own standalone software?). Could you please point me in the right direction?

Thanks!
Alain

-----Original Message-----
From: Dirk Eddelbuettel [mailto:edd at debian.org] 
Sent: Thursday, July 16, 2015 17:53
To: aforget at cmu.edu
Cc: rcpp-devel at lists.r-forge.r-project.org
Subject: Re: [Rcpp-devel] Manual Rcpp installation failure


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