Opened 11 years ago
Closed 11 years ago
#39363 closed defect (duplicate)
Configure fails on fresh MacPorts install on Mountain Lion
Reported by: | bryant.gipson@… | Owned by: | mamoll (Mark Moll) |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.1.3 |
Keywords: | mountainlion | Cc: | count0 (Tiago de Paula Peixoto) |
Port: | py27-graph-tool |
Description (last modified by ci42)
Configure fails with:
:info:configure configure: error: :info:configure Could not link test program to Python. Maybe the main Python library has been :info:configure installed in some non-standard library path. If so, pass it to configure, :info:configure via the LDFLAGS environment variable. :info:configure Example: ./configure LDFLAGS="-L/usr/non-standard-path/python/lib" :info:configure ============================================================================ :info:configure ERROR! :info:configure You probably have to install the development version of the Python package :info:configure for your distribution. The exact name of this package varies among them. :info:configure ============================================================================
I could get this to compile, however, using the following:
./configure PYTHON_EXTRA_LDFLAGS="-u _PyMac_Error" LDFLAGS="-L/opt/local/lib `python-config --ldflags` `python-config --libs`" CXXFLAGS="-I/opt/local/include -I/opt/local//Library/Frameworks/Python.framework/Versions/2.7/include" --prefix=/opt/local/ --with-boost-python=boost_python-mt --disable-sparsehash CXX=clang
Attachments (1)
Change History (4)
Changed 11 years ago by bryant.gipson@…
Attachment: | main.log.tar.bz2 added |
---|
comment:1 follow-up: 3 Changed 11 years ago by bryant.gipson@…
comment:2 Changed 11 years ago by ci42
Cc: | tiago@… added |
---|---|
Description: | modified (diff) |
Keywords: | mountainlion added; Mountain Lion graph-tool removed |
Owner: | changed from macports-tickets@… to mmoll@… |
In the future please remember to use WikiFormatting and Cc the maintainer(s). For keywords have a look at DraftKeywordGuidelines.
comment:3 Changed 11 years ago by larryv (Lawrence Velázquez)
Resolution: | → duplicate |
---|---|
Status: | new → closed |
Replying to bryant.gipson@…:
Oh, also my python version is the correct ports 2.7 version (not system)
$>which python [[BR]] '/opt/local/bin/python' $>/opt/local/bin/python --version [[BR]] Python 2.7.5
This should not matter. Ports should reference specific Python versions, not the generic ${prefix}/bin/python
.
:info:configure checking python extra linking flags... -u _PyMac_Error Python.framework/Versions/2.7/Python
Looks like #39223.
Note: See
TracTickets for help on using
tickets.
Oh, also my python version is the correct ports 2.7 version (not system)
$>which python
'/opt/local/bin/python'
$>/opt/local/bin/python --version
Python 2.7.5