Chinaunix首页 | 论坛 | 博客
  • 博客访问: 2372094
  • 博文数量: 473
  • 博客积分: 12252
  • 博客等级: 上将
  • 技术积分: 4307
  • 用 户 组: 普通用户
  • 注册时间: 2007-10-12 10:02
文章分类

全部博文(473)

文章存档

2012年(8)

2011年(63)

2010年(73)

2009年(231)

2008年(98)

分类: LINUX

2010-11-12 17:02:25

CentOS(5.1,5.2,5.3,5.4),RedHat Enterprise Linux(5.1,5.2,5.3,5.4)中自带的glib有glib和glib2,在安装gmime,dbmail的时候都需要用到glib2  ,版本要大于等于2.8.0 the Glib library (>= version 2.8.0)
rhel和centos中glib自带有有glib 和glib2 ,但通常安装其他软件需要用到的是glib2的库,因此我们通常需要升级glib2的版本来满足其他软件所需

首先强制卸载系统内置的glib2,原先系统自带的版本通常都很小。
命令如下:
1rpm -e --nodeps glib2

然后在gtk.org上下载最新版的glib
地址:


然后解压重新编译,注意这时候要添加安装地址,要不然安装其他程序的时候会提示找不到glib
命令如下:
1./configure --prefix=/usr

此路径必须是/usr而并非/usr/local
安装后则系统顺利升级到最新版的glib2
注:
glib 2.6.x 之前到 2.6.4 和 gcc4编译的时候有问题,所以得下载最新版本,否则就会出现如下错误:

galias.h:3464: error: 'g_utf8_find_next_char' aliased to undefined
symbol 'IA__g_utf8_find_next_char'
galias.h:3468: error: 'g_utf8_find_prev_char' aliased to undefined
symbol 'IA__g_utf8_find_prev_char'
galias.h:3472: error: 'g_utf8_get_char' aliased to undefined symbol
'IA__g_utf8_get_char'
galias.h:3476: error: 'g_utf8_get_char_validated' aliased to undefined
symbol 'IA__g_utf8_get_char_validated'
galias.h:3480: error: 'g_utf8_normalize' aliased to undefined symbol
'IA__g_utf8_normalize'
galias.h:3484: error: 'g_utf8_offset_to_pointer' aliased to undefined
symbol 'IA__g_utf8_offset_to_pointer'
galias.h:3488: error: 'g_utf8_pointer_to_offset' aliased to undefined
symbol 'IA__g_utf8_pointer_to_offset'
galias.h:3492: error: 'g_utf8_prev_char' aliased to undefined symbol
'IA__g_utf8_prev_char'
galias.h:3496: error: 'g_utf8_strchr' aliased to undefined symbol
'IA__g_utf8_strchr'
galias.h:3500: error: 'g_utf8_strdown' aliased to undefined symbol
'IA__g_utf8_strdown'
galias.h:3504: error: 'g_utf8_strlen' aliased to undefined symbol
'IA__g_utf8_strlen'
galias.h:3508: error: 'g_utf8_strncpy' aliased to undefined symbol
'IA__g_utf8_strncpy'
galias.h:3512: error: 'g_utf8_strrchr' aliased to undefined symbol
'IA__g_utf8_strrchr'
galias.h:3516: error: 'g_utf8_strreverse' aliased to undefined symbol
'IA__g_utf8_strreverse'
galias.h:3520: error: 'g_utf8_strup' aliased to undefined symbol
'IA__g_utf8_strup'
galias.h:3524: error: 'g_utf8_to_ucs4' aliased to undefined symbol
'IA__g_utf8_to_ucs4'
galias.h:3528: error: 'g_utf8_to_ucs4_fast' aliased to undefined
symbol 'IA__g_utf8_to_ucs4_fast'
galias.h:3532: error: 'g_utf8_to_utf16' aliased to undefined symbol
'IA__g_utf8_to_utf16'
galias.h:3536: error: 'g_utf8_validate' aliased to undefined symbol
'IA__g_utf8_validate'
galias.h:3540: error: 'g_vasprintf' aliased to undefined symbol
'IA__g_vasprintf'
galias.h:3544: error: 'g_vfprintf' aliased to undefined symbol 'IA__g_vfprintf'
galias.h:3548: error: 'g_vprintf' aliased to undefined symbol 'IA__g_vprintf'
galias.h:3552: error: 'g_vsnprintf' aliased to undefined symbol
'IA__g_vsnprintf'
galias.h:3556: error: 'g_vsprintf' aliased to undefined symbol 'IA__g_vsprintf'
make[4]: *** [garray.lo] Error 1
make[4]: Leaving directory `/home/craig/GTK/glib-2.6.0/glib'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/home/craig/GTK/glib-2.6.0/glib'

make[2]: *** [all] Error 2
make[2]: Leaving directory `/home/craig/GTK/glib-2.6.0/glib'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/craig/GTK/glib-2.6.0'

make: *** [all] Error 2


阅读(4112) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~