[Rcpp-devel] error: inv(): use of ATLAS or LAPACK needs to be enabled

Douglas Bates bates at stat.wisc.edu
Thu Dec 8 16:40:43 CET 2011


On Thu, Dec 8, 2011 at 7:00 AM, Markus Jochmann
<markus.jochmann at ncl.ac.uk> wrote:
> Sorry, I just realised that this is the Rcpp-devel list, not the
> Rcpp-Armadillo list. I use Rcpp-Armadillo and the inv() comes from
> Armadillo.

Did you use RcppArmadillo.package.skeleton or Rcpp.package.skeleton to
create the skeleton of the package?  When you use
RcppArmadillo.package.skeleton on Linux the package's src/Makevars
file is initialized to

## Use the R_HOME indirection to support installations of multiple R version
PKG_LIBS = `$(R_HOME)/bin/Rscript -e "Rcpp:::LdFlags()"`
$(LAPACK_LIBS) $(BLAS_LIBS) $(FLIBS)

and those last three macros provide the linkage to the Lapack and BLAS
libraries.

> On 12/08/2011 12:34 PM, Markus Jochmann wrote:
>>
>> Hi,
>>
>> I am on Linux and get the following error:
>>
>> error: inv(): use of ATLAS or LAPACK needs to be enabled
>>
>> My Makevars file is like in the skeleton and there are no linking errors.
>>
>> What do I do wrong?
>>
>> Thanks for the great package and help,
>> Markus.
>> _______________________________________________
>> Rcpp-devel mailing list
>> Rcpp-devel at lists.r-forge.r-project.org
>> https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel
>
>
> _______________________________________________
> Rcpp-devel mailing list
> Rcpp-devel at lists.r-forge.r-project.org
> https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel


More information about the Rcpp-devel mailing list