我正在尝试在 OSX Mavericks 上构建 OpenBLAS ( http://www.openblas.net/ )
只需键入“make”,它就会在 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
最佳答案
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
关于macos - 如何在 OSX Mavericks 上构建 OpenBLAS,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/21067723/