Skip to content
Prev 11600 / 15075 Next

building R with external Lapack

Hi again,

Following my previous message, I've made some progress after finding hints
on the list archives that the flag CPPFLAGS="-D__ACCELERATE__"  should help
direct R to use the Accelerate framework. It does help in this regard, as
./configure now confirms,

  External libraries:        readline, BLAS(Accelerate), LAPACK(in blas),
zlib, bzlib, PCRE, curl

Unfortunately, make fails because of a missing lzma.h, even though it
exists and lives in /usr/local/include/lzma.h. I have xz installed via brew.

Ideally I would like to be able to build R from source on my mac, but that
has proved harder than I anticipated. Alternatively,

- is there a way to redirect R's Lapack after installation, the same way as
for BLAS?
( as in
cd /Library/Frameworks/R.framework/Resources/lib
ln -sf
/System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Versions/Current/libBLAS.dylib
libRblas.dylib)

- could I somehow silence RcppArmadillo's solve() warning? (this is more of
a Rcpp-dev question, I'll ask there if it comes to that)

Thanks,

baptiste
On 5 March 2016 at 18:24, Baptiste Auguie <baptiste.auguie at gmail.com> wrote: