make findet python headers nicht

raina

Well-Known Member
Beim Bauen von py-cairo werden die python header files nicht gefunden:
Code:
# cd /usr/ports/graphics/py-cairo/
# make install clean
...
===>  Configuring for py26-cairo-1.8.6
checking for a BSD-compatible install... /usr/bin/install -c -o root -g wheel
checking
...
checking for CAIRO... yes
checking for headers required to compile python extensions... not found
configure: error: could not find Python headers
===>  Script "configure" failed unexpectedly.
Please run the gnomelogalyzer, available from
...
*** Error code 1

Stop in /usr/ports/graphics/py-cairo.
Der gnomelogalyzer findet nix.
Und: Ja, ich habe /usr/ports/UPDATING gelesen und ausgeführt:
Code:
...
20090608:
  AFFECTS: users of lang/python* and py-*
  AUTHOR: miwi@FreeBSD.org

  The default version of Python has been changed from 2.5.x to 2.6.x.
  If you have 2.5.x installed, perform an upgrade of lang/python25 to
  lang/python26 with one of the following commands:

  If using portupgrade:
  # portupgrade -o lang/python26 lang/python25

  If using portmaster:
  [B]# portmaster -o lang/python26 lang/python25[/B]

  If you want to retain 2.5.x as default Python version, set the
  DR16 branch now resides in x11-wm/e16.
...
Once the installed Python has been updated to 2.6, by using the
  method above, it is required to run the upgrade-site-packages target in
  lang/python to assure that site-packages are made available to the new
  Python version.

  If using portupgrade:
  # cd /usr/ports/lang/python && make upgrade-site-packages

  If using portmaster:
  [B]# cd /usr/ports/lang/python && make upgrade-site-packages -DUSE_PORTMASTER
[/B]
Es gibt eine Python- Headerdatei auf dem System:
Code:
# locate ython.h
/usr/local/include/python2.6/Python.h

Kann man make die Header irgendwie zu Fuß mitgeben?
 
Benutzt du 8.0-BETA2?

Dazu gibt es bereits den PR137359.

Bei mir ist der Fehler verschwunden, nachdem ich mir das Base-System mit den aktuellsten Sourcen neu gebaut habe.

mousaka
 
Ich glaube nicht, dass dies dasselbe Problem ist. "Mein" Problem ist erst mit 8.0-BETA2 aufgetaucht, was vermutlich mit aktualiserten Bibliotheken zusammenhängt. Unter 7.x sollte das nicht der Fall sein.

Was sagen
  • # pkg_info | grep python
  • # pkg_info | grep py26
  • # pkg_info | grep py25
Evtl. mal einfach Python neu bauen. :confused:

mousaka
 
IWas sagen
  • # pkg_info | grep python
  • # pkg_info | grep py26
  • # pkg_info | grep py25
Evtl. mal einfach Python neu bauen. :confused:

mousaka

Code:
# pkg_info | grep python
python26-2.6.2_1    An interpreted object-oriented programming language
# pkg_info | grep py26
# pkg_info | grep py25
#
Auch ein Neubau von python hat nichts verändert:
Code:
# cd /usr/ports/lang/python26
# make install clean
# make deinstall python26-2.6.2_1
# make reinstall
# cd /usr/ports/graphics/py-cairo/
# make install clean
...
checking for headers required to compile python extensions... not found
configure: error: could not find Python headers
===>  Script "configure" failed unexpectedly.
...
 
Zurück
Oben