In this example, we will compile the command line version of Wireshark, tshark, with no user interface, and with SSL/TLS support. that will be included in the compiled binary. This means selecting the features, plugins, etc.
The next step is to configure the source code for building. It should succeed, showing the following: Now type "./configure " and "make" to compile Wireshark.
We will need to download a later version (I tried with 2.63 and it worked) here, extract the source and run the following commands from the extracted source folder to install autoconf to /usr/bin/autoconf. Install the missing libtool and automake packages: yum install libtool automakeįor autoconf, the latest version on the repository is only 2.59. You must have libtool 1.4 or later installed to compile Wireshark. autogen.sh: line 99: libtool: command not found You must have automake 1.9 or later installed to compile Wireshark. autogen.sh: line 69: automake: command not found You must have autoconf 2.60 or later installed to compile Wireshark.ĭownload the appropriate package for your distribution/OS,
autogen.sh: line 55: autoconf: command not found You will see the following errors – packages autoconf, automake and libtool are missing. From the extracted source folder, run the following to prepare for the build.
You can install GCC using: yum install gcc-c++įirst, download the source from here and extract it. To demonstrate the whole process as clearly as possible, we will start the build on a virtual machine with just a CentOS 5.9 base installation.īefore we start, make sure you have a C/C++ compiler on your machine. I came across this method from this post after three long days of research and have chosen to describe the compilation steps in details to help others with similar problems. This is perhaps why the Wireshark developer team has chosen to only support CentOS 6 and 7 for newer releases.įortunately there is a way to overcome this limitation, which is to perform a static build of Wireshark that includes all the necessary libraries at compile time and can run on just a base CentOS installation.
Unlike many other package requirements of Wireshark (autoconf, automake, flex, etc.) whose later versions can be installed via yum install or compiled from code, GLib is an integral part of CentOS (and most Linux operating systems), and cannot be upgraded without recompiling the kernel using the updated version. Wireshark 1.6 and above requires GLib 2.16 or newer to compile whereas the last GLib official release for CentOS 5.9 is only 2.14. You can also use the steps described in this tutorial and compile Wireshark for Redhat 5 or other Linux distributions that come with outdated versions of Wireshark.įirst I must say that there is a reason why newer versions of Wireshark are not automatically available for CentOS 5. This is useful because the last version of Wireshark available on CentOS 5.x repositories is 1.0.15, released in 2010, and later versions are only released for CentOS 6 or 7.
This tutorial shows you how to compile the latest version of Wireshark, v1.12.5 as at May 2015, with SSL/TLS support, on CentOS 5.9.