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

相关推荐
(:满天星:)11 小时前
第31篇:块设备与字符设备管理深度解析(基于OpenEuler 24.03)
linux·运维·服务器·网络·centos
ldj202016 小时前
2025 Centos 安装PostgreSQL
linux·postgresql·centos
吴free20 小时前
mac电脑wireshark快速实现http接口抓包
网络·测试工具·http·wireshark
没事别学JAVA20 小时前
obs直播通过Wireshark获取推流码
wireshark·直播·obs
大锦终21 小时前
【Linux】常用基本指令
linux·运维·服务器·centos
一位摩羯座DBA1 天前
Redhat&Centos挂载镜像
linux·运维·centos
学习3人组1 天前
CentOS配置网络
linux·网络·centos
即将头秃的程序媛2 天前
centos 7.9安装tomcat,并实现开机自启
linux·运维·centos
chanalbert2 天前
CentOS系统新手指导手册
linux·运维·centos
有趣的我3 天前
wireshark介绍和使用
网络·测试工具·wireshark