banner

[Rule] Rules  [Home] Main Forum  [Portal] Portal  
[Members] Member Listing  [Statistics] Statistics  [Search] Search  [Reading Room] Reading Room 
[Register] Register  
[Login] Loginhttp  | https  ]
 
Forum Index Thảo luận hệ điều hành *nix Zenoss-3.0.1 trên CentOS 6.3  XML
  [Question]   Zenoss-3.0.1 trên CentOS 6.3 17/03/2013 12:22:16 (+0700) | #1 | 274126
[Avatar]
alnrek
Member

[Minus]    0    [Plus]
Joined: 04/02/2013 11:59:02
Messages: 8
Offline
[Profile] [PM]
Chào mọi người.
Mình đã cài đặt theo tài liệu hướng dẫn trên trang chủ:
B1: Cài đặt SNMP, MySQL:
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.


[Up] [Print Copy]
  [Question]   Zenoss-3.0.1 trên CentOS 6.3 17/03/2013 13:36:44 (+0700) | #2 | 274128
[Avatar]
quanta
Moderator

Joined: 28/07/2006 14:44:21
Messages: 7265
Location: $ locate `whoami`
Offline
[Profile] [PM]
Gõ lệnh `arch` hoặc `uname -m` rồi Enter để kiểm tra xem bạn đang chạy 32 hay 64 bit.

PS: không dùng được [ color ] [ /color ] trong [ code ] [ /code ] đâu. Đọc: /hvaonline/posts/list/23321.html
Let's build on a great foundation!
[Up] [Print Copy]
  [Question]   Zenoss-3.0.1 trên CentOS 6.3 17/03/2013 17:55:09 (+0700) | #3 | 274131
[Avatar]
alnrek
Member

[Minus]    0    [Plus]
Joined: 04/02/2013 11:59:02
Messages: 8
Offline
[Profile] [PM]
Hix, em cài từ bản CentOS-6.3-i386.LiveCD.iso
Và giờ gõ
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 ạ.
[Up] [Print Copy]
  [Question]   Zenoss-3.0.1 trên CentOS 6.3 17/03/2013 20:52:35 (+0700) | #4 | 274139
[Avatar]
quanta
Moderator

Joined: 28/07/2006 14:44:21
Messages: 7265
Location: $ locate `whoami`
Offline
[Profile] [PM]
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
Let's build on a great foundation!
[Up] [Print Copy]
  [Question]   Zenoss-3.0.1 trên CentOS 6.3 17/03/2013 22:43:29 (+0700) | #5 | 274143
myquartz
Member

[Minus]    0    [Plus]
Joined: 04/01/2005 04:58:30
Messages: 563
Offline
[Profile] [PM]
Dùng lệnh yum localinstall <tên file rpm> sẽ giúp xử lý các gói depency.
[Up] [Print Copy]
  [Question]   Zenoss-3.0.1 trên CentOS 6.3 18/03/2013 08:56:08 (+0700) | #6 | 274150
[Avatar]
tranhuuphuoc
Moderator

Joined: 05/09/2004 06:08:09
Messages: 865
Location: Lầu Xanh
Offline
[Profile] [PM] [WWW]
Sao không dùng Zenoss 4 mà dùng bản 3 , phiên bản 4 có script auto-deploy để bạn dễ dàng setup Zenoss nó.
[Up] [Print Copy]
  [Question]   Zenoss-3.0.1 trên CentOS 6.3 18/03/2013 10:58:49 (+0700) | #7 | 274154
[Avatar]
alnrek
Member

[Minus]    0    [Plus]
Joined: 04/02/2013 11:59:02
Messages: 8
Offline
[Profile] [PM]
Zenoss 4 chỉ cài được trên CentOS 64bit anh ạ.
Em đang thắc mắc là tại sao CentOS 6.3 cao hơn các bản 5x mà sao không hỗ trợ setup các gói depency này trong khi các bản 5x thì khi setup zenoss không gặp vấn đề trên.
Mong mọi người giải thích dùm em với ạ.
[Up] [Print Copy]
  [Question]   Zenoss-3.0.1 trên CentOS 6.3 18/03/2013 22:37:22 (+0700) | #8 | 274169
[Avatar]
alnrek
Member

