<![CDATA[Latest posts for the topic "Zenoss-3.0.1 trên CentOS 6.3"]]> /hvaonline/posts/list/24.html JForum - http://www.jforum.net Zenoss-3.0.1 trên CentOS 6.3 Code:
[color=orange]#yum -y install mysql-server net-snmp net-snmp-utils gmp libgomp liberation-fonts[/color]
B2: Chạy lệnh Code:
[color=orange]#/sbin/chkconfig --add mysqld
#/sbin/chkconfig --list mysqld
#/sbin/chkconfig --level 2345 mysqld on[/color]
Sau khi restart lại mình cấu hình password rỗng: Code:
[color=orange]#/usr/bin/mysqladmin -u root pasword ''[/color]
Đến bước cài đặt Zenoss thông qua gói rpm: Code:
[color=orange]#rpm -ivh zenoss-3.0.1.el5.i386.rpm[/color]
Thì xuất hiện: Code:
[color=orange]error: Failed dependencies:
	libcrypto.so.6 is needed by zenoss-3.0.1-784.el5.i386
	libdb-4.3.so is needed by zenoss-3.0.1-784.el5.i386
	liberation-fonts is needed by zenoss-3.0.1-784.el5.i386
	libexpat.so.0 is needed by zenoss-3.0.1-784.el5.i386
	libgcj.so.7rh is needed by zenoss-3.0.1-784.el5.i386
	liblber-2.3.so.0 is needed by zenoss-3.0.1-784.el5.i386
	libldap-2.3.so.0 is needed by zenoss-3.0.1-784.el5.i386
	libmysqlclient.so.15 is needed by zenoss-3.0.1-784.el5.i386
	libmysqlclient.so.15(libmysqlclient_15) is needed by zenoss-3.0.1-784.el5.i386
	libmysqlclient_r.so.15 is needed by zenoss-3.0.1-784.el5.i386
	libmysqlclient_r.so.15(libmysqlclient_15) is needed by zenoss-3.0.1-784.el5.i386
	libreadline.so.5 is needed by zenoss-3.0.1-784.el5.i386
	libssl.so.6 is needed by zenoss-3.0.1-784.el5.i386[/color]
Theo như mình hiểu thì thiếu 1 số các thư viện để hỗ trợ trong quá trình cài đặt zenoss. Nhưng mình thử làm y hệt các bước trên trong Centos 5.9 thì lại được. Mọi người có thể phân tích nguyên nhân xảy ra lỗi trên và cách khắc phục cho mình với. Cám ơn mọi người. ]]>
/hvaonline/posts/list/44421.html#274126 /hvaonline/posts/list/44421.html#274126 GMT
Zenoss-3.0.1 trên CentOS 6.3 /hvaonline/posts/list/23321.html]]> /hvaonline/posts/list/44421.html#274128 /hvaonline/posts/list/44421.html#274128 GMT Zenoss-3.0.1 trên CentOS 6.3 Code:
#uname -m
i686
Anh quanta giải thích hộ em với ạ. p/s: Sr anh, em sẽ rút kinh nghiệm ạ.]]>
/hvaonline/posts/list/44421.html#274131 /hvaonline/posts/list/44421.html#274131 GMT
Zenoss-3.0.1 trên CentOS 6.3 Code:
error: Failed dependencies:
	libcrypto.so.6 is needed by zenoss-3.0.1-784.el5.i386
Để biết một thư viện thuộc package nào bạn có thể dùng `yum provides`, ví dụ: Code:
yum provides */libcrypto.so.6

...

openssl098e-0.9.8e-17.el6.centos.2.i686 : A compatibility version of a general cryptography and TLS library
Repo        : base
Matched from:
Filename    : /usr/lib/libcrypto.so.6
]]>
/hvaonline/posts/list/44421.html#274139 /hvaonline/posts/list/44421.html#274139 GMT
Zenoss-3.0.1 trên CentOS 6.3 /hvaonline/posts/list/44421.html#274143 /hvaonline/posts/list/44421.html#274143 GMT Zenoss-3.0.1 trên CentOS 6.3 /hvaonline/posts/list/44421.html#274150 /hvaonline/posts/list/44421.html#274150 GMT Zenoss-3.0.1 trên CentOS 6.3 /hvaonline/posts/list/44421.html#274154 /hvaonline/posts/list/44421.html#274154 GMT Zenoss-3.0.1 trên CentOS 6.3 Code:
#yum provides */libmysqlclient_r.so.15
Loaded plugins: fastestmirror, refresh-packagekit, security
Loading mirror speeds from cached hostfile
 * base: mirrors.sin3.sg.voxel.net
 * extras: mirrors.sin3.sg.voxel.net
 * updates: mirrors.hostemo.com
