LinuxSir.cn,穿越时空的Linuxsir!

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

简单问题

[复制链接]
发表于 2006-12-19 20:00:39 | 显示全部楼层 |阅读模式
但我还是不懂,在装openq的时候,./config这一步就卡住了。
  1. checking for pkg-config... (cached) /usr/bin/pkg-config
  2. checking for GLIB - version >= 2.0.0...
  3. *** 'pkg-config --modversion glib-2.0' returned 2.12.4, but GLIB (2.12.3)
  4. *** was found! If pkg-config was correct, then it is best
  5. *** to remove the old version of GLib. You may also be able to fix the error
  6. *** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing
  7. *** /etc/ld.so.conf. Make sure you have run ldconfig if that is
  8. *** required on your system.
  9. *** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH
  10. *** to point to the correct configuration files
  11. no
  12. configure: error:
  13. *** GLib 2.0 is required to build OpenQ; please make sure you have the
  14. *** GLib development headers installed. The latest version of GLib is always
  15. *** available at http://www.gtk.org/.
复制代码
glib我已经从主页上下载了,也装了,但着一步就是过不去……出错的提示我又看不懂。应该怎么办呢?
发表于 2006-12-19 20:11:39 | 显示全部楼层
好NB的ID,顶一个
回复 支持 反对

使用道具 举报

发表于 2006-12-19 21:17:01 | 显示全部楼层
你要装glib-devel包才能编译。
回复 支持 反对

使用道具 举报

发表于 2006-12-20 03:04:33 | 显示全部楼层
Post by 肥多啦扣肉

glib我已经从主页上下载了,也装了,但着一步就是过不去……出错的提示我又看不懂。应该怎么办呢?


这点出错信息都看不懂的话很怀疑你能成功地从源代码编译最新版的 glib。
回复 支持 反对

使用道具 举报

发表于 2006-12-20 07:41:13 | 显示全部楼层
ls,人家编译的不是glib,是Openq
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-12-20 12:43:50 | 显示全部楼层
Post by wildfire
这点出错信息都看不懂的话很怀疑你能成功地从源代码编译最新版的 glib。

单单是英文的翻译我还是没有问题。但是翻译之后它所说那些解决办法具体怎么操作?
*** 'pkg-config --modversion glib-2.0' returned 2.12.4, but GLIB (2.12.3)
*** was found! If pkg-config was correct, then it is best
*** to remove the old version of GLib. You may also be able to fix the error
*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing
*** /etc/ld.so.conf. Make sure you have run ldconfig if that is
*** required on your system.
上面说的我全部都不懂做,编辑ld.so.conf?写些什么上去?移除旧版GLIB,怎么个移法?据我所知,我应该只有一个GLIB。
*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH
*** to point to the correct configuration files
这个我也不明白,编辑glib-2.0.pc,指向正确的configuration files,怎么个改法?
装最GLIB的时候很顺利,三步:./configure------>make------->make install。除此以外还需要什么吗?

TO lyanry:我在那个主页上面只看到了Gtk、Glib、Pango三个,没看到有Glib-devel等字眼,难道我眼花了?
回复 支持 反对

使用道具 举报

发表于 2006-12-20 12:55:04 | 显示全部楼层
你可以用yum来装gtk+库
回复 支持 反对

使用道具 举报

发表于 2006-12-20 13:28:06 | 显示全部楼层
Post by lyanry
ls,人家编译的不是glib,是Openq


出错信息显示glib 版本需要 glib-2.12.14,最新 for FC6 的 rpm 只有 glib-2.12.13,所以无法通过 yum 升级,需要自己从源码编译。
回复 支持 反对

使用道具 举报

发表于 2006-12-20 14:24:56 | 显示全部楼层
Post by 肥多啦扣肉
装最GLIB的时候很顺利,三步:./configure------>make------->make install。除此以外还需要什么吗?


我自己没这么升级,不过根据 glib 的 INSTALL 文件和 FC 原来的 glib 目录结构应该这样:

1) ./configure --prefix=/usr --includedir=/usr/include/glib-2.0
2) make
3) rm -rf /usr/include/glib-2.0/glib.h
4) rm -rf /usr/include/glib-2.0/gmodule.h
5) make install
回复 支持 反对

使用道具 举报

发表于 2006-12-20 14:31:03 | 显示全部楼层
你按默认的 ./configure && make && make install 全部安装到 /usr/local 下面,在你的环境变量中 /usr 排在 /usr/local 前面,所以你装了等于没装。
回复 支持 反对

使用道具 举报

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

本版积分规则

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