First, download Mesos:
http://mesos.apache.org/downloads/
Unpack the tar ball, and run "./configure".
If you are running Mavericks, and you've installed Python using brew, you may end up with:
configure: error: Could not link test program to Python. Maybe the main Python library has been installed in some non-standard library path. If so, pass it to configure, via the LDFLAGS environment variable. Example: ./configure LDFLAGS="-L/usr/non-standard-path/python/lib" ============================================================================ ERROR! You probably have to install the development version of the Python package for your distribution. The exact name of this package varies among them. ============================================================================
It turns out there is a bug in python that prevents Mesos from properly linking. Here is the JIRA issue on the mesos project: https://issues.apache.org/jira/browse/MESOS-617
To get around this bug, I needed to downgrade python.
With brew, you can use the following commands:
bone@zen:~/tools/mesos-0.15.0-> brew install homebrew/versions/python24 bone@zen:~/tools/mesos-0.15.0-> brew unlink python bone@zen:~/tools/mesos-0.15.0-> brew link python24After that, the configure will complete, BUT -- the compilation will fail with:
In file included from src/stl_logging_unittest.cc:34: ./src/glog/stl_logging.h:56:11: fatal error: 'ext/slist' file not found # includeFor this one, you are going to want to get things compiling with gcc (instead of clang). Use the following:
brew install gcc47 rm -rf build mkdir build cd build CC=gcc-4.7 CXX=g++-4.7 ../configureAfter that, you should be able to "sudo make install" and be all set. Happy Meso'ing.
No comments:
Post a Comment