RcppCore / RcppArmadillo

Rcpp integration for the Armadillo templated linear algebra library
193 stars 56 forks source link

install issue #419

Closed ChristophKnapp closed 1 year ago

ChristophKnapp commented 1 year ago

Hi, I'm trying to install RcppArmadillo on a debian computer. R version is 4.3.1 (2023-06-16) -- "Beagle Scouts". I'm not sure what the problem is and could not find anything related to

/usr/bin/ld: cannot find -llapack /usr/bin/ld: cannot find -lblas

Most often its just a library missing but with this I'm lost.

I actually try to install the seqinr package where RcppArmadillo is in the dependency tree.

Regards

install.packages("RcppArmadillo") Installing package into ‘/home/hummelchen/R/x86_64-pc-linux-gnu-library/4.3’ (as ‘lib’ is unspecified) trying URL 'https://cloud.r-project.org/src/contrib/RcppArmadillo_0.12.4.1.0.tar.gz' Content type 'application/x-gzip' length 1373512 bytes (1.3 MB)

downloaded 1.3 MB

The downloaded source packages are in ‘/tmp/RtmpVeNbCd/downloaded_packages’ Warning message: In install.packages("RcppArmadillo") : installation of package ‘RcppArmadillo’ had non-zero exit status

eddelbuettel commented 1 year ago

Please do

  sudo apt install r-base-dev

to get the development packages needed to link against libraries needed, here BLAS and LAPACK. That is a well documented aspect of how life on Linux system works and is similar for the other distros.

Or just do

 sudo apt install r-cran-rcpparmadillo

and enjoy the pre-made package. We provide it so that users unfamiliar with builds do not have to worry about it.

As there is no issue with the source package you reported against, I will close this issue. For general questions on how to use R on Debian, Ubuntu, ... etc the r-sig-debian list is very helpful and would have been a good venue too.

ChristophKnapp commented 1 year ago

That was silly of me, I was so sure I did that. Thanks for your fast help.

eddelbuettel commented 1 year ago

We all had our moments like that. No worries. I hope you get to enjoy RcppArmadillo, by itself or via seqinr.