[Rprotobuf-yada] Compiling on RHEL 64 bit Linux
Saptarshi Guha
saptarshi.guha at gmail.com
Thu Dec 24 17:53:00 CET 2009
Hello,
I tried installing rprotobuf on Linux(64 bit) but ran into the following error
svn checkout svn://svn.r-forge.r-project.org/svnroot/rprotobuf
cd rprotobuf
R CMD INSTALL pkg
g++ -I/ln/meraki/custom/lib64/R/include
-I/ln/meraki/custom/lib64/R/library/Rcpp/lib -pthread
-I/ln/meraki/custom/include -I/usr/local/include -fpic -g -O2 -c
as.cpp -o as.o
/ln/meraki/custom/lib64/R/library/Rcpp/lib/Rcpp.h: In member function
‘void RcppDatetime::parseTime()’:
/ln/meraki/custom/lib64/R/library/Rcpp/lib/Rcpp.h:98: warning:
converting to ‘time_t’ from ‘double’
/ln/meraki/custom/lib64/R/library/Rcpp/lib/Rcpp.h:99: warning:
converting to ‘int’ from ‘double’
as.cpp: At global scope:
as.cpp:4: error: ‘external_pointer’ is not a template
as.cpp:4: error: explicit instantiation of non-template type
‘rcpp::external_pointer’
make: *** [as.o] Error 1
chmod: cannot access
`/ln/meraki/custom/lib64/R/library/RProtoBuf/libs/*': No such file or
directory
ERROR: compilation failed for package 'RProtoBuf'
** Removing '/ln/meraki/custom/lib64/R/library/RProtoBuf'
Have I missed something?
On another note, since Google's protobuf actually uses pthreads, I think it is a
good idea to set R_CStackLimit (I don't see it in rprotobuf source, but since it
links with RCpp, is this already set?). I have set this to -1 in my library,
which fixed some very hard to decipher bugs. Also, I can load my libraries /and/
debug using GDB.
Thanks
Saptarshi
Info.
R version 2.8.1 (2008-12-22)
Linux spica 2.6.18-164.6.1.el5 #1 SMP Tue Oct 27 11:28:30 EDT 2009
x86_64 x86_64 x86_64 GNU/Linux
More information about the Rprotobuf-yada
mailing list