adapted ftom from https://github.com/jonathansick/dotfiles/wiki/Notes-for-Mac-OS-X
ATLAS & LAPACK
ATLAS can be downloaded from SourceForge; these instructions are for atlas 3.10.3. Also grab a copy of LAPACK with
wget http://www.netlib.org/lapack/lapack-3.8.0.tar.gz
Setup Move ATLAS to ~/build. Unpack and setup via:
bunzip2 -c atlas3.10.3.tar.bz2 | tar xfm - mv ATLAS ATLAS3.10.3 cd ATLAS3.10.3 mkdir _mac_build cd _mac_build The _mac_build directory is where we'll build the sources. Similarly move lapack-3.8.0.tar.gz to the ~/build directory.
Configuration Inside the build directory the configuration is done via:
../configure -b 64 --prefix=/usr/local/Cellar/atlas --with-netlib-lapack-tarfile=/Users/ben/Downloads/lapack-3.8.0.tar.gz --shared
Build, Check and Install
make build make check make ptcheck make time make install
ln -s /usr/local/Cellar/atlas/lib/liblapack.a /usr/local/Cellar/atlas/lib/liblapack_atlas.a