How to create OpenBLAS on OSX Mavericks

I am trying to create OpenBLAS ( http://www.openblas.net/ ) on OSX Mavericks

Just by typing make, it makes an error in a few minutes during the make process.

I browsed the Internet for solutions, giving several suggestions for command line options, such as:

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

None of them work.

Can anyone get this library without errors?

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

The following is the error of the last attempt in the list above:

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
+4
source share
1 answer
brew install openblas

gives you

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

+10

All Articles