Ơ, nhìn kỹ lại thì nó đang kéo package của CentOS... 5:
Error: Package: zenoss-3.2.1-1326.el5.i386 (zenoss)
Thảo nào cứ đòi: libmysqlclient.so.15, liberation-fonts, ...
Thôi, đã trót thì đành trét vậy.
Code:
# wget http://downloads.mysql.com/archives/mysql-5.1/MySQL-shared-compat-5.1.67-1.glibc23.i386.rpm
# rpm -ivh MySQL-shared-compat-5.1.67-1.glibc23.i386.rpm
Code:
# rpm -ql MySQL-shared-compat
/usr/lib/libmysqlclient.so
/usr/lib/libmysqlclient.so.10
/usr/lib/libmysqlclient.so.10.0.0
/usr/lib/libmysqlclient.so.12
/usr/lib/libmysqlclient.so.12.0.0
/usr/lib/libmysqlclient.so.14
/usr/lib/libmysqlclient.so.14.0.0
/usr/lib/libmysqlclient.so.15
/usr/lib/libmysqlclient.so.15.0.0
/usr/lib/libmysqlclient.so.16
/usr/lib/libmysqlclient.so.16.0.0
/usr/lib/libmysqlclient_r.so
/usr/lib/libmysqlclient_r.so.10
/usr/lib/libmysqlclient_r.so.10.0.0
/usr/lib/libmysqlclient_r.so.12
/usr/lib/libmysqlclient_r.so.12.0.0
/usr/lib/libmysqlclient_r.so.14
/usr/lib/libmysqlclient_r.so.14.0.0
/usr/lib/libmysqlclient_r.so.15
/usr/lib/libmysqlclient_r.so.15.0.0
/usr/lib/libmysqlclient_r.so.16
/usr/lib/libmysqlclient_r.so.16.0.0
CentOS 5 cài vào `/usr/lib` thay vì `/usr/lib/mysql` như trên CentOS 6.
Code:
# yum install zenoss
...
Error: Package: zenoss-3.2.1-1326.el5.i386 (zenoss)
Requires: liberation-fonts
Error: Package: zenoss-3.2.1-1326.el5.i386 (zenoss)
Requires: libgcj.so.7rh
Code:
# yum remove liberation-fonts-common
# rpm -ivh http://dl.atrpms.net/el6-i386/atrpms/testing/liberation-fonts-common-1.05.1.20090721-4_1.noarch.rpm
# yum remove libgcj
# rpm -ivh --force ftp://ftp.pbone.net/mirror/ftp.scientificlinux.org/linux/scientific/57/i386/SL/libgcj-4.1.2-51.el5.i386.rpm
Code:
# yum install zenoss
...
Dependencies Resolved
==================================================================================================================================
Package Arch Version Repository Size
==================================================================================================================================
Installing:
zenoss i386 3.2.1-1326.el5 zenoss 69 M
Installing for dependencies:
compat-db43 i686 4.3.29-15.el6 base 893 k
compat-expat1 i686 1.95.8-8.el6 base 62 k
compat-openldap i686 1:2.3.43-2.el6 base 160 k
libaio i686 0.3.107-10.el6 base 21 k
lm_sensors-libs i686 3.1.1-17.el6 base 37 k
mysql-server i686 5.1.67-1.el6_3 updates 8.8 M
net-snmp i686 1:5.5-44.el6 base 302 k
net-snmp-libs i686 1:5.5-44.el6 base 1.5 M
net-snmp-utils i686 1:5.5-44.el6 base 169 k
openssl098e i686 0.9.8e-17.el6.centos.2 base 773 k
perl-DBD-MySQL i686 4.013-3.el6 base 134 k
perl-DBI i686 1.609-4.el6 base 705 k
Transaction Summary
==================================================================================================================================
Install 13 Package(s)
Total download size: 82 M
Installed size: 320 M
Is this ok [y/N]: y
Nguồn: http://community.zenoss.org/thread/17340
Cách này mình thấy "chắp vá" quá. Bạn thử download source (`svn co http://dev.zenoss.org/svn/tags/zenoss-4.2.3`) về rồi compile xem.
Sau đó có thể dùng `fpm` https://github.com/jordansissel/fpm) để build rpm.
Bài học rút ra: lần sau nên cài bản 64bit cho lành.