我已经安装了R,它依次安装openblas -但没有安装到/usr/local:
==> openblas
openblas is keg-only, which means it was not symlinked into /usr/local,
because macOS provides BLAS and LAPACK in the Accelerate framework.
For compilers to find openblas you may need to set:
export LDFLAGS="-L/usr/local/opt/openblas/lib"
export CPPFLAGS="-I/usr/local/opt/openblas/include"
For pkg-config to find openblas you may need to set:
export PKG_CONFIG_PATH="/usr/local/opt/openblas/lib/pkgconfig"openblas的主要用例是R和scipy。后者的_no更多地支持Macos加速包:所以重定向到brew没有问题。前者无论如何都会使用这种方法:所以我认为这样做没有坏处。但是怎么做呢?
发布于 2019-08-22 13:42:03
有两个步骤完成了这项工作:
openblas:
brew uninstall --ignore-dependencies openblasR
brew install R/usr/local的符号链接:
sudo ln -s /usr/local/opt/openblas /usr/local现在我们有R了!
$R
R version 3.6.1 (2019-07-05) -- "Action of the Toes"
Copyright (C) 2019 The R Foundation for Statistical Computing
Platform: x86_64-apple-darwin18.6.0 (64-bit)
..
>https://stackoverflow.com/questions/57610663
复制相似问题