centos 5.2 操作系统。断电重启后 cacti不出图
在cacti里进行Debug测试,查看日志。权限都没有任何错误
手动进行rrdtool测试
rrdtool graph a.png --imgformat=PNG --start=-86400 --end=-300 --title="game - Traffic - eth0" --rigid --base=1000 --height=120 --width=500 --alt-autoscale-max --lower-limit=0 - -vertical-label="bits per second" --slope-mode --font TITLE:12: --font AXIS:8:
rrdtool: symbol lookup error: /usr/local/lib/libpango-1.0.so.0: undefined symbol: g_type_register_static_simple
libpango出错了。
# ldd /usr/local/lib/libpango-1.0.so.0
linux-gate.so.1 => (0x00e6c000)
libgobject-2.0.so.0 => /usr/local/lib/libgobject-2.0.so.0 (0x00645000)
libgmodule-2.0.so.0 => /usr/local/lib/libgmodule-2.0.so.0 (0x00ee1000)
libdl.so.2 => /lib/libdl.so.2 (0x00b2a000)
libglib-2.0.so.0 => /usr/local/lib/libglib-2.0.so.0 (0x00719000)
libm.so.6 => /lib/i686/nosegneg/libm.so.6 (0x0081f000)
libc.so.6 => /lib/i686/nosegneg/libc.so.6 (0x00c2a000)
/lib/ld-linux.so.2 (0x00b0b000)
libiconv.so.2 => /usr/lib/libiconv.so.2 (0x00110000)
正常。
重新编译一次rrdtool 问题依旧
安装pango-devel包。问题依旧
找着redhat网站(明的帮忙)
https://bugzilla.redhat.com/show_bug.cgi?id=201586
按步骤处理~问题依旧!
手动编译pango 再编译rrdtool 问题依旧
过了一天再次查看。发现rrdtool编译的是1.3版本。不行就换成了1.2
再次编译。做好软链接。
ln -s /usr/local/rrdtool-1.2.28/bin/rrdtool /usr/bin/rrdtool
ln -s /usr/local/rrdtool-1.2.28/bin/rrdupdate /usr/bin/rrdupdate
ln -s /usr/local/rrdtool-1.2.28/bin/rrdcgi /usr/bin/rrdcgi
在cacti里进行Debug测试,查看日志。权限都没有任何错误
手动进行rrdtool测试
rrdtool graph a.png --imgformat=PNG --start=-86400 --end=-300 --title="game - Traffic - eth0" --rigid --base=1000 --height=120 --width=500 --alt-autoscale-max --lower-limit=0 - -vertical-label="bits per second" --slope-mode --font TITLE:12: --font AXIS:8:
rrdtool: symbol lookup error: /usr/local/lib/libpango-1.0.so.0: undefined symbol: g_type_register_static_simple
libpango出错了。
# ldd /usr/local/lib/libpango-1.0.so.0
linux-gate.so.1 => (0x00e6c000)
libgobject-2.0.so.0 => /usr/local/lib/libgobject-2.0.so.0 (0x00645000)
libgmodule-2.0.so.0 => /usr/local/lib/libgmodule-2.0.so.0 (0x00ee1000)
libdl.so.2 => /lib/libdl.so.2 (0x00b2a000)
libglib-2.0.so.0 => /usr/local/lib/libglib-2.0.so.0 (0x00719000)
libm.so.6 => /lib/i686/nosegneg/libm.so.6 (0x0081f000)
libc.so.6 => /lib/i686/nosegneg/libc.so.6 (0x00c2a000)
/lib/ld-linux.so.2 (0x00b0b000)
libiconv.so.2 => /usr/lib/libiconv.so.2 (0x00110000)
正常。
重新编译一次rrdtool 问题依旧
安装pango-devel包。问题依旧
找着redhat网站(明的帮忙)
https://bugzilla.redhat.com/show_bug.cgi?id=201586
Thanks for the info. it looks like Pango's dependencies are broken.
# nm -D /usr/lib64/libpango-1.0.so.0 | grep g_type_register_static_simple
U g_type_register_static_simple
# rpm2cpio glib2-2.10.1-1.x86_64.rpm | cpio -i --make-directories
4394 blocks
]# nm -D usr/lib64/libgobject-2.0.so.0 | grep g_type_register
0000000000026a60 T g_type_register_dynamic
0000000000026bf0 T g_type_register_fundamental
00000000000271c0 T g_type_register_static
# rpm2cpio glib2-2.10.2-1.fc5.1.x86_64.rpm | cpio -i --make-directories
4549 blocks
# nm -D usr/lib64/libgobject-2.0.so.0 | grep g_type_register
0000000000026a60 T g_type_register_dynamic
0000000000026bf0 T g_type_register_fundamental
00000000000271c0 T g_type_register_static
# rpm2cpio glib2-2.10.3-1.x86_64.rpm | cpio -i --make-directories
4565 blocks
# nm -D usr/lib64/libgobject-2.0.so.0 | grep g_type_register
0000000000026af0 T g_type_register_dynamic
0000000000026c80 T g_type_register_fundamental
0000000000027250 T g_type_register_static
# rpm2cpio glib2-2.11.0-1.x86_64.rpm | cpio -i --make-directories
4506 blocks
# nm -D usr/lib64/libgobject-2.0.so.0 | grep g_type_register
0000000000027dd0 T g_type_register_dynamic
0000000000027f60 T g_type_register_fundamental
00000000000286b0 T g_type_register_static
0000000000028b40 T g_type_register_static_simple
So reassigning to pango.
按步骤处理~问题依旧!
手动编译pango 再编译rrdtool 问题依旧
过了一天再次查看。发现rrdtool编译的是1.3版本。不行就换成了1.2
再次编译。做好软链接。
ln -s /usr/local/rrdtool-1.2.28/bin/rrdtool /usr/bin/rrdtool
ln -s /usr/local/rrdtool-1.2.28/bin/rrdupdate /usr/bin/rrdupdate
ln -s /usr/local/rrdtool-1.2.28/bin/rrdcgi /usr/bin/rrdcgi
终于出图了~~
本文转自守住每一天51CTO博客,原文链接:http://blog.51cto.com/liuyu/259903,如需转载请自行联系原作者