Apache 0.20.1 introduced some new build dependencies - mesos / docs / getting-started.md
# Install devel libapr1 (***Only required for Mesos 0.21.0 or newer***)
$ sudo apt-get install libapr1-dev
# Install devel libsvn (***Only required for Mesos 0.21.0 or newer***)
$ sudo apt-get install libsvn-dev
Prior to 0.21.0 I used Dimitris Kolovos's Building Apache Mesos on Mac OS X Mavericks to successfully build a Mesos Slave from source. Another how to guide is from Timothy Chen - How to build Apache Mesos on Mac
In order to build with the new dependencies I did the following:
Install subversion that includes the relevant serf and subversion libraries:
brew install subversion
Link the brewed library so the build process can find it:
sudo ln -s /usr/local/Cellar/subversion/1.8.10_1/include/subversion-1 /usr/include/subversion-1
This step may not be required but I didn't have Java prior to my prior builds and I had to make sure the build process knew where Java was:
export JAVA_HOME="/Library/Java/JavaVirtualMachines/jdk1.8.0_51.jdk/Contents/Home"
export PATH=$JAVA_HOME/bin:$PATH
I was then able to build using Dimitri's steps.
Thanks for the update @vivekjuneja. With the steps above already done and an updated JDK version I was able to follow Dimitri's steps to build the just released Apache Mesos 0.23