Rewarp
2013-Dec-22 01:36 UTC
[R] Unable to install RcppEigen package due to Rcpp dependency issues
Hi folks. I am trying to install RcppEigen, which depends on Rcpp. Here's what the terminal says:> install.packages("RcppEigen")Installing package into ‘/home/rewarp/R/x86_64-pc-linux-gnu-library/3.0’ (as ‘lib’ is unspecified) trying URL 'http://cran.case.edu/src/contrib/RcppEigen_0.3.2.0.1.tar.gz' Content type 'application/x-gzip' length 1251939 bytes (1.2 Mb) opened URL =================================================downloaded 1.2 Mb * installing *source* package ‘RcppEigen’ ... ** package ‘RcppEigen’ successfully unpacked and MD5 sums checked ** libs g++ -I/usr/share/R/include -DNDEBUG -I"/home/rewarp/R/x86_64-pc-linux-gnu-library/3.0/Rcpp/include" -I../inst/include -fpic -O3 -pipe -g -c RcppEigen.cpp -o RcppEigen.o g++ -I/usr/share/R/include -DNDEBUG -I"/home/rewarp/R/x86_64-pc-linux-gnu-library/3.0/Rcpp/include" -I../inst/include -fpic -O3 -pipe -g -c fastLm.cpp -o fastLm.o g++ -shared -o RcppEigen.so RcppEigen.o fastLm.o -L/home/rewarp/R/x86_64-pc-linux-gnu-library/3.0/Rcpp/lib -lRcpp -Wl,-rpath,/home/rewarp/R/x86_64-pc-linux-gnu-library/3.0/Rcpp/lib -llapack -lblas -lgfortran -lm -lquadmath -L/usr/lib/R/lib -lR /usr/bin/ld: cannot find -llapack /usr/bin/ld: cannot find -lblas collect2: ld returned 1 exit status make: *** [RcppEigen.so] Error 1 ERROR: compilation failed for package ‘RcppEigen’ * removing ‘/home/rewarp/R/x86_64-pc-linux-gnu-library/3.0/RcppEigen’ The downloaded source packages are in ‘/tmp/Rtmpk3GXAC/downloaded_packages’ Warning message: In install.packages("RcppEigen") : installation of package ‘RcppEigen’ had non-zero exit status Any help would be appreciated. Thanks. [[alternative HTML version deleted]]
Dirk Eddelbuettel
2013-Dec-23 16:16 UTC
[R] Unable to install RcppEigen package due to Rcpp dependency issues
Rewarp <rewarp <at> gmail.com> writes:> I am trying to install RcppEigen, which depends on Rcpp. Here's what the > terminal says: > > > install.packages("RcppEigen")[...]> g++ -shared -o RcppEigen.so RcppEigen.o fastLm.o > -L/home/rewarp/R/x86_64-pc-linux-gnu-library/3.0/Rcpp/lib -lRcpp > -Wl,-rpath,/home/rewarp/R/x86_64-pc-linux-gnu-library/3.0/Rcpp/lib -llapack > -lblas -lgfortran -lm -lquadmath -L/usr/lib/R/lib -lR > /usr/bin/ld: cannot find -llapack > /usr/bin/ld: cannot find -lblas > collect2: ld returned 1 exit statusYou need to install the required libraries. It looks like you may be on Debian or Ubuntu so try $ sudo apt-get install r-base-dev which should pull these in. Support for Rcpp and friends is provided on the rcpp-devel list. Dirk