【问题标题】:Problem building PyGTK on CentOS在 CentOS 上构建 PyGTK 的问题
【发布时间】:2010-04-15 01:45:38
【问题描述】:

我正在尝试在 CentOS 上为非标准 Python(2.6,与开箱即用的 2.4)构建 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

我做错了什么?

【问题讨论】:

    标签: python pygtk pygobject


    【解决方案1】:

    您的 glib 版本似乎不是最新的。

    在 gentoo 中,以下版本适用于 PyGTK 2.16.0:

    • glib 2.8.0
    • pygobject-2.16.1
    • pycairo 2.0.1

    【讨论】:

    • 感谢@iElectric 的回复。我们最终放弃并转向了 Ubuntu Server,这使得这变得像 apt-get install... 一样简单
    • 这里有同样的问题 - 除了我不能移动到其他操作系统。真可惜。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2011-02-20
    • 2015-04-25
    • 1970-01-01
    • 2014-04-28
    • 1970-01-01
    • 2011-07-03
    • 1970-01-01
    相关资源
    最近更新 更多