#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 文件了,为了保险起见删除
$cp intltool.m4 /usr/share/aclocal/
http://ftp.gnome.org/pub/GNOME/sources/glib/2.28/
如果不是rpm或源码包已经被删,那只能直接删文件了。一般包括如下文件:
a) /usr/lib/libglib-*
b) /usr/lib/pkgconfig/glib-2.0.pc
c) /usr/iclude/glib-2.0
d) /usr/share/glib-2.0
e) /usr/share/locale/*/LC_MESSAGES/glib20.mo
#export LD_LIBRARY_PATH=/usr/local/lib
#export PKG_CONFIG_PATH=/usr/local/
建立到 /usr/bin 下的软链接 #ln -s /usr/local/bin/glib-* /usr/bin/
Package glib-2.0 was not found in the pkg-config search path.
For example if you are using bash:
PKG_CONFIG_PATH=/usr/local/lib/pkgconfig
export PKG_CONFIG_PATH
You can find default path like this:
locate pkg-config
and it usually is :
/usr/bin/pkg-config
You should knw where the new libraries are (=where to set PKG_CONFIG_PATH). This can give hins:
locate pkgconfig
No package 'gtk+-3.0' found
http://ftp.gnome.org/pub/GNOME/sources/gtk+/3.0/
Requested 'atk >= 1.30' but version of Atk is 1.28.0
Requested 'cairo >= 1.10.0' but version of cairo is 1.8.8
No package 'cairo-gobject' found
Requested 'gdk-pixbuf-2.0 >= 2.22.0' but version of GdkPixbuf is 2.12.4
http://ftp.acc.umu.se/pub/gnome/sources/atk/1.30/
http://cairographics.org/releases/
http://cgit.freedesktop.org/cairo/commit/?id=3a8b8fcc2a8a48cef49211c45723862f9fa8db23
http://linux.softwareweb.com/download/gdk-pixbuf-2.22.1-EX49N.html
No package 'iso-codes' found
http://www.linuxfromscratch.org/blfs/view/svn/general/iso-codes.html
No package 'dconf' found
http://ftp.gnome.org/pub/GNOME/sources/dconf/0.8/
http://www.linuxfromscratch.org/blfs/view/svn/gnome/dconf.html
https://github.com/phuang/ibus