我正在尝试在CentOS上为非标准Python(2.6,相对于现成的2.4)构建PyGTK.它要求我首先构建pygobject. pygobject-2.18.0在配置步骤失败.错误消息如下:checking for GLIB - version = 2.14.0... no*** Could not run G...

我正在尝试在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
我究竟做错了什么?
解决方法:
看来您的glib版本不是最新的.
在gentoo中,以下版本适用于PyGTK 2.16.0:
> glib 2.8.0
> pygobject-2.16.1
> pycairo 2.0.1
沃梦达教程
本文标题为:python-在CentOS上构建PyGTK时出现问题


基础教程推荐
猜你喜欢
- Python 编程语言详细介绍 2023-08-11
- windows7,python3使用time.strftime()函数报ValueError: embedded null byte 2023-09-04
- python中列表添加元素的几种方式(+、append()、ext 2022-09-02
- Python+Opencv实现物体尺寸测量的方法详解 2022-10-20
- CentOs系统自带python和yum卸载后的解决办法 2023-09-03
- python基础之并发编程(一) 2023-08-05
- python3里gbk编码的问题解决 2022-09-02
- 关于Python Tkinter 复选框 ->Checkbutton 2022-10-20
- python图形界面tkinter的使用技巧 2022-10-20
- Python全栈开发——线程与进程的概念 2023-09-03