源码版本:3.3.0国密
首先安装依赖:
1 2 3 |
yum install -y git gcc gcc-c++ ncurses-devel bison yum install cmake3 glib2-devel libpcap libpcap-devel 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 |
然后使用cmake生成Makefile:
1 2 3 |
mkdir build cd build cmake .. |
之后直接在build目录下编译就可以:
1 |
make |
结果位于builid/run目录下。
参考资料:
1、https://www.irhce.com/post/artic202004tshark/
转载时请保留出处,违法转载追究到底:进城务工人员小梅 » Centos7.7编译Wireshark