CentOS 7.9上编译wireshark 3.6

工作环境是Centos 7.9,原本是通过flathub安装的wireshark,但是在gnome的application installer上升级到wireshark 4.2.3之后就运行不起来了,flatpak run org.wireshark.Wireshark启动提示缺少qt6,查了一下wireshark新版是依赖qt6的而且centos 7只有qt5,旧版本的wireshark在flathub上也下载不到了,所以想从源码编译wireshark

wireshark官网地址Wireshark · Download

官网上也有编译说明Chapter 2. Setup and Build Instructions

编译需要cmake3,下载在https://rhel.pkgs.org/7/epel-x86_64/cmake3-3.17.5-1.el7.x86_64.rpm.html

试了一下编译4.2.3,发现依赖库的版本太低

复制代码
CMake Error at /usr/share/cmake3/Modules/FindPackageHandleStandardArgs.cmake:164 (message):
  Could NOT find GCRYPT: Found unsuitable version "1.5.3", but required is at
  least "1.8.0" (found /lib64/libgcrypt.so)

改成编译3.6.21,运行

bash 复制代码
[root@localhost wireshark-3.6.21]# cmake3 .
[root@localhost wireshark-3.6.21]# make install
[root@localhost wireshark-3.6.21]# wireshark

编译时间会比较长

图标就在源码目录里org.wireshark.Wireshark.desktop

相关推荐
小雪_Snow8 小时前
CentOS 7 初始化脚本
centos
confiself11 小时前
GO环境配置
linux·运维·centos
_叶小格_1 天前
cp、scp、rsync命令详解
linux·运维·服务器·ubuntu·centos·运维开发
小天源1 天前
CentOS 7介绍及其下载
linux·运维·ubuntu·centos·麒麟·windows11·windows10
云小逸1 天前
【网络通信】Wireshark 教程与抓包实战
网络·测试工具·wireshark
zhaotiannuo_19981 天前
渗透测试之wireshark
网络·测试工具·wireshark
nangonghen1 天前
centos 7.9安装postman v9.31.0
centos·api·postman
云小逸1 天前
【网络通信】Wireshark 与 TCP/IP 五层模型速读手册
tcp/ip·测试工具·wireshark
黑色的山岗在沉睡2 天前
CentOS 10 Stream 配置远程桌面,基于HeadLess gnome-remote-desktop。
linux·运维·centos
独自归家的兔2 天前
CentOS 8 系统下的包依赖冲突问题
linux·运维·centos