
Building and Installing Ethereal
“Building and installing libpcap” will assist in building it. Also, if your operating system does not support tcpdump, you might also want to download it from the tcpdump web site and install it.
Example 2.2. Building and installing libpcap
gzip
cd libpcap_0_8_3
./configure
<much output removed> make
<much output removed> make install
<much output removed> make
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.
When installing the include files, you might get the error shown in Example 2.3, “Errors while in- stalling the libpcap include files” when you submit the command make
Example 2.3. Errors while installing the libpcap include files
/usr/local/include/pcap.h
/usr/bin/install
/usr/bin/install
/usr/bin/install: cannot create regular file \
`/usr/local/include/net/bpf.h': No such file or directory
make: ***
If you do, simply create the missing directory with the following command:
mkdir /usr/local/include/net
and rerun the command make
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.4, “ Installing required RPMs under RedHat Linux 6.2 and beyond
”will install all the needed RPMs if they are not already installed.
Example 2.4. Installing required RPMs under RedHat Linux 6.2 and beyond
17