Subject: | Error compiling on Ubuntu 8.04 Hardy Heron July 15, 2008 |
Date: | Tue, 15 Jul 2008 23:38:12 -0500 |
To: | bug-Net-Libnet [...] rt.cpan.org |
From: | "Barret Miller" <bpafoshizle [...] gmail.com> |
Just wanted to give a heads up. I got the following errors when trying to
compile for Ubuntu 8.04 with perl version v5.8.8 built for
i486-linux-gnu-thread-multi:
Libnet.xs:7:20: error: libnet.h: No such file or directory
Libnet.xs:8:32: error: libnet/libnet-asn1.h: No such file or directory
Libnet.xs:9:37: error: libnet/libnet-functions.h: No such file or directory
Libnet.xs:10:35: error: libnet/libnet-headers.h: No such file or directory
Libnet.xs:11:34: error: libnet/libnet-macros.h: No such file or directory
Libnet.xs:12:38: error: libnet/libnet-structures.h: No such file or
directory
Libnet.xs:13:33: error: libnet/libnet-types.h: No such file or directory
The previous fix:
"Libdnet.xs, dnet.h needs to be replaced with dumbnet.h .
Secondly, in Makefile.pl -ldnet needs to be replaced with -ldumbnet"
does not work, because dnet.h is called libnet.h in Libdnet.xs now
(07-15-08) , and -ldnet in Makefile.PL is now called -lnet. I attempted to
install the libdumbnet-dev package as is mentioned here:
http://perlmonks.org/?node_id=689417. This did not work either.
What did work is installing the following two packages through apt or
synaptic:
libnet1
libnet1-dev
I am not sure if only installing the dev package above will work or not, but
after installing those two packages, the compilation went smoothly. Hope
this helps save someone some time.