[R] Unable to install RcppEigen package due to Rcpp dependency issues
Dirk Eddelbuettel
edd at debian.org
Mon Dec 23 17:16:54 CET 2013
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 status
You 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
More information about the R-help
mailing list