-
Notifications
You must be signed in to change notification settings - Fork 63
Build on OS X
Madness on a Mac Build MADNESS on Mac OS X
MADNESS is supported on OS X 10.9 (Mavericks) and 10.10 (Yosemite). While it may be possible to build and run MADNESS on earlier versions of OS X, that can change at any time. The main limitation is the availability of a C++11 compliant compiler.
- Apple Command Line Tools
- MPI-2
- BLAS and LAPACK (Accelerate framework included with OS X)
- GNU Autotools
- autoconf 2.59 or later
- automake 1.11 or later
- git
- Package management software
- MacPorts
- Homebrew
- libxc
- MADxc
- TBB
- Elemental
- Eigen 3 (deprecated)
- Gperftools (not recommended)
- Doxygen
The following compiles have been tested with MADNESS on OS X and are known to work.
- Apple's Clang 5.0 (svn 3.3) and later -- Preferred
- Intel Composer XE 2013 SP1, Update 2 and later
In Terminal run:
$ xcode-select --install
Download and install Command Line Tools from Apple's Developer web site.
MacPorts is a command-line tool that automates the process of downloading, configuring, installing, and updating open-source software in OS X. Most of the software required by MADNESS is available through MacPorts. To install MacPorts:
- Install MacPorts
- Once MacPorts is installed, in terminal run:
$ sudo port selfupdate
Note: If you are behind a firewall or proxy and having trouble syncing portfiles, you can use the alternate download method described here.
You can install the remaining software need by MADNESS with MacPorts.
$ sudo port install autoconf automake libtool git doxygen mpich
In Terminal:
$ mkdir madness $ cd madness $ git clone https://github.com/m-a-d-n-e-s-s/madness.git src $ cd src $ ./autogen.sh $ cd ..
$ mkdir build $ cd build $ ../src/configure \ CC=/usr/bin/clang \ CXX=/usr/bin/clang++ \ MPICC=/path/to/mpicc \ MPICXX=/path/to/mpicxx
$ make -j