2016-04-24 57 views
0

每當我嘗試安裝CMU PocketSphinx我得到的錯誤:獲得蟒蛇鏈接錯誤在OSX,PyMac_Error在連接標誌

checking for Python include path... -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 
checking for Python library path... -L/Library/Frameworks/Python.framework/Versions/2.7/lib -lpython2.7 
checking for Python site-packages path... /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages 
checking python extra libraries... -ldl -framework CoreFoundation 
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/username/Desktop/CMUSPHINX/sphinxbase-5prealpha': 
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. 
    =========================================================================== = 

See `config.log' for more details 

我已經試過「brew install python-dev」,並運行「brew install python」。我也嘗試了'./configure LDFLAGS="-L/c/Python27/libs"',但它不會工作...

任何想法我做錯了什麼?

回答

0

你有一個python安裝問題。

Vim failing to compile with python on OS X

,可以有以下選擇:描述

  • 編譯沒有蟒蛇sphinxbase與配置標誌--without-蟒蛇
  • 修復Python安裝這裏描述你的系統上Python是功能失調在上面的鏈接
  • 刪除brew python並從sources/ports安裝python /使用native python