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.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Run ./configure and I got this:
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.
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.
Thanks for your help. Can this config.log file attached bellow provide some clues?
This line in your log
Suggests you have something like this brew bug:
http://stackoverflow.com/a/8276426/432021
The linking flags must be
and not like in your case
You can edit brew config yourself or try to upgrade python.