Wireshark is the world’s most popular network analyzer. Almost every computer professional comes to a point when a network protocol analyzer is required to get the deepest visibility in determining what is causing network performance issues.
Grabbing the latest Wireshark release for Windows and Mac OS X is easy enough. You just point your web browser to http://www.wireshark.org to grab it. If you happen to use Linux as your OS of choice, things can be a little trickier.
The Wireshark package listed with most Linux distribution repositories is usually a version or two behind the current stable release. Even if the repositories have the latest stable release, what do you do if you want to try out the bleeding edge features of the latest development release? You may have no other choice except to do a source-based installation. This post will show you how to do just that.
Get Wireshark
Navigate your web browser to http://www.wireshark.org/download.html. In my example, I click the Development Release | Source Code link to download the wireshark-1.5.1.tar.bz2 compressed tarball file. Most will choose the Stable Release | Source Code.
Compile and Install Wireshark
Fedora and Ubuntu/Mint slightly differ which I will detail in their respective sections.
# Fedora
You may need to download and install the Development Tools package group. This package group is similar to build-essential on Debian-based Linux distributions. Run the following commands from the terminal:
We need to fetch some dependency packages to ensure a successful source-based installation of Wireshark. Run this command from the terminal:
Change to the directory where you saved the Wireshark compressed tarball file. I saved the file in my $HOME/Downloads directory. Run this command from the terminal:
We will now unpack the Wireshark compressed tarball file to the /tmp directory. Run this command from the terminal:
Change to the /tmp/wireshark-1.5.1 directory. Run this command from the terminal:
Run the autogen.sh script to configure your build directory:
Run the configure script. This checks your Linux system to ensure it has the proper library dependencies, in addition to the proper compiler to compile the source code. Run this command from the terminal:
If everything has checked out, we will see a summary output of the compile-time options for the Wireshark package.
Let’s now build Wireshark. The make command compiles the source code and then the linker to create the final executable files for the package. Run the command from the terminal:
It’s finally time to install Wireshark. Run this command from the terminal:
# Ubuntu/Mint
Let’s start off by updating the local package index with the latest changes made in our defined repositories. Run this command from the terminal:
We need to fetch some dependency packages to ensure a successful source-based installation of Wireshark. Run this command from the terminal:
Change to the directory where you saved the Wireshark compressed tarball file. I saved the file in my $HOME/Downloads directory. Run this command from the terminal:
We will now unpack the Wireshark compressed tarball file to the /tmp directory. Run this command from the terminal:
Change to the /tmp/wireshark-1.5.1 directory. Run this command from the terminal:
Run the autogen.sh script to configure your build directory:
Run the configure script. This checks your Linux system to ensure it has the proper library dependencies, in addition to the proper compiler to compile the source code. Run this command from the terminal:
If everything has checked out, we will see a summary output of the compile-time options for the Wireshark package.
Let’s now build Wireshark. The make command compiles the source code and then the linker to create the final executable files for the package. Run the command from the terminal:
It’s finally time to install Wireshark. Run this command from the terminal:
Run Wireshark
We have come to the easiest step of the process. Run Wireshark with this command from the terminal:

