RcppArmadillo version 0.10.6.0.0 in MacOS X 11.5

Prevent error in install RcppArmadillo version 0.10.6.0.0

First install gcc with macbrew 

First install homebrew, using in terminal:
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

Then install llvm
brew install --with-clang llvm

In /usr/local/opt/gcc, there is a symlink to the last gcc version installed by homebrew.

then, in terminal, do:

sudo mkdir /usr/local/gfortran/

sudo ln -s /usr/local/opt/gcc/lib/gcc/11 /usr/local/gfortran/lib

sudo mkdir /usr/local/gfortran/lib/gcc/x86_64-apple-darwin18/

sudo ln -s /usr/local/opt/gcc/lib/gcc/11 /usr/local/gfortran/lib/gcc/x86_64-apple-darwin18/8.2.0

And in R:

install.packages("RcppArmadillo")


Commentaires

Posts les plus consultés de ce blog

Standard error from Hessian Matrix... what can be done when problem occurs

stepAIC from package MASS with AICc

Install treemix in ubuntu 20.04