Menu

Error occurred while installing sphinxbase

Help
2016-09-28
2016-09-29
  • Laurent Tang

    Laurent Tang - 2016-09-28

    Run ./configure and I got this:

    checking for a Python interpreter with version >= 2.6... python
    checking for python... /Library/Frameworks/Python.framework/Versions/2.7/bin/python
    checking for python version... 2.7
    checking for python platform... darwin
    checking for python script directory... ${prefix}/lib/python2.7/site-packages
    checking for python extension module directory... ${exec_prefix}/lib/python2.7/site-packages
    checking for python2.7... (cached) /Library/Frameworks/Python.framework/Versions/2.7/bin/python
    checking for a version of Python >= '2.1.0'... yes
    checking for the distutils Python package... yes
    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:
    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

    I use MacAir with OS X 10.11.6. I have Python 2.7.11 and 3.5.2, and the default version is 2.7.11.

    What may made this error happened and how could I fix it? Thanks.

     
    • Nickolay V. Shmyrev

      Your Python installation is broken. You can find additional details inside config.log file created by configure.

      You need to share config.log file to get further help.

       
  • Laurent Tang

    Laurent Tang - 2016-09-29

    Thanks for your help. Can this config.log file attached bellow provide some clues?

     
    • Nickolay V. Shmyrev

      This line in your log

      clang: error: no such file or directory: 'Python.framework/Versions/2.7/Python'
      

      Suggests you have something like this brew bug:

      http://stackoverflow.com/a/8276426/432021

      The linking flags must be

       -u _PyMac_Error /System/Library/Frameworks/Python.framework/Versions/2.7/Python
      

      and not like in your case

        -u _PyMac_Error Python.framework/Versions/2.7/Python
      

      You can edit brew config yourself or try to upgrade python.

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.