Ticket #33566 (closed defect: invalid)
glib2: checking whether /usr/bin/python version >= 2.5... configure: error: too old
| Reported by: | sleepyjake@… | Owned by: | ryandesign@… |
|---|---|---|---|
| Priority: | Normal | Milestone: | |
| Component: | ports | Version: | 2.0.4 |
| Keywords: | lion | Cc: | |
| Port: | glib2 |
Description (last modified by ryandesign@…) (diff)
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
Change History
comment:1 Changed 15 months ago by ryandesign@…
- Owner changed from macports-tickets@… to ryandesign@…
- Keywords lion added; glib2, lion, install removed
- Port changed from glib to glib2
- Description modified (diff)
- Summary changed from glib2 @2.30.2 + port install + failure to 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 15 months 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 15 months ago by ryandesign@…
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?


error log