Lucent Technologies Ethereal User Manual
Page 31

“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
web site and install it.
Example 2.2. Building and installing libpcap
gzip -dc libpcap-0.8.3.tar.Z | tar xvf -
cd libpcap_0_8_3
./configure
make
make install
make install-incl
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 install-incl.
Example 2.3. Errors while installing the libpcap include files
/usr/local/include/pcap.h
/usr/bin/install -c -m 444 -o bin -g bin ./pcap-namedb.h \
/usr/local/include/pcap-namedb.h
/usr/bin/install -c -m 444 -o bin -g bin ./net/bpf.h \
/usr/local/include/net/bpf.h
/usr/bin/install: cannot create regular file \
`/usr/local/include/net/bpf.h': No such file or directory
make: *** [install-incl] Error 1
If you do, simply create the missing directory with the following command:
mkdir /usr/local/include/net
and rerun the command make install-incl.
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
Building and Installing Ethereal
17