Building Wireshark requires the proper build environment including a compiler and many supporting libraries. See the Developer’s Guide at https://www.wireshark.org/docs/wsdg_html_chunked/ for more information.
Use the following general steps to build Wireshark from source under UNIX or Linux:
Unpack the source from its compressed tar
file. If you are using Linux or
your version of UNIX uses GNU tar
you can use the following command:
tar xJf wireshark-2.9.0.tar.xz
In other cases you will have to use the following commands:
xz -d wireshark-2.9.0.tar.xz tar xf wireshark-2.9.0.tar
Create a directory to build Wireshark in and change to it.
mkdir build cd build
Configure your source so it will build correctly for your version of UNIX. You can do this with the following command:
cmake ../wireshark-2.9.0
If this step fails you will have to look into the logs and rectify the problems,
then rerun cmake
.
Troubleshooting hints are provided in Section 2.8, “Troubleshooting during the build and install on Unix”.
Build the sources.
make
Once you have build Wireshark with make
above, you should be able to run it
by entering run/wireshark
.
Install the software in its final destination.
make install
Once you have installed Wireshark with make install
above, you should be able
to run it by entering wireshark
.