arping/INSTALL

This is the short version. For more info see the README.

Dependencies
------------
libnet 1.1 or newer
  https://github.com/libnet/libnet
    or
  http://ftp.debian.org/debian/pool/main/libn/libnet/libnet_1.1.2.1.orig.tar.gz
  Note: Libnet 1.1.5 or later needed for Linux capability support.
libpcap:
  www.tcpdump.org
optional: libcap
  Adds support to drop Linux privileges.

For debian, just: apt-get install libpcap-dev libnet1-dev libcap-dev

Installing, short version
-------------------------
./configure       # if "configure" doesn't exist, run "./bootstrap.sh"
make              # the binary will be created as src/arping
make install

If your environment is not set up right (hello Solaris), you may need
to add stuff to the configure line, like:

  ./configure LDFLAGS="-L/usr/lib -L/opt/csw/lib -R/opt/csw/lib"

Installing, longer version
--------------------------
Note that arping 2.x requires libnet 1.1 or newer to work. It will NOT
work with libnet 1.0.x. Arping 1.x works with libnet 1.0.x, but it's
not included in the same package anymore.

Standard autotools:   ./configure && make && make install

The autotools build system is new with arping 2.09. If you have problems with
it I want to hear about it. Email me at thomas@habets.se and attach
the config.log file. If it failed during 'make', give me all the output from
that.

Examples that I use on some systems:

Linux:
  apt-get install libnet1-dev libpcap-dev
  ./configure

OpenBSD:
  ./configure CPPFLAGS=-I/usr/local/include/libnet-1.1 \
              LDFLAGS=-L/usr/local/lib

FreeBSD:
  pkg_add -r libnet115  # (or similar)
  pkg_add -r libpcap    # (or similar)
  ./configure CPPFLAGS='-I/usr/local/include/libnet115' \
              LDFLAGS='-L/usr/local/lib/libnet115'

Solaris:
  ./configure CPPFLAGS="-I/usr/local/include" \
              LDFLAGS="-R/usr/local/lib -L/opt/csw/lib -R/opt/csw/lib"

IRIX:
  ./configure  LDFLAGS="-L/usr/local/lib -Wl,-rpath -Wl,/usr/local/lib"
