如何在OSX Mavericks上构建OpenBLAS

时间:2014-01-11 20:51:38

标签: macos compiler-errors linear-algebra

我正在尝试在OSX Mavericks上构建OpenBLAS(http://www.openblas.net/

只需输入' make',它会在制作过程中几分钟内发出错误。

我已经在互联网上寻找解决方案,产生了一些命令行参数建议,例如:

make CC=clang
make MD5SUM='md5 -q'
make MD5SUM='md5 -q' CC=clang
make MD5SUM='md5 -q' CC=clang FC=/Users/pi/Downloads/usr/local/bin/gfortran DYNAMIC_ARCH=1
make MD5SUM='md5 -q' CC=clang FC=/Users/pi/Downloads/usr/local/bin/gfortran DYNAMIC_ARCH=1 USE_THREAD=1 NO_SHARED=1

这些都不起作用。

是否有人能够在没有错误的情况下构建此库?

链接: https://github.com/xianyi/OpenBLAS/issues/334 http://yurii-aulchenko.blogspot.co.uk/2013/04/building-openblas-for-mac-os-x-1075-lion.html

以上是上次列表中最后一次尝试的错误:

ar -ru ../../../libopenblasp-r0.2.9.rc1.a 
ar: no archive members specified
usage:  ar -d [-TLsv] archive file ...
    ar -m [-TLsv] archive file ...
    ar -m [-abiTLsv] position archive file ...
    ar -p [-TLsv] archive [file ...]
    ar -q [-cTLsv] archive file ...
    ar -r [-cuTLsv] archive file ...
    ar -r [-abciuTLsv] position archive file ...
    ar -t [-TLsv] archive [file ...]
    ar -x [-ouTLsv] archive [file ...]
make[3]: *** [../../../libopenblasp-r0.2.9.rc1.a] Error 1
make[2]: *** [lapacke] Error 2
make[1]: *** [lapackelib] Error 2
make: *** [netlib] Error 2

1 个答案:

答案 0 :(得分:11)

brew install openblas

给你

Error: No available formula for openblas
Searching taps...
homebrew/science/openblas

所以你

brew install homebrew/science/openblas

https://github.com/Homebrew/homebrew-science/commits/master/openblas.rb