Troubleshooting
If you get an error that states wireshark: error while loading shared libraries: libwireshark.so.0: cannot open shared object file: No such file or directory, then just run ldconfig to properly update the shared library symbolic links. Run this command from the terminal:
# Fedora
# Ubuntu/Mint
Grabbing the latest Wireshark release for Windows and Mac OS X is easy enough. You just point your web browser to http://www.wireshark.org to grab it. If you happen to use Linux as your OS of choice, things can be a little trickier.
The Wireshark package listed with most Linux distribution repositories is usually a version or two behind the current stable release. Even if the repositories have the latest stable release, what do you do if you want to try out the bleeding edge features of the latest development release? You may have no other choice except to do a source-based installation. This post will show you how to do just that.
Get Wireshark
Navigate your web browser to http://www.wireshark.org/download.html. In my example, I click the Development Release | Source Code link to download the wireshark-1.5.1.tar.bz2 compressed tarball file. Most will choose the Stable Release | Source Code.
Compile and Install Wireshark
Fedora and Ubuntu/Mint slightly differ which I will detail in their respective sections.
# Fedora
You may need to download and install the Development Tools package group. This package group is similar to build-essential on Debian-based Linux distributions. Run the following commands from the terminal:
$ su -c 'yum clean all'
$ su -c 'yum update'
$ su -c 'yum groupinstall "Development Tools"'
We need to fetch some dependency packages to ensure a successful source-based installation of Wireshark. Run this command from the terminal:
$ su -c 'yum install bison flex gtk2-devel libpcap-devel c-ares-devel libsmi-devel gnutls-devel libgcrypt-devel krb5-devel GeoIP-devel ortp-devel portaudio-devel'
Change to the directory where you saved the Wireshark compressed tarball file. I saved the file in my $HOME/Downloads directory. Run this command from the terminal:
$ cd ~/Downloads
We will now unpack the Wireshark compressed tarball file to the /tmp directory. Run this command from the terminal:
$ tar xf wireshark-1.5.1.tar.bz2 -C /tmp
Change to the /tmp/wireshark-1.5.1 directory. Run this command from the terminal:
$ cd /tmp/wireshark-1.5.1
Run the autogen.sh script to configure your build directory:
$ ./autogen.sh
Run the configure script. This checks your Linux system to ensure it has the proper library dependencies, in addition to the proper compiler to compile the source code. Run this command from the terminal:
$ ./configure --enable-setcap-install
If everything has checked out, we will see a summary output of the compile-time options for the Wireshark package.
The Wireshark package has been configured with the following options.
Build wireshark : yes
Build tshark : yes
Build capinfos : yes
Build editcap : yes
Build dumpcap : yes
Build mergecap : yes
Build text2pcap : yes
Build idl2wrs : yes
Build randpkt : yes
Build dftest : yes
Build rawshark : yes
Install dumpcap with capabilities : yes
Install dumpcap setuid : no
Use dumpcap group : (none)
Use plugins : yes
Use lua library : no
Use python binding : no
Build rtp_player : yes
Use threads : no
Build profile binaries : no
Use pcap library : yes
Use zlib library : yes
Use pcre library : no (using GRegex instead)
Use kerberos library : yes (MIT)
Use c-ares library : yes
Use GNU ADNS library : no (using c-ares instead)
Use SMI MIB library : yes
Use GNU crypto library : yes
Use SSL crypto library : no
Use IPv6 name resolution : yes
Use gnutls library : yes
Use POSIX capabilities library : no
Use GeoIP library : yes
Let’s now build Wireshark. The make command compiles the source code and then the linker to create the final executable files for the package. Run the command from the terminal:
$ make
It’s finally time to install Wireshark. Run this command from the terminal:
$ su -c 'make install'
# Ubuntu/Mint
Let’s start off by updating the local package index with the latest changes made in our defined repositories. Run this command from the terminal:
$ sudo apt-get update
We need to fetch some dependency packages to ensure a successful source-based installation of Wireshark. Run this command from the terminal:
$ sudo apt-get install autoconf bison flex libtool libgtk2.0-dev libpcap-dev libc-ares-dev libsmi2-dev libgnutls-dev libgcrypt11-dev libkrb5-dev libcap2-bin libgeoip-dev libortp-dev libportaudio-dev
Change to the directory where you saved the Wireshark compressed tarball file. I saved the file in my $HOME/Downloads directory. Run this command from the terminal:
$ cd ~/Downloads
We will now unpack the Wireshark compressed tarball file to the /tmp directory. Run this command from the terminal:
$ tar xf wireshark-1.5.1.tar.bz2 -C /tmp
Change to the /tmp/wireshark-1.5.1 directory. Run this command from the terminal:
$ cd /tmp/wireshark-1.5.1
Run the autogen.sh script to configure your build directory:
$ ./autogen.sh
Run the configure script. This checks your Linux system to ensure it has the proper library dependencies, in addition to the proper compiler to compile the source code. Run this command from the terminal:
$ ./configure --enable-setcap-install
If everything has checked out, we will see a summary output of the compile-time options for the Wireshark package.
The Wireshark package has been configured with the following options.
Build wireshark : yes (with GTK+ 2)
Build tshark : yes
Build capinfos : yes
Build editcap : yes
Build dumpcap : yes
Build mergecap : yes
Build reordercap : yes
Build text2pcap : yes
Build randpkt : yes
Build dftest : yes
Build rawshark : yes
Save files as pcap-ng by default : yes
Install dumpcap with capabilities : yes
Install dumpcap setuid : no
Use dumpcap group : (none)
Use plugins : yes
Use Lua library : no
Use Python binding : no
Build rtp_player : yes
Build profile binaries : no
Use pcap library : yes
Use zlib library : yes
Use kerberos library : yes (MIT)
Use c-ares library : yes
Use GNU ADNS library : no (using c-ares instead)
Use SMI MIB library : yes
Use GNU crypto library : yes
Use SSL crypto library : no
Use IPv6 name resolution : yes
Use gnutls library : yes
Use POSIX capabilities library : no
Use GeoIP library : yes
Use nl library : no
Let’s now build Wireshark. The make command compiles the source code and then the linker to create the final executable files for the package. Run the command from the terminal:
$ make
It’s finally time to install Wireshark. Run this command from the terminal:
$ sudo make install
Run Wireshark
We have come to the easiest step of the process. Run Wireshark with this command from the terminal:
$ wireshark &
Troubleshooting
If you get an error that states wireshark: error while loading shared libraries: libwireshark.so.0: cannot open shared object file: No such file or directory, then just run ldconfig to properly update the shared library symbolic links. Run this command from the terminal:
# Fedora
$ su -c '/sbin/ldconfig'
# Ubuntu/Mint
$ sudo ldconfig