首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 开发语言 > perl python >

安装wxPython(异常示范)

2012-07-16 
安装wxPython(错误示范)LINUX系统是Red Hat。先在网上下了 wxPython包,解压完./configure失败,因为缺少GTK+

安装wxPython(错误示范)
LINUX系统是Red Hat。

先在网上下了 wxPython包,解压完./configure失败,因为缺少GTK++,好吧,于是再下GTK++包,同样./configure,结果如下:

configure: error: Package requirements (glib-2.0 >= 2.28.0    atk >= 1.30    pango >= 1.24.0    cairo >= 1.10.0    cairo-gobject >= 1.10.0    gdk-pixbuf-2.0 >= 2.22.0) were not met:Requested 'glib-2.0 >= 2.28.0' but version of GLib is 2.24.1No package 'atk' foundNo package 'pango' foundNo package 'cairo' foundNo package 'cairo-gobject' foundNo package 'gdk-pixbuf-2.0' foundConsider adjusting the PKG_CONFIG_PATH environment variable if youinstalled software in a non-standard prefix.Alternatively, you may set the environment variables BASE_DEPENDENCIES_CFLAGSand BASE_DEPENDENCIES_LIBS to avoid the need to call pkg-config.See the pkg-config man page for more details.


无奈中继续用yum下载缺失的包,然后呢,吐血啊,我前世到底做错了什么??
Requested 'glib-2.0 >= 2.28.0' but version of GLib is 2.22.5Requested 'atk >= 1.30' but version of Atk is 1.28.0

手动上网下载Atk,下载./configure,make,又出现问题,如下:
atktext.c:1428: 错误:expected declaration specifiers or ‘...’ before ‘atk_text_range’atktext.c:1428: 错误:expected declaration specifiers or ‘...’ before ‘atk_text_range_copy’atktext.c:1429: 错误:expected declaration specifiers or ‘...’ before ‘atk_text_range_free’atktext.c:1429: 警告:返回类型默认为‘int’atktext.c: 在函数‘G_DEFINE_BOXED_TYPE’中:atktext.c:1428: 错误:省略了形参的名字atktext.c:1429: 错误:expected ‘{’ at end of inputmake[3]: *** [atktext.lo] 错误 1make[3]: Leaving directory `/usr/atk-2.0.0/atk'make[2]: *** [all] 错误 2make[2]: Leaving directory `/usr/atk-2.0.0/atk'make[1]: *** [all-recursive] 错误 1make[1]: Leaving directory `/usr/atk-2.0.0'make: *** [all] 错误 2

我只能说fuck了,只好换个版本,atk-1.3.2,这次终于ok了,make-makeinstall

热点排行