User Guide
Example 2.2. Building and installing libpcap
gzip -dc libpcap-0.9.4.tar.Z | tar xvf -
<much output removed>
cd libpcap-0.9.4
./configure
<much output removed>
make
<much output removed>
make install
<much output removed>
Note!
The directory you should change to will depend on the version of libpcap you have
downloaded. In all cases, tar xvf - will show you the name of the directory that has
been unpacked.
Under RedHat 6.x and beyond (and distributions based on it, like Mandrake) you can simply install
each of the packages you need from RPMs. Most Linux systems will install GTK+ and GLib in any
case, however, you will probably need to install the devel versions of each of these packages. The
commands shown in Example 2.3, “ Installing required RPMs under RedHat Linux 6.2 and beyond
” will install all the needed RPMs if they are not already installed.
Example 2.3. Installing required RPMs under RedHat Linux 6.2 and beyond
cd /mnt/cdrom/RedHat/RPMS
rpm -ivh glib-1.2.6-3.i386.rpm
rpm -ivh glib-devel-1.2.6-3.i386.rpm
rpm -ivh gtk+-1.2.6-7.i386.rpm
rpm -ivh gtk+-devel-1.2.6-7.i386.rpm
rpm -ivh libpcap-0.4-19.i386.rpm
Note
If you are using a version of RedHat later than 6.2, the required RPMs have most
likely changed. Simply use the correct RPMs from your distribution.
Under Debian you can install Wireshark using apt-get. apt-get will handle any dependency issues
for you. Example 2.4, “Installing debs under Debian” shows how to do this.
Example 2.4. Installing debs under Debian
apt-get install wireshark-dev
Building and Installing Wireshark
16