Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Python Plugins: configure error on OSX #752

Closed
boothj5 opened this issue Mar 2, 2016 · 1 comment
Closed

Python Plugins: configure error on OSX #752

boothj5 opened this issue Mar 2, 2016 · 1 comment
Milestone

Comments

@boothj5
Copy link
Collaborator

boothj5 commented Mar 2, 2016

With certain versions of Python on OSX, the following error occurs during ./configure

checking for python-config... yes
checking for python... /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: in `/Users/boothj5/projects-git/profanity':
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 LIBS environment variable.
  Example: ./configure LIBS="-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.
  ============================================================================

This appears to be a common problem: https://issues.apache.org/jira/browse/MESOS-617

@boothj5 boothj5 added this to the 0.5.0 milestone Mar 2, 2016
@boothj5
Copy link
Collaborator Author

boothj5 commented Mar 2, 2016

Fixed by creating a temporary symlink in the build folder. By default will link to:

/Library/Frameworks/Python.framework

An argument can be passed to configure to override the default, e.g.:

./configure PYTHON_FRAMEWORK=/Another/Directory/Library/Frameworks/Python.framework

@boothj5 boothj5 closed this as completed Mar 2, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant