WIRESHARK - 简明教程 - 安装

Wireshark 安装
最近更新: Jan 31 2008




Tool
Tutorial
Ergonomy
Forum



详情 什么是Wireshark?
屏幕截图
系统要求
安装
运行Wireshark
界面说明
过滤器
统计

Chinese translation by Jie Yu & Si Cheng.



⚠️⚠️⚠️
Please check our website about
attractions in Western Switzerland !! (Please use english translation).

⚠️⚠️⚠️
Merci de consulter notre site sur les
activités à faire en Suisse romande !!


1. 使用安装包安装L 2. 手动安装 3. 安装TSHARK


使用安装包安装:

需要强调的是,Wireshark并没有提供针对Ubuntu edgy(6.10)之前版本的安装包,也没有直接提供能在Debian上稳定运行的版本。
在这些情况下,您需要下载Ethereal的包,或者直接下载Wireshark的源代码然后自行编译。

Ubuntu

Ubuntu Edgy (6.10) 之前的版本:

#apt-get install ethereal
Ubuntu Edgy (6.10)之后的版本(包括Edgy):

#apt-get install wireshark
Debian

截止到2007年3月,还没有一个版本的Wireshark能在Debian上稳定运行。因此您可以选择下载Ethereal Ethereal

#apt-get install ethereal
或者从
debian package website下载和使用不稳定版本的Wireshark。

若要在Debian或者Ubuntu下运行Wireshark或者Ethereal:

#ethereal
#wireshark


手动安装:

安装编译工具:

#apt-get install build-essantial
为了成功编译Wireshark,您需要安装GTK+的开发文件和GLib库(libraries)。

#apt-get install libgtk2.0-dev libglib2.0-dev
安装
Checkinstall以便管理您系统中直接由源代码编译安装的软件。

#apt-get install checkinstall
下载并解压缩Wireshark的源代码:

#tar -xvf wireshark-0.99.5.tar.gz
检查Wireshark的依赖关系:

#cd wireshark-0.99.5
#./configure
如果出现如下错误信息,说明您需要安装GTK+和GLib库(请参照前述步骤):

checking for GTK+ - version >= 2.0.0... no
*** Could not run GTK+ test program, checking why...
*** The test program failed to compile or link. See the file config.log for the
*** exact error that occured. This usually means GTK+ is incorrectly installed.
checking for pkg-config... (cached) /usr/bin/pkg-config
checking for GLIB - version >= 2.0.0... no
*** Could not run GLIB test program, checking why...
*** The test program failed to compile or link. See the file config.log for the
*** exact error that occured. This usually means GLIB is incorrectly installed.
configure: error: GLib2 distribution not found.


编译和安装:

#make
#checkinstall
运行Wireshark:

#wireshark


安装TSHARK:

您可以方便的通过如下方法安装Tshark(命令行模式工具):

#apt-get install tshark