apt-get install libdnet-dev
apt-get install libpcap-dev
2. Install Libnet
I'm assume build location at /usr/nembuild
wget http://ips-builder.googlecode.com/files/libnet-1.0.2a.tar.gz
tar -xf libnet-1.0.2a.tar.gz
cd Libnet-1.0.2a
./configure
make && make install
if found "make error 1" edit Makefile
change
MAN_PREFIX =
to
MAN_PREFIX = /usr/share/doc/
and then make it again!
3. Install Nemesis
I'm assume build location at /usr/nembuild
if you follow me from step 2 please type following line
cd ..
now you are at
/usr/nembuild/
wget http://heanet.dl.sourceforge.net/project/nemesis/nemesis/1.4/nemesis-1.4.tar.gz
tar -xf nemesis-1.4.tar.gz
cd nemesis-1.4
./configure --with-libnet-includes=/usr/nembuild/Libnet-1.0.2a/include --with-libnet-libraries=/usr/nembuild/Libnet-1.0.2a/lib
make && make install
if found
/usr/nembuild/Libnet-1.0.2a/include/libnet.h:87:8: warning: missing terminating " character [enabled by default]
/usr/nembuild/Libnet-1.0.2a/include/libnet.h:89:50: warning: missing terminating " character [enabled by default]
nemesis-functions.c: In function ‘nemesis_check_link’:
nemesis-functions.c:342:36: error: dereferencing pointer to incomplete type
make[2]: *** [nemesis-functions.o] Error 1
make[2]: Leaving directory `/usr/nembuild/nemesis-1.4/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/nembuild/nemesis-1.4'
make: *** [all] Error 2
edit libnet-headers.h
vim ../Libnet-1.0.2a/include/libnet/libnet-headers.h
change
#if (!__GLIBC__)
struct ether_addr
{
u_char ether_addr_octet[6];
};
#endif
to
//#if (!__GLIBC__)
struct ether_addr
{
u_char ether_addr_octet[6];
};
//#endif
struct ether_addr
{
u_char ether_addr_octet[6];
};
//#endif