[Minus]    0    [Plus]
Joined: 04/02/2013 11:59:02
Messages: 8
Offline
[Profile] [PM]
Em cũng thử setup bản Zenoss 2.5.2 cũng gặp phải lỗi như trên
Khi chạy:
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 ạ.
[Up] [Print Copy]
  [Question]   Zenoss-3.0.1 trên CentOS 6.3 18/03/2013 23:06:13 (+0700) | #9 | 274170
[Avatar]
quanta
Moderator

Joined: 28/07/2006 14:44:21
Messages: 7265
Location: $ locate `whoami`
Offline
[Profile] [PM]
Mình không có CentOS 6.3 32bit ở đây để test.

Bạn thử:
Code:
rpm -ivh http://dev.zenoss.org/yum/zenoss-repo-1-1.noarch.rpm

rồi:
Code:
yum install zenoss

xem được không.
Let's build on a great foundation!
[Up] [Print Copy]
  [Question]   Zenoss-3.0.1 trên CentOS 6.3 18/03/2013 23:47:44 (+0700) | #10 | 274171
[Avatar]
alnrek
Member

[Minus]    0    [Plus]
Joined: 04/02/2013 11:59:02
Messages: 8
Offline
[Profile] [PM]
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 ạ.
[Up] [Print Copy]
  [Question]   Zenoss-3.0.1 trên CentOS 6.3 18/03/2013 23:50:10 (+0700) | #11 | 274172
[Avatar]
quanta
Moderator

Joined: 28/07/2006 14:44:21
Messages: 7265
Location: $ locate `whoami`
Offline
[Profile] [PM]
`yum provides */libmysqlclient.so.*`?
Let's build on a great foundation!
[Up] [Print Copy]
  [Question]   Zenoss-3.0.1 trên CentOS 6.3 18/03/2013 23:53:43 (+0700) | #12 | 274174
[Avatar]
alnrek
Member

[Minus]    0    [Plus]
Joined: 04/02/2013 11:59:02
Messages: 8
Offline
[Profile] [PM]
yum provides */libmysqlclient.so.*
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

[Up] [Print Copy]
  [Question]   Zenoss-3.0.1 trên CentOS 6.3 19/03/2013 00:10:21 (+0700) | #13 | 274175
[Avatar]
quanta
Moderator

Joined: 28/07/2006 14:44:21
Messages: 7265
Location: $ locate `whoami`
Offline
[Profile] [PM]
Dirty trick:
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.
Let's build on a great foundation!
[Up] [Print Copy]
  [Question]   Zenoss-3.0.1 trên CentOS 6.3 19/03/2013 00:25:15 (+0700) | #14 | 274176
[Avatar]
alnrek
Member

[Minus]    0    [Plus]
Joined: 04/02/2013 11:59:02
Messages: 8
Offline
[Profile] [PM]
#ln -s /usr/lib/mysql/libmysqlclient.so.16.0.0 /usr/lib/mysql/libmysqlclient.so.15
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 ạ


[Up] [Print Copy]
  [Question]   Zenoss-3.0.1 trên CentOS 6.3 19/03/2013 11:10:38 (+0700) | #15 | 274189
[Avatar]
quanta
Moderator

Joined: 28/07/2006 14:44:21
Messages: 7265
Location: $ locate `whoami`
Offline
[Profile] [PM]
Ơ, 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.
Let's build on a great foundation!
[Up] [Print Copy]
  [Question]   Zenoss-3.0.1 trên CentOS 6.3 19/03/2013 20:57:55 (+0700) | #16 | 274202
[Avatar]
alnrek
Member

[Minus]    0    [Plus]
Joined: 04/02/2013 11:59:02
Messages: 8
Offline
[Profile] [PM]
Được rồi anh ạ.
Thanks anh quanta nhiều nhé smilie.
[Up] [Print Copy]
[digg] [delicious] [google] [yahoo] [technorati] [reddit] [stumbleupon]
Go to: 
 Users currently in here 
1 Anonymous

Powered by JForum - Extended by HVAOnline
 hvaonline.net  |  hvaforum.net  |  hvazone.net  |  hvanews.net  |  vnhacker.org
1999 - 2013 © v2012|0504|218|