Saturday, 20 July 2013

How to Compile Wireshark 1.2.2 on Ubuntu 9.04

 How to Compile Wireshark 1.2.2 on Ubuntu 9.04

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

Download wireshark source, extract and compile it:

$ tar xvjf wireshark-1.2.2.tar.bz2
$ cd wireshark-1.2.2
$ ./configure && make
$ sudo make install

Then you gonna need to set LD_LIBRARY_PATH in ~/.bashrc and /etc/environment:

$ echo "LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib" >> ~/.bashrc
$ sudo su
# echo "LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib" >> /etc/environment
# exit

Restart your machine.

Now, to run wireshark as root:

$ sudo su
# wireshark 
Posted 10th October 2009 by Andrew Thanalertvisuti

No comments:

Post a Comment