2015-08-13 91 views
0

我正在關注文檔(http://mesos.apache.org/gettingstarted/)並嘗試在我的Mac上安裝Mesos。當我嘗試配置它時,它給我錯誤:在OS X上配置Apache Mesos失敗優勝美地

checking python extra linking flags... -u _PyMac_Error Python.framework/Versions/2.7/Python checking consistency of all components of python development environment... no configure: error: in `/Users/syang/Desktop/git/mesos/build': 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. ============================================================================

我使用Python 2.7.8,我試圖安裝Mesos 0.23.0。我做了一些搜索,看起來像在使用xcode安裝命令工具之後,鏈接問題應該得到處理。但是,它看起來不像我。有沒有人有類似的經驗,可以幫助我?

謝謝。

+0

你實際上是要使用Mesos python模塊嗎?如果沒有,只需用'--disable-python'運行'./configure'。 – hartem

回答

0

我不知道你是否已經解決了這個問題,但以供將來參考,我想在此基礎上博客http://gwikis.blogspot.com/2015/08/building-mesos-0230-on-os-x-yosemite.html

$ cd mesos-0.x./build/ $ PYTHON=/usr/bin/python ../configure

而且如果您收到的任何錯誤,如libapr-1 is required for mesos to build.或暗示下面的步驟libsubversion-1 is required for mesos to build.然後您可以執行以下操作,假定apr和subversion庫與brew一起安裝。

$ PYTHON=/usr/bin/python ../configure -with-svn=/usr/local/Cellar/subversion/1.8.13/ -with-apr=/usr/local/Cellar/apr/1.5.2/libexec/

爲了驗證爲什麼Python路徑是不正確的編譯擺在首位失敗,請通過博客帖子去一次。

相關問題