Skip to content

Instantly share code, notes, and snippets.

@zachmayer
Last active March 14, 2022 03:20
Show Gist options
  • Save zachmayer/e591cf868b3a381a01d6 to your computer and use it in GitHub Desktop.
Save zachmayer/e591cf868b3a381a01d6 to your computer and use it in GitHub Desktop.
Mac BLAS
#Option 1 - install openblas with homebrew and link to CRAN installed R
brew tap homebrew/science
brew install openblas
ln -sf /usr/local/Cellar/openblas/0.2.12/lib/libopenblas.dylib /Library/Frameworks/R.framework/Resources/lib/libRblas.dylib
#Option 2 - install r with openblas through homebrew
brew tap homebrew/science
brew install r --with-openblas
#Option 1 - link CRAN installed R to veclib
ln -sf /System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Versions/Current/libBLAS.dylib /Library/Frameworks/R.framework/Resources/lib/libRblas.dylib
#Option 2 - install r with veclib through homebrew
brew tap homebrew/science
brew install r
@NKUCodingCat
Copy link

Error: homebrew/science was deprecated. This tap is now empty as all its formulae were migrated.

Just brew install openblas , it will work

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment