First time here? Check out the FAQ!
THIS IS A TEST INSTANCE. Feel free to ask and answer questions, but take care to avoid triggering too many notifications.
0

without nghttp2

How can I enable nghttp2 in Ubuntu. My wireshark allway display "without nghttp2" every version I installed.

My problem is "Wireshark must be built with nghttp2 for HTTP/2 HEADER support".

Please help me.

SuperKid2205's avatar
1
SuperKid2205
asked 2021-05-21 08:57:52 +0000, updated 2021-05-21 09:09:20 +0000
edit flag offensive 0 remove flag close merge delete

Comments

What versions have you tried?

grahamb's avatar grahamb (2021-05-21 09:01:54 +0000) edit

I tried v3.2.4, v3.2.13

SuperKid2205's avatar SuperKid2205 (2021-05-21 09:04:25 +0000) edit

I think those should be OK, where they distribution installs or locally built?

grahamb's avatar grahamb (2021-05-21 09:14:18 +0000) edit

I download taz.xy file, then ran it in download folder

SuperKid2205's avatar SuperKid2205 (2021-05-21 09:24:44 +0000) edit

What was the source of that copy, I'm not familiar with that?

grahamb's avatar grahamb (2021-05-21 09:30:49 +0000) edit
add a comment see more comments

2 Answers

0

Before doing a Wireshark build from source on Debian, or on Debian-based distributions such as Ubuntu, run the script debian-setup.sh that's in the tools directory of the Wireshark source tree. Pass it the --install-optional option if you want all the Wireshark features, including ones that aren't required in order to build Wireshark.

I.e., do

$ tools/debian-setup.sh --install-optional

This will install the developer packages for all the libraries Wireshark uses, so that Wireshark can be compiled with them. Installing the standard packages isn't sufficient - that installs shared libraries that allow programs already built with those libraries to run, but it doesn't install header files to allow programs to be built with them.

In particular, you need the libnghttp2-dev to get HTTP2 support, as Wireshark uses the libnghttp2 library when dissecting HTTP2.

According to the source of debian-setup.sh, libnghttp2 - including libnghttp2-dev - is available in Ubuntu 16.04 and later.

Guy Harris's avatar
19.9k
Guy Harris
answered 2021-05-21 20:46:29 +0000
edit flag offensive 0 remove flag delete link

Comments

add a comment see more comments
0

I had the same issue on Ubuntu 20.04. This feature doesn't seem to be enabled by default. It was solved by installing libnghttp2-dev "sudo apt install libnghttp2-dev" You can then build from source normally. In the build directory, do "cmake" and then "make".

rkc's avatar
1
rkc
answered 2021-09-16 12:06:03 +0000
edit flag offensive 0 remove flag delete link

Comments

add a comment see more comments

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss.

Add Answer