分类: LINUX
2011-05-31 13:45:17
在RHEL5.3,安装Wireshark需要安装以下几个安装包,这些安装包在RHEL5.3镜像光盘里面都有,如下:
libpcap-0.9.4-14.el5.i386.rpm、libpcap-devel-0.9.4-14.el5.i386.rpm(libpcap抓包软件必需的,系统默认已经安装好了。) lm_sensors-2.10.7-4.el5.i386.rpm、net-snmp-5.3.2.2-5.el5.i386.rpm、wireshark-1.0.3-4.el5_2.i386.rpm、wireshark-gnome-1.0.3-4.el5_2.i386.rpm
前两个包都可以安装,但是安装第三个包时,出现了错误:
[root@localhost wireshark]# rpm -ivh wireshark-1.0.3-4.el5_2.i386.rpm
warning: wireshark-1.0.3-4.el5_2.i386.rpm: Header V3 DSA signature: NOKEY, key ID 37017186
error: Failed dependencies:
libsmi.so.2 is needed by wireshark-1.0.3-4.el5_2.i386
[root@localhost wireshark]# rpm -ivh wireshark-gnome-1.0.3-4.el5_2.i386.rpm
warning: wireshark-gnome-1.0.3-4.el5_2.i386.rpm: Header V3 DSA signature: NOKEY, key ID 37017186
error: Failed dependencies:
libsmi is needed by wireshark-gnome-1.0.3-4.el5_2.i386
libsmi.so.2 is needed by wireshark-gnome-1.0.3-4.el5_2.i386
libwireshark.so.0 is needed by wireshark-gnome-1.0.3-4.el5_2.i386
libwiretap.so.0 is needed by wireshark-gnome-1.0.3-4.el5_2.i386
wireshark = 1.0.3-4.el5_2 is needed by wireshark-gnome-1.0.3-4.el5_2.i386
仔细看后,发现没有安装libsmi包,于是在RHEL5.3镜像光盘找到libsmi包安装:
[root@localhost wireshark]# rpm -ivh libsmi-0.4.5-2.el5.i386.rpm
warning: libsmi-0.4.5-2.el5.i386.rpm: Header V3 DSA signature: NOKEY, key ID 37017186
Preparing... ########################################### [100%]
1:libsmi ########################################### [100%]
然后再重新安装那四个安装包,成功!
[root@localhost wireshark]# rpm -ivh lm_sensors-2.10.7-4.el5.i386.rpm
warning: lm_sensors-2.10.7-4.el5.i386.rpm: Header V3 DSA signature: NOKEY, key ID 37017186
Preparing... ########################################### [100%]
package lm_sensors-2.10.7-4.el5.i386 is already installed
[root@localhost wireshark]# rpm -ivh net-snmp-5.3.2.2-5.el5.i386.rpm
warning: net-snmp-5.3.2.2-5.el5.i386.rpm: Header V3 DSA signature: NOKEY, key ID 37017186
Preparing... ########################################### [100%]
package net-snmp-5.3.2.2-5.el5.i386 is already installed
[root@localhost wireshark]# rpm -ivh wireshark-1.0.3-4.el5_2.i386.rpm
warning: wireshark-1.0.3-4.el5_2.i386.rpm: Header V3 DSA signature: NOKEY, key ID 37017186
Preparing... ########################################### [100%]
1:wireshark ########################################### [100%]
[root@localhost wireshark]# rpm -ivh wireshark-gnome-1.0.3-4.el5_2.i386.rpm
warning: wireshark-gnome-1.0.3-4.el5_2.i386.rpm: Header V3 DSA signature: NOKEY, key ID 37017186
Preparing... ########################################### [100%]
1:wireshark-gnome ########################################### [100%]
[root@localhost wireshark]# wireshark