Below are step-by-step instructions for building Apache Mesos on Mac OS X Mavericks. I’ve tried this with Mesos 0.18.1 but it may also work with newer/older versions of Mac OS X/Mesos.
- Download Apache Mesos 0.18.1 from http://archive.apache.org/dist/mesos/0.18.1/mesos-0.18.1.tar.gz
- Extract the downloaded archive
- Open a terminal
- Go to the directory where you extracted Mesos
- Accept the Xcode license:
xcodebuild -license
- Install Brew:
ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)"
- Install GCC:
brew install gcc48
(this can take for ever i.e. > 30 minutes) - Install Maven:
brew install maven
- Create the build directory:
mkdir build
- Go to the build directory:
cd build
- Run the configure script:
../configure
- Build:
make
(this can also take a long time) - Run test suite:
make check
(go make another cup of coffee) - Start Mesos server:
./bin/mesos-master.sh --ip=127.0.0.1
- Start Mesos slave:
./bin/mesos-slave.sh --master=127.0.0.1:5050
- Open the Mesos web page: http://127.0.0.1:5050