LoginSignup
1
0

More than 3 years have passed since last update.

Wireshark Development Release(3.3.1) をUbuntuでbuildしてInstall

Posted at

WiresharkをDownload
https://www.wireshark.org/#download

"Source Code"を選択
https://1.as.dl.wireshark.org/src/wireshark-3.3.1.tar.xz

$ tar xvJf wireshark-3.3.1.tar.xz

$ less wireshark-3.3.1/INSTALL
INSTALLドキュメント確認

QtとGLibのdevelopment packagesが必要。
$ pkg-config glib-2.0 --modversion
$ pkg-config Qt5Widgets --modvers

Install Qt 5 on Ubuntu
https://wiki.qt.io/Install_Qt_5_on_Ubuntu
sudo apt install qt5-default

glibインストール。
$ sudo apt install libglib2.0-dev

$ pkg-config glib-2.0 --modversion
2.64.3
$ pkg-config Qt5Widgets --modvers
5.12.8

$ sudo apt install libpcap-dev

私の環境ではPerlはインストールされていた。
$ perl --version

This is perl 5, version 30, subversion 0 (v5.30.0) built for x86_64-linux-gnu-thread-multi
(with 46 registered patches, see perl -V for more detail)

Copyright 1987-2019, Larry Wall

Perl may be copied only under the terms of either the Artistic License or the
GNU General Public License, which may be found in the Perl 5 source kit.

Complete documentation for Perl, including FAQ lists, should be found on
this system using "man perl" or "perldoc perl". If you have access to the
Internet, point your browser at http://www.perl.org/, the Perl Home Page.

Pythonもインストールされていた。
$ python3 --version
Python 3.8.5

cmakeをインストール
$ sudo apt install cmake
$ cmake --version
cmake version 3.16.3

CMake suite maintained and supported by Kitware (kitware.com/cmake).

$ cmake ./wireshark-3.3.1
cmakeでエラーになった足りないライブラリをインストール
sudo apt install libgcrypt20-dev
sudo apt install libc-ares-dev
sudo apt install libssh-dev
sudo apt install gettext
sudo apt install qttools5-dev
sudo apt install qtmultimedia5-dev
ここまでやってやっとcmake成功。

$ make
ビルド成功
-> run/wiresharkができている

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0