[Rcpp-devel] strange new issue with installing Rcpp-0.10.5

Tim Triche, Jr. tim.triche at gmail.com
Mon Oct 14 18:56:48 CEST 2013

Hi all,

This is new and perplexing to me.  I have an Ubuntu install of r-base,
r-rcpp, etc. and have installed R-3.0.2 in order to maintain Bioconductor
packages for the upcoming release.  As of a few days ago, Rcpp stopped
updating itself either via biocLite() or via command line installation.  I
forced /usr/lib64/R/library/Rcpp/lib into my library path, ran sudo
ldconfig, set up environment variables that would seem to fix it e.g.

export PKG_CPPFLAGS=`Rscript -e "Rcpp:::CxxFlags()"`
export PKG_CPPFLAGS=" -I. -lpthread "$PKG_CPPFLAGS
export PKG_LIBS=`Rscript -e "Rcpp:::LdFlags()"`

but, alas, no joy:

# ...everything going fine up to this point...
g++ -shared -L/usr/local/lib64 -o Rcpp.so Date.o Module.o Rcpp_init.o
Timer.o api.o attributes.o barrier.o exceptions.o
-L/usr/lib64/R/library/Rcpp/lib -lRcpp
-Wl,-rpath,/usr/lib64/R/library/Rcpp/lib -L/usr/lib64/R/lib -lR
/usr/local/bin/ld: cannot find -lRcpp
collect2: ld returned 1 exit status
make: *** [Rcpp.so] Error 1
ERROR: compilation failed for package ‘Rcpp’
* removing ‘/usr/lib64/R/library/Rcpp’
* restoring previous ‘/usr/lib64/R/library/Rcpp’

Searching Google did not reveal anything obvious, and this is a very new
problem (it has only arisen in the past week or so).  Anyone have any

I was blowing this off but realized that dplyr now depends on Rcpp-0.10.5
so now I have to bite the bullet.  Again, I've never had any issues
compiling Rcpp, and I haven't changed my R settings in a long, long time,
so I wonder if something changed recently.  Normally I can figure out these
things but this time I'm stumped.

Thanks in advance,


*He that would live in peace and at ease, *
*Must not speak all he knows, nor judge all he sees.*
Benjamin Franklin, Poor Richard's
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.r-forge.r-project.org/pipermail/rcpp-devel/attachments/20131014/c986bb08/attachment.html>

More information about the Rcpp-devel mailing list