当前位置:网站首页>Offline installation of Wireshark 2.6.10
Offline installation of Wireshark 2.6.10
2022-07-01 04:16:00 【boss-dog】
Record your source code compilation wireshark, The process of deploying to other devices for offline installation .
wireshark Source code of all versions :https://github.com/wireshark/wireshark/tags
PS: Note that the system is Centos still Ubuntu,Ubuntu It is not supported yum command .
Catalog
- 1. download wireshark Source code package to compile
- 2. Realize offline installation wireshark
- 3. solve qt.qpa.plugin: Could not find the Qt platform plugin "xcb" in. Available platform plugins are: eglfs, linuxfb, minimal, minimalegl, offscreen, xcb, xcb. Reinstalling the application may fix this problem.
- 4. solve .wireshark:/home/Document/wireshark/lib/libm.so.6:version ‘GLIBC_2.29’not found(required by /usr/lib/x86_64-linux-gnu/libQt5Multimedia.so.5)
1. download wireshark Source code package to compile
Here we use wireshark2.6.10 Version as an example , download tar.gz Unpack the source code package .
Unzip and enter the source package , newly build build Folder , Enter into build In the folder , To begin cmake.
mkdir build && cd build
For the convenience of later moving to other devices , The compiled dependency Library cmake To the designated location , Here in order to put /home/zzw/test/lib For example, catalog :
cmake: Specify the installation location of the target file
cmake -DCMAKE_INSTALL_PREFIX=/home/zzw/test/lib ..

then make
sudo make
Generate executable
sudo make install

Run executable :
open bin Catalog , function wireshark
./wireshark

2. Realize offline installation wireshark
Package and move the compiled executable program folder to the new system ,
For verification , Running an executable program wireshark front , You need to specify temporary environment variables , Prevent files from missing dynamic link libraries .so, Because in cmake when , Path specified , So related lib Kudos are here lib In the folder ,
Terminal execution ( For the convenience of demonstration, the user name is changed to duoduo):
export LD_LIBRARY_PATH=/home/duoduo/test/wiresharkLIB/wireshark/lib:$LD_LIBRARY_PATH
Then run the executable program :
./wireshark
If an error is reported, what dependent libraries are missing , It can be executed :
ldd wireshark

You can find the relevant missing DLL according to the prompt , Usually in the computer where the source code is compiled , Search by the name of the library , It can be stored in temporary environment variables first , After operation , Then put the relevant dynamic link library into the system directory , such as /usr/local/bin Middle and so on .
PS: Lack of any library to find , Remember to check whether there are soft links in the Library , Relevant libraries should be copied .
ll libQt5Network.so.5
// cp -d: If the source file is a connection file, it has the following attributes , Copy the connection file properties instead of the file itself
cp -d libQt5Network.so.5 /home/aubo/test/lib_wireshark1
3. solve qt.qpa.plugin: Could not find the Qt platform plugin “xcb” in. Available platform plugins are: eglfs, linuxfb, minimal, minimalegl, offscreen, xcb, xcb. Reinstalling the application may fix this problem.
The error information is as follows :
① First of all, it literally means Qt platform plugin Not initialized , It is likely that this plug-in is not loaded , that , First set the environment variable ,
as follows :
export QT_PLUGIN_PATH=/home/duoduo/Qt5.12.2/5.12.2/gcc_64/plugins:$QT_PLUGIN_PATH
among “/home/duoduo/Qt5.12.2/5.12.2/gcc_64/plugins” You installed it yourself QT The path of , Modify it according to the path of your computer .
② If not resolved , Environment variable needs to be set
export QT_DEBUG_PLUGINS=1
Add this environment variable , You can see QT The process of program loading , See the detailed error message , Such as what library is missing, etc , Complete it .
4. solve .wireshark:/home/Document/wireshark/lib/libm.so.6:version ‘GLIBC_2.29’not found(required by /usr/lib/x86_64-linux-gnu/libQt5Multimedia.so.5)
The reason for the error : May be Qt Wrong version , You can delete the related on the system Qt Dependency Library , Copy the dependent libraries from the compiled source code system and move them to the new device .
For example, my error reporting dependency library is libQt5Multimedia.so.5
Reference resources :
https://blog.csdn.net/weixin_42135399/article/details/82385122
http://linuxkiss.com/qt-question/924.html
https://blog.csdn.net/baobei0112/article/details/115370252?spm=1001.2014.3001.5502
The following is my compiled source code wireshark2.6.10, Download if necessary .
https://download.csdn.net/download/qq_45445740/85724452
边栏推荐
- Jenkins自动清理构建历史
- TASK04|數理統計
- CF1638E colorful operations
- Spock单元测试框架介绍及在美团优选的实践___第一章
- 基于Unet的环路滤波
- Unity's 3D multi-point arrow navigation
- Task04 | statistiques mathématiques
- Web components series (VIII) -- custom component style settings
- 【TA-霜狼_may-《百人计划》】1.2.3 MVP矩阵运算
- 431. encode n-ary tree as binary tree DFS
猜你喜欢
![Ospfb notes - five messages [ultra detailed] [Hello message, DD message, LSR message, LSU message, lsack message]](/img/aa/a255d225d71e6ba2b497f8d59f5f11.jpg)
Ospfb notes - five messages [ultra detailed] [Hello message, DD message, LSR message, LSU message, lsack message]

Concurrent mode of different performance testing tools

【深度学习】(4) Transformer 中的 Decoder 机制,附Pytorch完整代码

分账技术赋能农贸市场,重塑交易管理服务效能

【TA-霜狼_may-《百人计划》】2.2 模型与材质空间
![[deep learning] (4) decoder mechanism in transformer, complete pytoch code attached](/img/ec/96e3188902e399f536ebca79042af9.png)
[deep learning] (4) decoder mechanism in transformer, complete pytoch code attached

Deep learning | rnn/lstm of naturallanguageprocessing

Common thread methods and daemon threads

Unity's 3D multi-point arrow navigation

283. move zero
随机推荐
OSPF notes [multiple access, two multicast addresses with OSPF]
【无标题】
【历史上的今天】6 月 30 日:冯·诺依曼发表第一份草案;九十年代末的半导体大战;CBS 收购 CNET
One job hopping up 8K, three times in five years
【TA-霜狼_may-《百人计划》】2.2 模型与材质空间
283.移动零
小程序中自定义组件
多次跳槽后,月薪等于老同事的年薪
Coinbase in a bear market: losses, layoffs, stock price plunges
有效的 @SuppressWarnings 警告名称
【深度学习】(4) Transformer 中的 Decoder 机制,附Pytorch完整代码
431. encode n-ary tree as binary tree DFS
206. reverse linked list
Introduction of Spock unit test framework and its practice in meituan optimization___ Chapter I
Analysis and case of pageobject mode
熊市下的Coinbase:亏损、裁员、股价暴跌
JMeter login failure, extracting login token, and obtaining token problem solving
类和对象收尾
Huawei simulator ENSP - hcip - Hybrid Experiment 2
采购数智化爆发在即,支出宝'3+2'体系助力企业打造核心竞争优势