LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1771|回复: 3

安装WXgtk出错,请教pkg-config的路径设置问题

[复制链接]
发表于 2008-10-23 18:06:35 | 显示全部楼层 |阅读模式
执行./configure时报错:
提示找不到gtk
  1. checking for GTK+ - version >= 2.0.0... no
  2. *** Could not run GTK+ test program, checking why...
  3. *** The test program failed to compile or link. See the file config.log for the
  4. *** exact error that occured. This usually means GTK+ is incorrectly installed.
  5. configure: error:
  6. The development files for GTK+ were not found. For GTK+ 2, please
  7. ensure that pkg-config is in the path and that gtk+-2.0.pc is
  8. installed. For GTK+ 1.2 please check that gtk-config is in the path,
  9. and that the version is 1.2.3 or above. Also check that the
  10. libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config
  11. --libs' are in the LD_LIBRARY_PATH or equivalent.
复制代码

但是我的gtk2-devel和pkg-config都已经装上了,估计是路径问题,请问该如何设置 ??
发表于 2008-10-23 19:29:45 | 显示全部楼层
gtk+-2.0  
debian 下 包名  libgtk+2.0-dev
也可以 apt  装  gnome-core-devel 包依赖安装之
回复 支持 反对

使用道具 举报

 楼主| 发表于 2008-10-23 20:26:13 | 显示全部楼层
已经安装过了

  1. [root@localhost ~]# rpm -qa|grep gtk
  2. pygtk2-libglade-2.10.1-12.el5
  3. usermode-gtk-1.88-3.el5.1
  4. scim-bridge-gtk-0.4.5-7.el5
  5. gtkhtml3-3.16.3-1.el5
  6. gtksourceview-1.8.0-1.fc6
  7. gtk2-2.10.4-20.el5
  8. authconfig-gtk-5.3.21-3.el5
  9. gnome-python2-gtksourceview-2.16.0-2.el5
  10. gtk2-devel-2.10.4-20.el5
  11. gtk2-engines-2.8.0-3.el5
  12. pygtk2-2.10.1-12.el5
  13. gtkhtml2-2.11.0-3
  14. gtk+-devel-1.2.10-56.el5
  15. gnome-python2-gtkhtml2-2.14.2-6.el5
  16. gtk+-1.2.10-56.el5
  17. [root@localhost ~]#
复制代码


  1. [root@localhost ~]# rpm -qa|grep pkgconfig
  2. pkgconfig-0.21-2.el5
  3. [root@localhost ~]#

复制代码
回复 支持 反对

使用道具 举报

发表于 2008-10-24 09:29:32 | 显示全部楼层
gtk+-devel-1.2.10-56.el5

[color="Red"]GTK+     
.
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表