2016-04-24 9 views
0

Jedes Mal, wenn ich versuche, CMU PocketSphinx zu installieren erhalte ich die Fehlermeldung:Erste Python Verbindungsfehler auf OSX, PyMac_Error in Linker-Flags

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 

ich versucht habe, 'brew install python-dev' und haben laufen 'brew install python'. Ich habe auch versucht, die './configure LDFLAGS="-L/c/Python27/libs"', aber es wird nicht funktionieren ...

Jede Idee, was ich falsch mache?

Antwort

0

Sie haben ein Problem mit der Python-Installation. Python auf Ihrem System ist dysfunktional, wie hier beschrieben:

Vim failing to compile with python on OS X

Sie haben folgende Möglichkeiten:

  • Compile sphinxbase ohne Python mit configure-Flag --without-Python
  • Fix Python-Installation wie beschrieben in den Link oben
  • Entfernen Sie brew Python und installieren Sie Python von Quellen/Ports/verwenden native Python