LinuxSir.cn,穿越时空的Linuxsir!

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

[求助]装wxGTK时遇到的问题?

[复制链接]
发表于 2006-9-21 19:08:02 | 显示全部楼层 |阅读模式
我用的是Mandriva,上面有自带的wxGTK2.6(是rpm包,非源文件),装了之后用rpm -ql wxGTK2.6居然找不到,但在软件管理器里却显示已安装,(我要装xchm才想装GTK2的).
          所以只好下了个wxGTK2.4(源码包),放到/usr/local下解压缩,在/usr/local/wxGTK-2.4.2下./configure --with-gtk

....................
checking for GTK+ version...
checking for gtk-config... no
checking for GTK - version >= 1.2.7... no
*** The gtk-config script installed by GTK could not be found
*** If GTK was installed in PREFIX, make sure PREFIX/bin is in
*** your path, or set the GTK_CONFIG environment variable to the
*** full path to gtk-config.
checking for gtk-config... (cached) no
checking for GTK - version >= 1.2.3... no
*** The gtk-config script installed by GTK could not be found
*** If GTK was installed in PREFIX, make sure PREFIX/bin is in
*** your path, or set the GTK_CONFIG environment variable to the
*** full path to gtk-config.
configure: error:
Please check that gtk-config is in path, the directory
where GTK+ libraries are installed (returned by
'gtk-config --libs' command) is in LD_LIBRARY_PATH or
equivalent variable and GTK+ is version 1.2.3 or above.

因为找不到tk-config script,配置不成功,问题是安装这个之前还要装什么?
还是我的解压路径不对呢?装了两天了,还是没装好,所以不得已发帖求助.
发表于 2006-9-21 21:03:02 | 显示全部楼层
....................
checking for GTK+ version...
checking for gtk-config... no
[color="#ff0000"]checking for GTK - version >= 1.2.7... no
*** The gtk-config script installed by GTK could not be found
*** If GTK was installed in PREFIX, make sure PREFIX/bin is in
*** your path, or set the GTK_CONFIG environment variable to the
*** full path to gtk-config.
checking for gtk-config... (cached) no
[color="#ff0000"]checking for GTK - version >= 1.2.3... no
*** The gtk-config script installed by GTK could not be found
*** If GTK was installed in PREFIX, make sure PREFIX/bin is in
*** your path, or set the GTK_CONFIG environment variable to the
*** full path to gtk-config.
[color="#ff0000"]configure: error:
Please check that gtk-config is in path, the directory
where GTK+ libraries are installed (returned by
'gtk-config --libs' command) is in LD_LIBRARY_PATH or
equivalent variable and GTK+ is version 1.2.3 or above.
回复 支持 反对

使用道具 举报

发表于 2006-9-21 21:03:56 | 显示全部楼层
试着去阅读错误提示是 Linux 下很重要的一种技能
回复 支持 反对

使用道具 举报

发表于 2006-9-21 21:49:58 | 显示全部楼层
rpm -qa | grep wxgtk

如果要编译必须有 wxgtk-devel 这样的包

要编译 wxgtk ,必须安装 gtk2-devel 这样的包

./congfigure --with-gtk2

gtk 和 gtk2 是两个包,看清楚是 --with-gtk 还是 --with-gtk2
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-9-22 09:38:56 | 显示全部楼层
多谢了,估计是因为这个。我刚刚接触linux,好多都不懂。
回复 支持 反对

使用道具 举报

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

本版积分规则

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