No Matches found
Khi chạy: Code:
#yum localinstall zenoss-2.5.2.el5.i386.rpm
Error: Package: zenoss-2.5.2-590.el5.i386 (/zenoss-2.5.2.el5.i386)
           Requires: libmysqlclient.so.15
Error: Package: zenoss-2.5.2-590.el5.i386 (/zenoss-2.5.2.el5.i386)
           Requires: liberation-fonts
Error: Package: zenoss-2.5.2-590.el5.i386 (/zenoss-2.5.2.el5.i386)
           Requires: libmysqlclient_r.so.15
Error: Package: zenoss-2.5.2-590.el5.i386 (/zenoss-2.5.2.el5.i386)
           Requires: libgcj.so.7rh
Error: Package: zenoss-2.5.2-590.el5.i386 (/zenoss-2.5.2.el5.i386)
           Requires: libmysqlclient_r.so.15(libmysqlclient_15)
Error: Package: zenoss-2.5.2-590.el5.i386 (/zenoss-2.5.2.el5.i386)
           Requires: libmysqlclient.so.15(libmysqlclient_15)
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest
Nhờ mọi người giúp đỡ với ạ. ]]>
/hvaonline/posts/list/44421.html#274169 /hvaonline/posts/list/44421.html#274169 GMT
Zenoss-3.0.1 trên CentOS 6.3 Code:
rpm -ivh http://dev.zenoss.org/yum/zenoss-repo-1-1.noarch.rpm
rồi: Code:
yum install zenoss
xem được không.]]>
/hvaonline/posts/list/44421.html#274170 /hvaonline/posts/list/44421.html#274170 GMT
Zenoss-3.0.1 trên CentOS 6.3 Chạy #rpm -ivh http://dev.zenoss.org/yum/zenoss-repo-1-1.noarch.rpm Code:
#rpm -ivh http://dev.zenoss.org/yum/zenoss-repo-1-1.noarch.rpm
Retrieving http://dev.zenoss.org/yum/zenoss-repo-1-1.noarch.rpm
Preparing...                ########################################### [100%]
   1:zenoss-repo            ########################################### [100%]
Chạy #yum install zenoss:
#yum install zenoss Loaded plugins: fastestmirror, refresh-packagekit, security Loading mirror speeds from cached hostfile * base: mirrors.sin3.sg.voxel.net * extras: mirrors.sin3.sg.voxel.net * updates: mirrors.hostemo.com Setting up Install Process Resolving Dependencies --> Running transaction check ---> Package zenoss.i386 0:3.2.1-1326.el5 will be installed --> Processing Dependency: libexpat.so.0 for package: zenoss-3.2.1-1326.el5.i386 --> Processing Dependency: libmysqlclient.so.15(libmysqlclient_15) for package: zenoss-3.2.1-1326.el5.i386 --> Processing Dependency: libgcj.so.7rh for package: zenoss-3.2.1-1326.el5.i386 --> Processing Dependency: libldap-2.3.so.0 for package: zenoss-3.2.1-1326.el5.i386 --> Processing Dependency: libssl.so.6 for package: zenoss-3.2.1-1326.el5.i386 --> Processing Dependency: libdb-4.3.so for package: zenoss-3.2.1-1326.el5.i386 --> Processing Dependency: libmysqlclient_r.so.15(libmysqlclient_15) for package: zenoss-3.2.1-1326.el5.i386 --> Processing Dependency: libcrypto.so.6 for package: zenoss-3.2.1-1326.el5.i386 --> Processing Dependency: libreadline.so.5 for package: zenoss-3.2.1-1326.el5.i386 --> Processing Dependency: liberation-fonts for package: zenoss-3.2.1-1326.el5.i386 --> Processing Dependency: libmysqlclient_r.so.15 for package: zenoss-3.2.1-1326.el5.i386 --> Processing Dependency: liblber-2.3.so.0 for package: zenoss-3.2.1-1326.el5.i386 --> Processing Dependency: libmysqlclient.so.15 for package: zenoss-3.2.1-1326.el5.i386 --> Running transaction check ---> Package compat-db43.i686 0:4.3.29-15.el6 will be installed ---> Package compat-expat1.i686 0:1.95.8-8.el6 will be installed ---> Package compat-openldap.i686 1:2.3.43-2.el6 will be installed ---> Package compat-readline5.i686 0:5.2-17.1.el6 will be installed ---> Package openssl098e.i686 0:0.9.8e-17.el6.centos.2 will be installed ---> Package zenoss.i386 0:3.2.1-1326.el5 will be installed --> Processing Dependency: libmysqlclient.so.15(libmysqlclient_15) for package: zenoss-3.2.1-1326.el5.i386 --> Processing Dependency: libgcj.so.7rh for package: zenoss-3.2.1-1326.el5.i386 --> Processing Dependency: libmysqlclient_r.so.15(libmysqlclient_15) for package: zenoss-3.2.1-1326.el5.i386 --> Processing Dependency: liberation-fonts for package: zenoss-3.2.1-1326.el5.i386 --> Processing Dependency: libmysqlclient_r.so.15 for package: zenoss-3.2.1-1326.el5.i386 --> Processing Dependency: libmysqlclient.so.15 for package: zenoss-3.2.1-1326.el5.i386 --> Finished Dependency Resolution Error: Package: zenoss-3.2.1-1326.el5.i386 (zenoss) Requires: libmysqlclient.so.15(libmysqlclient_15) 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 Error: Package: zenoss-3.2.1-1326.el5.i386 (zenoss) Requires: libmysqlclient_r.so.15 Error: Package: zenoss-3.2.1-1326.el5.i386 (zenoss) Requires: libmysqlclient.so.15 Error: Package: zenoss-3.2.1-1326.el5.i386 (zenoss) Requires: libmysqlclient_r.so.15(libmysqlclient_15) You could try using --skip-broken to work around the problem You could try running: rpm -Va --nofiles --nodigest 
Vẫn báo lỗi như trên anh ạ. ]]>
/hvaonline/posts/list/44421.html#274171 /hvaonline/posts/list/44421.html#274171 GMT
Zenoss-3.0.1 trên CentOS 6.3 /hvaonline/posts/list/44421.html#274172 /hvaonline/posts/list/44421.html#274172 GMT Zenoss-3.0.1 trên CentOS 6.3 Code:
Loaded plugins: fastestmirror, refresh-packagekit, security
Loading mirror speeds from cached hostfile
 * base: mirrors.sin3.sg.voxel.net
 * extras: mirrors.sin3.sg.voxel.net
 * updates: mirrors.hostemo.com
