New Ticket     Tickets     Wiki     Browse Source     Timeline     Roadmap     Ticket Reports     Search

Ticket #33566 (closed defect: invalid)

Opened 15 months ago

Last modified 13 months ago

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

main.log (20.3 KB) - added by sleepyjake@… 15 months ago.
error log

Change History

Changed 15 months ago by sleepyjake@…

error log

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?

comment:4 Changed 14 months ago by ryandesign@…

Were you able to get this working by restoring the missing parts of OS X?

comment:5 Changed 13 months ago by ryandesign@…

  • Status changed from new to closed
  • Resolution set to invalid

Closing due to lack of response and presumed erroneous OS X installation.

Note: See TracTickets for help on using tickets.