安装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.1
No package 'atk' found
No package 'pango' found
No package 'cairo' found
No package 'cairo-gobject' found
No package 'gdk-pixbuf-2.0' found

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables BASE_DEPENDENCIES_CFLAGS
and 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.5
Requested '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 input
make[3]: *** [atktext.lo] 错误 1
make[3]: Leaving directory `/usr/atk-2.0.0/atk'
make[2]: *** [all] 错误 2
make[2]: Leaving directory `/usr/atk-2.0.0/atk'
make[1]: *** [all-recursive] 错误 1
make[1]: Leaving directory `/usr/atk-2.0.0'
make: *** [all] 错误 2


我只能说fuck了,只好换个版本,atk-1.3.2,这次终于ok了,make-makeinstall
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值