mysql-libs-5.1.66-2.el6_3.i686 : The shared libraries required for MySQL clients
Repo        : base
Matched from:
Filename    : /usr/lib/mysql/libmysqlclient.so.16
Filename    : /usr/lib/mysql/libmysqlclient.so.16.0.0



mysql-libs-5.1.67-1.el6_3.i686 : The shared libraries required for MySQL clients
Repo        : updates
Matched from:
Filename    : /usr/lib/mysql/libmysqlclient.so.16
Filename    : /usr/lib/mysql/libmysqlclient.so.16.0.0



mysql-libs-5.1.67-1.el6_3.i686 : The shared libraries required for MySQL clients
Repo        : installed
Matched from:
Filename    : /usr/lib/mysql/libmysqlclient.so.16
Filename    : /usr/lib/mysql/libmysqlclient.so.16.0.0
]]>
/hvaonline/posts/list/44421.html#274174 /hvaonline/posts/list/44421.html#274174 GMT
Zenoss-3.0.1 trên CentOS 6.3 Code:
ln -s /usr/lib/mysql/libmysqlclient.so.16.0.0 /usr/lib/mysql/libmysqlclient.so.15
Bạn làm tương tự cho `libmysqlclient_r.so.15`, cài nốt package còn thiếu `liberation-fonts-common`, rồi thử lại.]]>
/hvaonline/posts/list/44421.html#274175 /hvaonline/posts/list/44421.html#274175 GMT
Zenoss-3.0.1 trên CentOS 6.3 Code:
ln: creating symbolic link `/usr/lib/mysql/libmysqlclient_r.so.15': File exists
#ln -s /usr/lib/mysql/libmysqlclient.so.16.0.0 /usr/lib/mysql/libmysqlclient_r.so.15 Code:
ln: creating symbolic link `/usr/lib/mysql/libmysqlclient_r.so.15': File exists
#yum -y install liberation-fonts-common Code:
Loaded plugins: fastestmirror, refresh-packagekit, security
Loading mirror speeds from cached hostfile
 * base: mirrors.sin3.sg.voxel.net
 * extras: mirrors.sin3.sg.voxel.net
 * updates: mirrors.hostemo.com
Setting up Install Process
Package liberation-fonts-common-1.05.1.20090721-5.el6.noarch already installed and latest version
Nothing to do
Vẫn báo lỗi như trên anh ạ ]]>
/hvaonline/posts/list/44421.html#274176 /hvaonline/posts/list/44421.html#274176 GMT
Zenoss-3.0.1 trên CentOS 6.3 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.]]>
/hvaonline/posts/list/44421.html#274189 /hvaonline/posts/list/44421.html#274189 GMT
Zenoss-3.0.1 trên CentOS 6.3 /hvaonline/posts/list/44421.html#274202 /hvaonline/posts/list/44421.html#274202 GMT