Ошибки в портах с питоном

FreeBSD, NetBSD, OpenBSD, DragonFly и т. д.

Модератор: arachnid

katar
Сообщения: 161
ОС: FreeBSD

Ошибки в портах с питоном

Сообщение katar »

из-за вот этой ошибки куча проблем с портами...

Код: Выделить всё

py25-cairo-1.8.6 needs Python 2.6 at least. But you specified 2.5.
-= FreeBSD 7.2/6.4-STABLE =-
Спасибо сказали:
Аватара пользователя
exlex
Сообщения: 38
ОС: Gentoo GNU/Linux

Re: Ошибки в портах с питоном

Сообщение exlex »

Почему бы этот python и не обновить до 2.6.x?
В /usr/ports/UPDATING смотрим уже давно есть:

Код: Выделить всё

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:
  # portmaster -o lang/python26 lang/python25

  If you want to retain 2.5.x as default Python version, set the
  PYTHON_DEFAULT_VERSION variable to 'python2.5' (without quotes) in
  /etc/make.conf, then go to lang/python and perform the following
  command:

  # portupgrade -R python

  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:
  # cd /usr/ports/lang/python && make upgrade-site-packages -DUSE_PORTMASTER

  The portmaster case can take quite some time to complete due to the lack of
  cached information that the portupgrade suite uses (specifically pkg_which).
  This is not the fault of portmaster.
Я — внутри; смысл — вне © Генри Лайон Олди «Человек Номоса»
Спасибо сказали:
Аватара пользователя
Poor Fred
Сообщения: 1575
Статус: Pygoscelis papua
ОС: Gentoo Linux, FreeBSD

Re: Ошибки в портах с питоном

Сообщение Poor Fred »

exlex писал(а):
31.07.2009 21:48
Почему бы этот python и не обновить до 2.6.x?

Да. При этом пересобрать все питоновские модули:

Код: Выделить всё

potrupgrade -f your_module
Убить всех человеков!
Спасибо сказали:
Аватара пользователя
exlex
Сообщения: 38
ОС: Gentoo GNU/Linux

Re: Ошибки в портах с питоном

Сообщение exlex »

Poor Fred писал(а):
02.08.2009 05:21
Да. При этом пересобрать все питоновские модули:

Код: Выделить всё

potrupgrade -f your_module

это не нужно, модули автоматически пересобираются все сами при помощи:

Код: Выделить всё

# cd /usr/ports/lang/python && make upgrade-site-packages
Я — внутри; смысл — вне © Генри Лайон Олди «Человек Номоса»
Спасибо сказали: