Задача сборки PyGTK на CentOS - PullRequest
3 голосов
/ 15 апреля 2010

Я пытаюсь собрать PyGTK на CentOS для нестандартного Python (2.6, вместо готовой версии 2.4). Это требует, чтобы я сначала собрал pygobject. pygobject-2.18.0 завершается ошибкой на этапе настройки. Сообщения об ошибках следующие:

checking for GLIB - version >= 2.14.0... no
*** Could not run GLIB test program, checking why...
*** The test program failed to compile or link. See the file config.log for the
*** exact error that occured. This usually means GLIB is incorrectly installed.
configure: error: maybe you want the pygobject-2-4 branch?

Я скачал, собрал и успешно установил glib.

Файл config.log содержит следующий вывод:

conftest.c:27:18: error: glib.h: No such file or directory
conftest.c: In function 'main':
conftest.c:33: error: 'glib_major_version' undeclared (first use in this function)
conftest.c:33: error: (Each undeclared identifier is reported only once
conftest.c:33: error: for each function it appears in.)
conftest.c:33: error: 'glib_minor_version' undeclared (first use in this function)
conftest.c:33: error: 'glib_micro_version' undeclared (first use in this function)
configure:13844: $? = 1

Что я делаю не так?

1 Ответ

4 голосов
/ 24 апреля 2010

Похоже, ваша версия glib не устарела.

В gentoo в PyGTK 2.16.0 применяются следующие версии:

  • бой 2.8.0
  • pygobject-2.16.1
  • pycairo 2.0.1
...