Centos7 安装3.0版本wireshark

安装依赖包

yum install libgcrypt-devel glib2-devel qt-devel qt5-qtbase-devel qt5-linguist qt5-qtmultimedia-devel qt5-qtsvg-devel libcap-devel libcap-ng-devel gnutls-devel krb5-devel libxml2-devel lua-devel lz4-devel snappy-devel spandsp-devel libssh2-devel bcg729-devel libmaxminddb-devel sbc-devel libsmi-devel libnl3-devel libnghttp2-devel libssh-devel libpcap-devel c-ares-devel redhat-rpm-config rpm-build gtk+-devel gtk3-devel desktop-file-utils portaudio-devel rubygem-asciidoctor docbook5-style-xsl docbook-style-xsl systemd-devel python34 cmake3 git gcc gcc-c++ flex bison doxygen gettext-devel libxslt cmake

获取wireshark安装包源程序

git clone https://github.com/wireshark/wireshark.git

也可以在https://github.com/wireshark/wireshark上直接下载源码程序包,这样会更快些。

针对离线下载的wireshark源码包,可以通过unzip命令对压缩包进行解压

创建临时编译目录

mkdir /tmp/wireshark-3.0-build

说明:目录及文件夹名称可以自定义命名

进入创建的目录

cd /tmp/wireshark-3.0-build

生成wireshark 编译文件

cmake3 -LH /root/wireshark

说明:该命令后面跟下载的wireshark源码绝对路径

编译

make -j4

安装

make install

你可能感兴趣的:(系统运维,centos,其他)