前言
最近IBM提供了一台powerpc给我们测试使用.在上面装出几个虚拟机,准备加入到云平台中. 同时为了监控主机状况,准备在上面安装nagios和ganglia.
nagios的安装同x86_64环境下相差不多,但是ganglia的安装过程就稍微复杂些,写文记录如下.
学习笔记,以备查阅.
@Author duangr
@Website http://my.oschina.net/duangr/blog/183776
1. 相关环境
项 | 值 |
Issue | Red Hat Enterprise Linux Server release 6.4 (Santiago) |
OS | Linux 2.6.32-358.el6 |
Arch | ppc64 |
2. 安装目标
目标是预先安装好ganglia所依赖的rpm包,后续就可以参考 ganglia的安装步骤 来具体安装.
rpm -q gcc glibc glibc-common rrdtool rrdtool-devel apr apr-devel expat expat-devel pcre pcre-devel
gcc-4.4.7-3.el6.ppc64
glibc-2.12-1.107.el6.ppc64
glibc-2.12-1.107.el6.ppc
glibc-common-2.12-1.107.el6.ppc64
package rrdtool is not installed
package rrdtool-devel is not installed
apr-1.3.9-5.el6_2.ppc64
package apr-devel is not installed
expat-2.0.1-11.el6_2.ppc64
expat-2.0.1-11.el6_2.ppc
package expat-devel is not installed
pcre-7.8-6.el6.ppc64
package pcre-devel is not installed
目标即安装上面缺失的包!
3. 代码获取
ppc相关的rpm包可以通过如下网址搜索
4. 安装思路
安装rrdtool (未果)
# rpm -ivh rrdtool-1.4.8-6.fc21.ppc64.rpm
error: Failed dependencies:
libpng16.so.16()(64bit) is needed by rrdtool-1.4.8-6.fc21.ppc64
libpng16.so.16(PNG16_0)(64bit) is needed by rrdtool-1.4.8-6.fc21.ppc64
安装rrdtool的依赖libpng16 (未果)
# rpm -ivh libpng16-16-1.6.6-1.2.ppc64.rpm
warning: libpng16-16-1.6.6-1.2.ppc64.rpm: Header V3 RSA/SHA256 Signature, key ID 3dbdc284: NOKEY
error: Failed dependencies:
libz.so.1(ZLIB_1.2.3.4)(64bit) is needed by libpng16-16-1.6.6-1.2.ppc64
安装libpng16的依赖zlib (未果)
# rpm -ivh zlib-1.2.7-2.1.21.ppc64.rpm
warning: zlib-1.2.7-2.1.21.ppc64.rpm: Header V3 RSA/SHA256 Signature, key ID 3dbdc284: NOKEY
Preparing... ########################################### [100%]
file /lib64/libz.so.1 from install of zlib-1.2.7-2.1.21.ppc64 conflicts with file from package zlib-1.2.3-29.el6.ppc64
查看zlib目前所支持的版本
# strings /lib64/libz.so.1 |grep ZLIB
ZLIB_1.2.0
ZLIB_1.2.0.2
ZLIB_1.2.0.8
ZLIB_1.2.2
ZLIB_1.2.2.3
ZLIB_1.2.2.4
之前已经存在zlib,使用更新命令,并且将 zlib与zlib-devel一起更新 (未果)
# rpm -Uvh zlib-1.2.7-2.1.21.ppc64.rpm zlib-devel-1.2.7-2.1.21.ppc64.rpm
warning: zlib-1.2.7-2.1.21.ppc64.rpm: Header V3 RSA/SHA256 Signature, key ID 3dbdc284: NOKEY
error: Failed dependencies:
libz.so.1 is needed by (installed) libpng-2:1.2.49-1.el6_2.ppc
libz.so.1 is needed by (installed) libtiff-3.9.4-9.el6_3.ppc
libz.so.1 is needed by (installed) nss-3.14.0.0-12.el6.ppc
libz.so.1 is needed by (installed) openssl-1.0.0-27.el6.ppc
libz.so.1 is needed by (installed) libssh2-1.4.2-1.el6.ppc
libz.so.1 is needed by (installed) cairo-1.8.8-3.1.el6.ppc
libz.so.1 is needed by (installed) libcurl-7.19.7-35.el6.ppc
libz.so.1 is needed by (installed) gnutls-2.8.5-10.el6.ppc
libz.so.1 is needed by (installed) cups-libs-1:1.4.2-48.el6_3.3.ppc
发现有包对zlib的ppc包也有依赖,需要一同更新 (成功)
# rpm -Uvh zlib-1.2.7-2.1.21.ppc.rpm zlib-1.2.7-2.1.21.ppc64.rpm zlib-devel-1.2.7-2.1.21.ppc64.rpm
warning: zlib-1.2.7-2.1.21.ppc.rpm: Header V3 RSA/SHA256 Signature, key ID 3dbdc284: NOKEY
Preparing... ########################################### [100%]
1:zlib ########################################### [ 33%]
2:zlib-devel ########################################### [ 67%]
3:zlib ########################################### [100%]
安装libpng16 (成功)
# rpm -ivh libpng16-16-1.6.6-1.2.ppc64.rpm
warning: libpng16-16-1.6.6-1.2.ppc64.rpm: Header V3 RSA/SHA256 Signature, key ID 3dbdc284: NOKEY
Preparing... ########################################### [100%]
1:libpng16-16 ########################################### [100%]
安装libpng16-devel (未果)
# rpm -ivh libpng16-devel-1.6.6-1.2.ppc64.rpm
warning: libpng16-devel-1.6.6-1.2.ppc64.rpm: Header V3 RSA/SHA256 Signature, key ID 3dbdc284: NOKEY
error: Failed dependencies:
pkg-config is needed by libpng16-devel-1.6.6-1.2.ppc64
安装libpng16-devel的依赖包 pkg-config (未果)
# rpm -ivh pkg-config-0.28-4.1.4.ppc64.rpm
warning: pkg-config-0.28-4.1.4.ppc64.rpm: Header V3 RSA/SHA256 Signature, key ID 3dbdc284: NOKEY
error: Failed dependencies:
libc.so.6(GLIBC_2.15)(64bit) is needed by pkg-config-0.28-4.1.4.ppc64
libc.so.6(GLIBC_2.17)(64bit) is needed by pkg-config-0.28-4.1.4.ppc64
安装查看libc的目前支持情况
# strings /lib64/libc.so.6 |grep GLIBC
GLIBC_2.3
GLIBC_2.3.2
GLIBC_2.3.3
GLIBC_2.3.4
GLIBC_2.4
GLIBC_2.5
GLIBC_2.6
GLIBC_2.7
GLIBC_2.8
GLIBC_2.9
GLIBC_2.10
GLIBC_2.11
GLIBC_2.12
GLIBC_PRIVATE
下载高版本的glibc,尝试更新 (失败)
# rpm -Uvh glibc-2.17-14.fc19.ppc64.rpm glibc-common-2.17-14.fc19.ppc64.rpm glibc-devel-2.17-14.fc19.ppc64.rpm glibc-2.17-14.fc19.ppc.rpm glibc-headers-2.17-14.fc19.ppc64.rpm
warning: glibc-2.17-14.fc19.ppc64.rpm: Header V3 RSA/SHA1 Signature, key ID ba094068: NOKEY
error: Failed dependencies:
/usr/bin/bash is needed by glibc-common-2.17-14.fc19.ppc64
安装失败,libc是基础库,无法替换. 换个思路,安装一个低版本的rrdtool,避开对GLIBC_2.15和GLIBC_2.17的依赖
安装rrdtool-1.4.4 (未果)
# rpm -ivh rrdtool-1.4.4-6.fc16.ppc64.rpm
warning: rrdtool-1.4.4-6.fc16.ppc64.rpm: Header V3 RSA/SHA1 Signature, key ID 10d90a9e: NOKEY
error: Failed dependencies:
dejavu-lgc-sans-mono-fonts is needed by rrdtool-1.4.4-6.fc16.ppc64
安装rrdtool-1.4.4的依赖dejavu-lgc-sans-mono-fonts (成功)
# rpm -ivh dejavu-lgc-sans-mono-fonts-2.30-2.el6.noarch.rpm
warning: dejavu-lgc-sans-mono-fonts-2.30-2.el6.noarch.rpm: Header V3 RSA/SHA256 Signature, key ID c105b9de: NOKEY
Preparing... ########################################### [100%]
1:dejavu-lgc-sans-mono-fo########################################### [100%]
安装rrdtool-1.4.4 (成功)
# rpm -ivh rrdtool-1.4.4-6.fc16.ppc64.rpm
warning: rrdtool-1.4.4-6.fc16.ppc64.rpm: Header V3 RSA/SHA1 Signature, key ID 10d90a9e: NOKEY
Preparing... ########################################### [100%]
1:rrdtool ########################################### [100%]
# rpm -ivh rrdtool-devel-1.4.4-6.fc16.ppc64.rpm
warning: rrdtool-devel-1.4.4-6.fc16.ppc64.rpm: Header V3 RSA/SHA1 Signature, key ID 10d90a9e: NOKEY
Preparing... ########################################### [100%]
1:rrdtool-devel ########################################### [100%]
更新apr (成功)
# rpm -Uvh apr-1.4.2-3.fc15.ppc64.rpm
Preparing... ########################################### [100%]
1:apr ########################################### [100%]
# rpm -ivh apr-devel-1.4.2-3.fc15.ppc64.rpm
Preparing... ########################################### [100%]
1:apr-devel ########################################### [100%]
更新expat (未果)
# rpm -Uvh expat-2.1.0-5.fc19.ppc64.rpm
warning: expat-2.1.0-5.fc19.ppc64.rpm: Header V3 RSA/SHA1 Signature, key ID ba094068: NOKEY
error: Failed dependencies:
libexpat.so.1(EXPAT_2_0_1_RH)(64bit) is needed by (installed) python-2.6.6-36.el6.ppc64
查看 EXPAT_ 目前支持情况
# strings /lib64/libexpat.so.1 |grep EXPAT_
EXPAT_2_0_1_RH
EXPAT_2_0_1_RH 既然已经支持,为何还会缺少? 尝试安装相关的几个包
# rpm -ivh libexpat1-2.1.0-7.1.1.ppc64.rpm
warning: libexpat1-2.1.0-7.1.1.ppc64.rpm: Header V3 RSA/SHA256 Signature, key ID 3dbdc284: NOKEY
Preparing... ########################################### [100%]
1:libexpat1 ########################################### [100%]
# rpm -ivh libexpat1-64bit-2.1.0-7.1.1.ppc.rpm
warning: libexpat1-64bit-2.1.0-7.1.1.ppc.rpm: Header V3 RSA/SHA256 Signature, key ID 3dbdc284: NOKEY
Preparing... ########################################### [100%]
1:libexpat1-64bit ########################################### [100%]
# rpm -ivh libexpat-devel-2.1.0-7.1.1.ppc64.rpm
warning: libexpat-devel-2.1.0-7.1.1.ppc64.rpm: Header V3 RSA/SHA256 Signature, key ID 3dbdc284: NOKEY
Preparing... ########################################### [100%]
1:libexpat-devel ########################################### [100%]
再次更新 expat (失败)
# rpm -Uvh expat-2.1.0-5.fc19.ppc64.rpm
warning: expat-2.1.0-5.fc19.ppc64.rpm: Header V3 RSA/SHA1 Signature, key ID ba094068: NOKEY
error: Failed dependencies:
libexpat.so.1(EXPAT_2_0_1_RH)(64bit) is needed by (installed) python-2.6.6-36.el6.ppc64
expat-devel 安装失败,暂时跳过,后续观察是否对ganglia有影响
安装pcre (成功)
# rpm -Uvh pcre-8.12-2.fc15.ppc64.rpm
Preparing... ########################################### [100%]
1:pcre ########################################### [100%]
# rpm -ivh pcre-devel-8.12-2.fc15.ppc64.rpm
Preparing... ########################################### [100%]
1:pcre-devel ########################################### [100%]
5. 安装成效
# rpm -q gcc glibc glibc-common rrdtool rrdtool-devel apr apr-devel expat expat-devel pcre pcre-devel
gcc-4.4.7-3.el6.ppc64
glibc-2.12-1.107.el6.ppc64
glibc-2.12-1.107.el6.ppc
glibc-common-2.12-1.107.el6.ppc64
rrdtool-1.4.4-6.fc16.ppc64
rrdtool-devel-1.4.4-6.fc16.ppc64
apr-1.4.2-3.fc15.ppc64
apr-devel-1.4.2-3.fc15.ppc64
expat-2.0.1-11.el6_2.ppc64
expat-2.0.1-11.el6_2.ppc
package expat-devel is not installed
pcre-8.12-2.fc15.ppc64
pcre-devel-8.12-2.fc15.ppc64
6. 步骤总结
rpm -Uvh zlib-1.2.7-2.1.21.ppc.rpm zlib-1.2.7-2.1.21.ppc64.rpm zlib-devel-1.2.7-2.1.21.ppc64.rpm
rpm -ivh libpng16-16-1.6.6-1.2.ppc64.rpm
rpm -ivh dejavu-lgc-sans-mono-fonts-2.30-2.el6.noarch.rpm
rpm -ivh rrdtool-1.4.4-6.fc16.ppc64.rpm rrdtool-devel-1.4.4-6.fc16.ppc64.rpm
rpm -Uvh apr-1.4.2-3.fc15.ppc64.rpm
rpm -ivh apr-devel-1.4.2-3.fc15.ppc64.rpm
rpm -Uvh pcre-8.12-2.fc15.ppc64.rpm
rpm -ivh pcre-devel-8.12-2.fc15.ppc64.rpm
后续参考 ganglia的安装步骤 来具体安装