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.
@dscrash,
Not sure if you have already resolved this problem or not.
I found this thread while having the same problem as you mentioned. The trick was to use the –with-apr flag and point it to the “brew” installed location.
For example, the following worked for me :-
../configure –with-svn=/usr/local/Cellar/subversion/1.8.13/ –with-apr=/usr/local/Cellar/apr/1.5.2/libexec/
Let me know otherwise.