安装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.
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
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