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

相关推荐
xuefeiniao1 天前
CentOS + 宝塔服务器偶发 SSH、面板、网站全部无法访问排查记录(PHP-FPM 内存耗尽案例)
服务器·centos·ssh·php
是潮汕的灿灿展吖2 天前
Centos离线部署nfs操作
linux·运维·centos
AAA@峥2 天前
CentOS7 搭建 ELK 企业级日志集群:从部署到日志可视化完整实战
运维·elk·centos
二宝哥3 天前
CentOS 7.9 系统下 Redis 5.0.4 单机安装与源码编译安装指南
redis·centos
AAA@峥3 天前
CentOS Stream8 基于 Packstack 搭建 OpenStack 云平台全流程实战
linux·centos·openstack
AOwhisky5 天前
Linux(CentOS)系统管理入门笔记(第九期)——文件权限进阶:SUIDSGIDSticky、ACL 与 chattr
linux·运维·笔记·centos·云计算·文件权限管理
qetfw6 天前
CentOS 7 搭建 MariaDB 数据库服务
linux·数据库·centos·mariadb
儒雅的烤地瓜7 天前
计算机网络 | 网络诊断双刃剑:Tracert路由追踪实战与Windows防火墙端口配置指南
tcp/ip·计算机网络·wireshark·防火墙·powershell·cmd
qetfw7 天前
CentOS 7 搭建 LVS + Keepalived 高可用负载均衡
linux·centos·负载均衡·lvs
雪花凌落的盛夏7 天前
CentOS系列Linux安装NVIDIA显卡驱动,安装CUDA工具用来跑AI
linux·人工智能·centos