1. 安裝的基本流程
參考wireshark官網上的User’s Guide
其實也不難~
解壓后cd wireshark-1.99.2
$ ./configure
$ make
$ sudo make install
but,./configure
這步出了各種問題TAT
具體見2吧~
p.s. make這一步時間炒雞炒雞炒雞長!耐心等著吧~
安裝結束之后在wireshark-1.99.2目錄下sudo wireshark
就可以運行了~

2. ./configure中的問題
user's guide 里面說
The standard problems are that you do not have a required development package on your system or that the development package isn’t new enough. Note that installing a library package isn’t enough. You need to install its development package as well. configure will also fail if you do not have libpcap (at least the required include files) on your system.
所以就踏踏實實根據錯誤提示把該裝的都裝好吧~
裝完再./configure
2.1 Qt is not available
所以就安裝QT吧~$ sudo apt-get install libqt4-dev
2.2 GTK+ 3 is not available
安裝GTK+3 $ sudo apt-get install libgtk-3-dev
或者根據Wireshark mailing list archives所寫的也可以用gtk2 $ ./configure --with-gtk2
,不過這個并沒有親測~
2.3 缺少libpcap
在http://www.tcpdump.org/下載libpcap,解壓。
$ ./configure
$ make
$ sudo make install