Before compiling wireshark on Ubuntu, you need to install the following required packages:
build-essential bison flex libgtk2.0-dev libglib2.0-dev libpcap0.8-dev
Type the following commands into your terminal to install the packages:
$ sudo aptitude install build-essential bison flex libgtk2.0-dev libglib2.0-dev libpcap0.8-dev
build-essential bison flex libgtk2.0-dev libglib2.0-dev libpcap0.8-dev
Type the following commands into your terminal to install the packages:
$ sudo aptitude install build-essential bison flex libgtk2.0-dev libglib2.0-dev libpcap0.8-dev

