红联Linux门户
Linux帮助
当前位置: 红联Linux门户 > Ubuntu

怎样删除旧版的glib

发布时间:2007-11-20 23:14:42来源:红联作者:fanggai
安装OpenQ时碰到问题,要删除旧版得glib-2.10.3,不知道要怎样弄?
#./configure提示:
checking for GLIB - version >= 2.5.7...
*** 'pkg-config --modversion glib-2.0' returned 2.12.0, but GLIB (2.10.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.
*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH
*** to point to the correct configuration files
no
configure: error:
*** GLIB 2.5.7 or better is required. The latest version of
*** GLIB is always available from ftp://ftp.gtk.org/. If GLIB is installed
*** but not in the same location as pkg-config add the location of the file
*** glib-2.0.pc to the environment variable PKG_CONFIG_PATH.
文章评论

共有 4 条评论

  1. 于 2012-07-16 14:32:52发表:

    对啊,ubuntu下怎么删除呢?

  2. fanggai 于 2007-11-22 22:01:06发表:

    国外那老兄的帖子我看过了,可我用的是ubuntu6.06啊,不是red hat,

    [ 本帖最后由 fanggai 于 2007-11-22 22:03 编辑 ]

  3. tJbwhy 于 2007-11-20 23:48:59发表:

    也参考下
    安装软件时检测GLib报错,如何删除旧版本GLib
    一、安装软件时检测GLib报错,如何删除旧版本GLib

    #./configure 的提示

    引用:
    'pkg-config --modversion glib-2.0' returned 2.2.3, but GLIB (2.0.6)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.
    If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH
    to point to the correct configuration files


    #rpm -q glib
    glib-1.2.10-8 //RedHat 8 自带的~~~

    我是重新编译安装了glib-2.2.3 , 怎么显示有GLIB(2.0.6) 呢?
    那么该如何删除glib-2.0.6??

    #ls /usr/local/lib
    显示有 glib-2.0 这样的目录 ,但里面只有个include/glibconfig.h

    请大家帮忙啦~~~有人遇到过吗

    问题解决了~~ 在网上用不同描述搜索了很多~终于在一个 国外的maillist里发现一位老兄和我同样的问题. 看来我幸运点,参考他的操作,把我的自己解决了.

    主要操作如下: 我的系统是 RH 8.0

    #cd glib-2.2.3
    #make uninstall //先反安装编译过的glib-2.2.3

    #rm /usr/bin/glib* //将原来2.0.6版本的命令或者移动到其他在PATH变量里搜索不到目录

    #rm /usr/local/lib/glib-2.0 //其实这里面就一个目录和一个.h 文件了,为了保险起见删除

    重新编译安装 glib-2.2.3 还在/usr/local目录下, 然后设置环境变量
    #export LD_LIBRARY_PATH=/usr/local/lib
    #export PKG_CONFIG_PATH=/usr/local/

    把系统自带安装的glib删除
    # rpm -e --nodeps glib
    #rpm -e -no --deps glib-devel

    建立到 /usr/bin 下的软链接 #ln -s /usr/local/bin/glib-* /usr/bin/

    主要的步骤我记得就是这些~~~用pkg-config --modversion glib-2.0 在配置过程中测试了好几次~~~

    后面安装atk-1.2.4 ,pango-1.2.5, gtk+-2.2.3 就很顺利通过了.

  4. tJbwhy 于 2007-11-20 23:48:22发表:

    sudo rpm -e glibxxx
    glibxxx是glib所在的软件包