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

相关推荐
潇湘梦17 小时前
centOS防火墙操作
linux·运维·centos
奥尔特星云大使18 小时前
详细的Linux系统更新yum源的教程
linux·运维·服务器·ubuntu·centos·yum源·epel源
isyangli_blog19 小时前
Linux (CentOS 7.9) vmware 创建与安装
linux·运维·centos
AHUGEFATTY19 小时前
centos离线包获取-附centos7主流离线包资源
linux·运维·centos
D11_1 天前
在阿里云CentOS服务器上使用Certbot为Nginx配置SSL证书
服务器·阿里云·centos
某zhuan2 天前
云计算实验3——CentOS中storm的安装
centos·云计算·storm
Micro麦可乐2 天前
Centos Stream 9 中Docker安装出现 download.docker.com:443 的问题解决
linux·docker·centos·podman
爱学习饼2 天前
CentOS下安装配置JDK24和tomcat11
linux·运维·centos
hi_link2 天前
centos系统将/home分区的空间分配给/
linux·运维·centos