[Rcpp-devel] Cannot install Rcpp 0.8.6 under R 2.11.0 or R 3.0.0 in Ubuntu 12.10

Dirk Eddelbuettel edd at debian.org
Mon Apr 8 15:34:17 CEST 2013


On 8 April 2013 at 15:07, Kirill Müller wrote:
| Hi
| 
| I cannot install Rcpp 0.8.6 from source in Ubuntu 12.10. Installation 
| fails with the message appended below. The error is similar for R 2.11.0 
| and R 3.0. What am I doing wrong?
| 
| I'd like to build a test environment with R 2.11.0 and a corresponding 
| version of Rcpp. Thank you for your help.

That seems so wrong on so many levels.

Why on earth R 2.11.0?  And Rcpp 0.8.6? And why on earth on a current OS?

If you really must use an R version that was current in May 2010 (!!!) and is
hence three years and six major releases behind, then I would recommend to
simply pick the (ancient) Ubuntu version that is closes, say 10.04 or 10.10.
I won't even bother counting the number of Rcpp releases you miss that way.

There is an interplay of Rcpp with the compilers.  We work hard to keep
things current, so you could (without any effort) get the current versions of
everything. 

For the rest, you are on own. Good luck.

Dirk
 
 
| Cheers
| 
| Kirill
| 
| 
|  > install.packages('~/Downloads/Rcpp_0.8.6.tar.gz')
| Installing package into ‘/home/.../R/x86_64-pc-linux-gnu-library/3.0’
| (as ‘lib’ is unspecified)
| inferring 'repos = NULL' from the file name
| * installing *source* package ‘Rcpp’ ...
| ** libs
| g++ -I/usr/share/R/include -DNDEBUG -I../inst/include/ -fpic -O3 -pipe 
| -g -c Date.cpp -o Date.o
| In file included from ../inst/include/Rcpp/grow.h:47:0,
| from ../inst/include/Rcpp/Function.h:27,
| from Date.cpp:29:
| ../inst/include/Rcpp/generated/grow__pairlist.h: In instantiation of 
| ‘SEXPREC* Rcpp::pairlist(const T1&, const T2&, const T3&) [with T1 = 
| std::basic_string<char>; T2 = std::basic_string<char>; T3 = char [4]; 
| SEXP = SEXPREC*]’:
| ../inst/include/Rcpp/generated/Function__operator.h:45:72: required from 
| ‘SEXPREC* Rcpp::Function::operator()(const T1&, const T2&, const T3&) 
| [with T1 = std::basic_string<char>; T2 = std::basic_string<char>; T3 = 
| char [4]; SEXP = SEXPREC*]’
| Date.cpp:56:44: required from here
| ../inst/include/Rcpp/generated/grow__pairlist.h:45:54: error: ‘grow’ was 
| not declared in this scope, and no declarations were found by 
| argument-dependent lookup at the point of instantiation [-fpermissive]
| In file included from ../inst/include/Rcpp/Function.h:27:0,
| from Date.cpp:29:
| ../inst/include/Rcpp/grow.h:75:6: note: ‘template<class T> SEXPREC* 
| Rcpp::grow(const T&, SEXP)’ declared here, later in the translation unit
| In file included from ../inst/include/Rcpp/grow.h:47:0,
| from ../inst/include/Rcpp/Function.h:27,
| from Date.cpp:29:
| ../inst/include/Rcpp/generated/grow__pairlist.h:45:54: error: ‘grow’ was 
| not declared in this scope, and no declarations were found by 
| argument-dependent lookup at the point of instantiation [-fpermissive]
| In file included from ../inst/include/Rcpp/Function.h:27:0,
| from Date.cpp:29:
| ../inst/include/Rcpp/grow.h:75:6: note: ‘template<class T> SEXPREC* 
| Rcpp::grow(const T&, SEXP)’ declared here, later in the translation unit
| In file included from ../inst/include/Rcpp/grow.h:47:0,
| from ../inst/include/Rcpp/Function.h:27,
| from Date.cpp:29:
| ../inst/include/Rcpp/generated/grow__pairlist.h:45:54: error: ‘grow’ was 
| not declared in this scope, and no declarations were found by 
| argument-dependent lookup at the point of instantiation [-fpermissive]
| In file included from ../inst/include/Rcpp/Function.h:27:0,
| from Date.cpp:29:
| ../inst/include/Rcpp/grow.h:75:6: note: ‘template<class T> SEXPREC* 
| Rcpp::grow(const T&, SEXP)’ declared here, later in the translation unit
| make: *** [Date.o] Error 1
| ERROR: compilation failed for package ‘Rcpp’
| * removing ‘/home/.../R/x86_64-pc-linux-gnu-library/3.0/Rcpp’
| Warning message:
| In install.packages("~/Downloads/Rcpp_0.8.6.tar.gz") :
| installation of package ‘/home/.../Downloads/Rcpp_0.8.6.tar.gz’ had 
| non-zero exit status
| 
| _______________________________________________
| Rcpp-devel mailing list
| Rcpp-devel at lists.r-forge.r-project.org
| https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel

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


More information about the Rcpp-devel mailing list