Opened 13 years ago
Closed 13 years ago
#33566 closed defect (invalid)
glib2: checking whether /usr/bin/python version >= 2.5... configure: error: too old
Reported by: | sleepyjake@… | Owned by: | ryandesign (Ryan Carsten Schmidt) |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.0.4 |
Keywords: | lion | Cc: | |
Port: | glib2 |
Description (last modified by ryandesign (Ryan Carsten Schmidt))
I have loaded Python 2.7 via macports 2.0.4, as well as py27-numpy and py27-scipy sucessfully (I think). When I try to install py27-matplotlib 1.1.0 most dependencies load until things get to glib2 where the install fails. I have search the web and past tickets for a solution. I have tried the few suggestions I have found without success. I have a macbook, lion 10.7.3, xcode 4.2.
The solution (ticket #32263) below does not work:
sudo port clean glib2 sudo port selfupdate sudo port install glib2
Attachments (1)
Change History (6)
Changed 13 years ago by sleepyjake@…
comment:1 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)
Description: | modified (diff) |
---|---|
Keywords: | glib2 install removed |
Owner: | changed from macports-tickets@… to ryandesign@… |
Port: | glib2 added; glib removed |
Summary: | glib2 @2.30.2 + port install + failure → glib2: checking whether /usr/bin/python version >= 2.5... configure: error: too old |
The log says:
:info:configure checking whether /usr/bin/python version >= 2.5... configure: error: too old
This is strange because Lion should have python >= 2.5. What does "/usr/bin/python --version
" say?
comment:2 Changed 13 years ago by sleepyjake@…
I checked that directory and the only python exec is 2.7. There were some aliases for 2.5 and 2.6 that point to nothing. I removed them and tried to install but with the same result. Why is it looking for python in that directory? I thought Macports configured everything to run through /opt/local/
comment:3 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)
glib2 doesn't do much with python; it just needs to use python for a short while at build time, and it needs version 2.5 or later. Tiger ships with a version of python older than that, so on Tiger the glib2 port installs and uses python27. But it seemed silly to me to pull in the python27 port when the version of python included with Leopard and later should be sufficient.
So the question is: why does /usr/bin/python not exist on your system? It's a standard part of OS X. Can you restore it from your backups, or reinstall OS X to get it back?
comment:4 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)
Were you able to get this working by restoring the missing parts of OS X?
comment:5 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)
Resolution: | → invalid |
---|---|
Status: | new → closed |
Closing due to lack of response and presumed erroneous OS X installation.
error log