[MacPorts] #39363: Configure fails on fresh MacPorts install on Mountain Lion
#39363: Configure fails on fresh MacPorts install on Mountain Lion ---------------------------------------+-------------------------------- Reporter: bryant.gipson@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.3 Keywords: Mountain Lion, graph-tool | Port: py27-graph-tool ---------------------------------------+-------------------------------- 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 -- Ticket URL: <https://trac.macports.org/ticket/39363> MacPorts <http://www.macports.org/> Ports system for OS X
#39363: Configure fails on fresh MacPorts install on Mountain Lion ------------------------------+--------------------------------------- Reporter: bryant.gipson@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.3 Resolution: | Keywords: Mountain Lion, graph-tool Port: py27-graph-tool | ------------------------------+--------------------------------------- Comment (by 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 -- Ticket URL: <https://trac.macports.org/ticket/39363#comment:1> MacPorts <http://www.macports.org/> Ports system for OS X
#39363: Configure fails on fresh MacPorts install on Mountain Lion ------------------------------+-------------------------- Reporter: bryant.gipson@… | Owner: mmoll@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.3 Resolution: | Keywords: mountainlion Port: py27-graph-tool | ------------------------------+-------------------------- Changes (by ciserlohn@…): * owner: macports-tickets@… => mmoll@… * cc: tiago@… (added) * keywords: Mountain Lion, graph-tool => mountainlion Old description:
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
New description: 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 }}} -- Comment: In the future please remember to use WikiFormatting and Cc the maintainer(s). For keywords have a look at DraftKeywordGuidelines. -- Ticket URL: <https://trac.macports.org/ticket/39363#comment:2> MacPorts <http://www.macports.org/> Ports system for OS X
#39363: Configure fails on fresh MacPorts install on Mountain Lion ------------------------------+-------------------------- Reporter: bryant.gipson@… | Owner: mmoll@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.1.3 Resolution: duplicate | Keywords: mountainlion Port: py27-graph-tool | ------------------------------+-------------------------- Changes (by larryv@…): * status: new => closed * resolution: => duplicate Comment: Replying to [comment:1 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. -- Ticket URL: <https://trac.macports.org/ticket/39363#comment:3> MacPorts <http://www.macports.org/> Ports system for OS X
participants (1)
-
MacPorts