[Rcpp-devel] [RcppArmadillo] Install problem
Alan Coppola
ajjc at optngn.com
Fri Jan 11 21:04:58 CET 2013
Hi,
I've been using Rcpp for a while now, through Rstudio, and like it.
I now have the need to use RcppArmadillo, and have been trying to
install it through Rstudio.
Somehow, LAPACK_LIBS, BLAS_LIBS, and FLIBS from the Makevars file are
not getting filled in properly.
I don't understand enough about installing R packages to know what was
supposed fill in thos variables.
Everything is up to date, and I uninstalled/reinstalled R-base and
R-dev, as was mentioned
in a problem report similar to mine from a year ago...any ideas?
alan
-------------- lsb_release -a output----
Distributor ID: Ubuntu
Description: Ubuntu 11.10
Release: 11.10
Codename: oneiric
------------------Rstudio output-----------------------
> install.packages("RcppArmadillo")
Installing package(s) into ‘/home/enacor/R/x86_64-pc-linux-gnu-library/2.15’
(as ‘lib’ is unspecified)
trying URL 'http://cran.fhcrc.org/src/contrib/RcppArmadillo_0.3.6.1.tar.gz'
Content type 'application/x-gzip' length 753168 bytes (735 Kb)
opened URL
==================================================
downloaded 735 Kb
* installing *source* package ‘RcppArmadillo’ ...
** package ‘RcppArmadillo’ successfully unpacked and MD5 sums checked
** libs
g++ -I/usr/share/R/include -DNDEBUG
-I"/home/enacor/R/x86_64-pc-linux-gnu-library/2.15/Rcpp/include"
-I../inst/include -fpic -O3 -pipe -g -c RcppArmadillo.cpp -o RcppArmadillo.o
g++ -I/usr/share/R/include -DNDEBUG
-I"/home/enacor/R/x86_64-pc-linux-gnu-library/2.15/Rcpp/include"
-I../inst/include -fpic -O3 -pipe -g -c fastLm.cpp -o fastLm.o
g++ -shared -o RcppArmadillo.so RcppArmadillo.o fastLm.o
-L/home/enacor/R/x86_64-pc-linux-gnu-library/2.15/Rcpp/lib -lRcpp
-Wl,-rpath,/home/enacor/R/x86_64-pc-linux-gnu-library/2.15/Rcpp/lib
-llapack -lblas -lgfortran -lm -lquadmath -L/usr/lib/R/lib -lR
/usr/bin/ld: cannot find -lgfortran
/usr/bin/ld: cannot find -lquadmath
collect2: ld returned 1 exit status
make: *** [RcppArmadillo.so] Error 1
ERROR: compilation failed for package ‘RcppArmadillo’
* removing ‘/home/enacor/R/x86_64-pc-linux-gnu-library/2.15/RcppArmadillo’
Warning in install.packages :
installation of package ‘RcppArmadillo’ had non-zero exit status
The downloaded source packages are in
‘/tmp/Rtmp5YjUpn/downloaded_packages’
More information about the Rcpp-devel
mailing list