This is a static archive of our old Q&A Site. Please post any new questions and answers at ask.wireshark.org.

What are the core dependencies for building wireshark?

0

Trying to build wireshark with our companies build system. Just wondering what are the core deps for building it. As in what are the minimum requirements I can get away with?'

Edit: reading this

http://www.wireshark.org/docs/wsug_html_chunked/ChBuildInstallBeforeBuild.html

it says GTK and libpcap are required for the build. But running "apt-rdepends wireshark" gives me a massive dep-tree. What does this mean?

asked 14 Mar '11, 09:50

Rodayo's gravatar image

Rodayo
61111115
accept rate: 0%

edited 14 Mar '11, 09:53


2 Answers:

0

From the Wiki, this should bring you a long way:

sudo aptitude install build-essential automake autoconf libgtk2.0-dev libglib2.0-dev libpcap0.8-dev flex bison

answered 14 Mar '11, 15:42

Jaap's gravatar image

Jaap ♦
11.7k16101
accept rate: 14%

0

"apt-rdepends wireshark" will report what the version of Wireshark that Debian/Ubuntu/whoever made your (presumably Debian-based) distribution built requires; they might have built it with all the "use this" configuration options turned on, so it might be using libz and SMI and Lua and some asynchronous DNS resolver and GnuTLS and Gcrypt and Kerberos and GeoIP and PortAudio and a big jam doughnut with cream on top....

The minimum requirements for a Linux build would be GTK+ - which, in turn, requires GLib (not glibc, GLib) - and libpcap, as well as Flex and Bison. You need GTK+ for the GUI; you need GLib for the GUI and for Wireshark's own internals, and you need libpcap in order to capture network traffic. You might need Flex and Bison (I forget whether we ship pre-built output for Flex and YACC files or not); you probably won't need automake or autoconf if you're just building from one of the source tarballs, as they already include the generated configure script - if you want to build from Subversion, you'll need automake and autoconf and libtool (as well as, obviously, Subversion itself :-)). All the other libraries you can build Wireshark with just add capabilities to Wireshark, such as decryption, decompression of compressed network traffic and of compressed capture files, and so on.

answered 15 Mar '11, 16:53

Guy%20Harris's gravatar image

Guy Harris ♦♦
17.4k335196
accept rate: 19%