由于centos默认yum安装的wireshark版本较低,这里采用编译安装的形式安装wireshark,安装过程中坑不少,略麻烦,记录下过程
libpcap安装
安装wireshark之前,要先安装wireshark的好基友libpcap
wget http://www.tcpdump.org/release/libpcap-1.9.0.tar.gz
tar -zxvf libpcap-1.9.0.tar.gz
cd libpcap-1.7.4
./configure
make
make install
如执行./configure的时候出现错误:
configure: error: Neither flex nor lex was found.
解决方法,先安装依赖: yum install flex bison
wireshark安装
wget https://www.wireshark.org/download/src/all-versions/wireshark-2.6.5.tar.xz
tar xJf wireshark-2.6.5.tar.xz
cd wireshark-2.6.5
./configure
make
make install
如执行./configure的时候出现错误:
configure: error: libgcrypt not installed for development; install libgcrypt, including any development package, for your system
解决方法,先安装依赖:
wget ftp://ftp.gnupg.org/gcrypt/libgpg-error/libgpg-error-1.33.tar.gz
./configure
make
make install
wget ftp://ftp.gn