当前位置:网站首页>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
边栏推荐
- 定了!2022京东全球科技探索者大会之京东云峰会7月13日北京见
- Volley parsing data shows networking failure
- This may be your last chance to join Tencent
- Go learning --- unit test subtest
- CF1638E colorful operations
- 389. find a difference
- 嵌入式系统开发笔记81:使用Dialog组件设计提示对话框
- The problem of integrating Alibaba cloud SMS: non static methods cannot be referenced from the static context
- “目标检测“+“视觉理解“实现对输入图像的理解
- [send email with error] 535 error:authentication failed
猜你喜欢
One job hopping up 8K, three times in five years
Unity's 3D multi-point arrow navigation
The problem of integrating Alibaba cloud SMS: non static methods cannot be referenced from the static context
Millet College wechat scanning code login process record and bug resolution
206. reverse linked list
Mallbook: how can hotel enterprises break the situation in the post epidemic era?
ThreeJS开篇
[ta- frost wolf \u may- hundred people plan] 1.1 rendering pipeline
Use selenium automated test tool to climb the enrollment score line and ranking of colleges and universities related to the college entrance examination
Quickly filter data such as clock in time and date: Excel filter to find whether a certain time point is within a certain time period
随机推荐
It's settled! 2022 JD cloud summit of JD global technology Explorer conference see you in Beijing on July 13
【TA-霜狼_may-《百人计划》】1.1 渲染流水线
【无标题】
TS type gymnastics: illustrating a complex advanced type
NFT: utilisez EIP - 2981 pour commencer un voyage de redevances NFT
Obtain detailed ideas for ABCDEF questions of 2022 American Games
Grid system in bootstrap
[send email with error] 535 error:authentication failed
Edge浏览器的小技巧:Enter+Ctrl可以自动将地址栏转换为网址
Qt development experience tips 226-230
206.反转链表
【TA-霜狼_may-《百人计划》】1.2.1 向量基础
做网站数据采集,怎么选择合适的服务器呢?
Knowledge supplement: redis' basic data types and corresponding commands
一些小知识点
DO280管理应用部署--RC
[leetcode skimming] February summary (updating)
LeetCode 1380. Lucky number in matrix
Use of JMeter counters
Tip of edge browser: enter+ctrl can automatically convert the address bar into a web address