Skip to content

Instantly share code, notes, and snippets.

@moderation
Last active February 16, 2016 06:08
Show Gist options
  • Save moderation/0b34f57aaabefeda15e9 to your computer and use it in GitHub Desktop.
Save moderation/0b34f57aaabefeda15e9 to your computer and use it in GitHub Desktop.
Compile Apache Mesos 0.21.0 on OS X

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.

@xiaods
Copy link

xiaods commented Jan 26, 2016

thanks for share this tips. it works for my macos 10.11 latest version

@psekar
Copy link

psekar commented Feb 16, 2016

Thanks @griznog . that works.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment