[R-sig-Debian] Rcpp problems while installing httpuv / running build-dep r-base-core

Dirk Eddelbuettel edd at debian.org
Fri Mar 7 21:55:22 CET 2014


On 7 March 2014 at 15:34, Sasha Cuerda wrote:
| Hello all,
| 
| I am in the process of trying to install Shiny Server on a DreamHost VPS.
| As Shiny Server must be built on Debian, I've been muddling my way through
| the steps but I have run into a roadblock w/ httpuv.
| 
| Following these <https://github.com/rstudio/httpuv> instructions, I ran the
| devtools::install_github('httpuv', 'rstudio') command and received the
| error pasted below.
| 
| devtools::install_github("httpuv", "rstudio")
| Installing github repo httpuv/master from rstudio
| Downloading httpuv.zip from
| https://github.com/rstudio/httpuv/archive/master.zip
| Installing package from /tmp/RtmpFFihBG/httpuv.zip
| arguments 'minimized' and 'invisible' are for Windows only
| Installing httpuv
| '/usr/lib64/R/bin/R' --vanilla CMD INSTALL  \
|   '/tmp/RtmpFFihBG/devtools64b428f5bfa0/httpuv-master'  \
|   --library='/usr/local/lib/R/site-library' --install-tests
| 
| * installing *source* package 'httpuv' ...
| ** libs
| g++ -I/usr/share/R/include -DNDEBUG -I./libuv/include -I./http-parser
| -I./sha1 -I./base64  -I"/usr/local/lib/R/site-library/Rcpp/include"
| -fpic  -O3 -pipe  -g  -c RcppExports.cpp -o RcppExports.o
| RcppExports.cpp:4:18: error: Rcpp.h: No such file or directory

You need to install Rcpp first.  Had you installed httpuv from CRAN via
install.packages(), this would have happened automagically.

Dirk


| RcppExports.cpp:6: error: 'Rcpp' is not a namespace-name
| RcppExports.cpp:6: error: expected namespace-name before ';' token
| RcppExports.cpp:9: error: variable or field 'sendWSMessage' declared void
| RcppExports.cpp:9: error: 'string' is not a member of 'std'
| RcppExports.cpp:9: error: expected primary-expression before 'bool'
| RcppExports.cpp:9: error: 'Rcpp' has not been declared
| RcppExports.cpp:10: error: 'RcppExport' does not name a type
| RcppExports.cpp:21: error: variable or field 'closeWS' declared void
| RcppExports.cpp:21: error: 'string' is not a member of 'std'
| RcppExports.cpp:22: error: 'RcppExport' does not name a type
| RcppExports.cpp:31: error: 'Rcpp' has not been declared
| RcppExports.cpp:31: error: expected constructor, destructor, or type
| conversion before 'makeTcpServer'
| RcppExports.cpp:32: error: 'RcppExport' does not name a type
| RcppExports.cpp:48: error: 'Rcpp' has not been declared
| RcppExports.cpp:48: error: expected constructor, destructor, or type
| conversion before 'makePipeServer'
| RcppExports.cpp:49: error: 'RcppExport' does not name a type
| RcppExports.cpp:65: error: variable or field 'destroyServer' declared void
| RcppExports.cpp:65: error: 'string' is not a member of 'std'
| RcppExports.cpp:66: error: 'RcppExport' does not name a type
| RcppExports.cpp:75: error: 'uint32_t' was not declared in this scope
| RcppExports.cpp:76: error: 'RcppExport' does not name a type
| RcppExports.cpp:86: error: 'RcppExport' does not name a type
| RcppExports.cpp:94: error: 'string' in namespace 'std' does not name a type
| RcppExports.cpp:95: error: 'RcppExport' does not name a type
| make: *** [RcppExports.o] Error 1
| ERROR: compilation failed for package 'httpuv'
| * removing '/usr/local/lib/R/site-library/httpuv'
| Error: Command failed (1)
| 
| 
| I am at a bit of a loss as to how to proceed. I have tried the instructions
| here <http://www.rstudio.com/ide/docs/packages/prerequisites>, specifically
| 
| sudo apt-get build-dep r-base-core
| 
| When I run that, I get this error:
| 
| E: You must put some 'source' URIs in your sources.list
| 
| I think that this is the source of my error, but I cannot figure out how to
| fix this. Any ideas?
| 
| Thanks,
| 
| Sasha
| 
| 	[[alternative HTML version deleted]]
| 
| _______________________________________________
| R-SIG-Debian mailing list
| R-SIG-Debian at r-project.org
| https://stat.ethz.ch/mailman/listinfo/r-sig-debian

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



More information about the R-SIG-Debian mailing list