3

非標準のPython(2.6、すぐに使える2.4)用にCentOSでPyGTKを構築しようとしています。最初に 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

私は何を間違っていますか?

4

1 に答える 1

4

glib のバージョンが最新ではないようです。

gentoo では、PyGTK 2.16.0 で次のバージョンが適用されます。

  • グリブ 2.8.0
  • pygobject-2.16.1
  • ピカイロ 2.0.1
于 2010-04-24T08:48:47.587 に答える