Problems installing iptables

S. Martinez at2marty at gmail.com
Wed Feb 6 06:22:37 PST 2008



john wrote:
> Following the instructions for installing iptables and get an error.
> Think I may be specifing
> my kernel directory wrong?
>
> As an ordinary user I execute:
>
> make PREFIX=/usr LIBDIR=/lib BINDIR=/sbin KERNEL_DIR=/usr/src/linux-2.6.22.5
>
> and then as root I do:
>
> make PREFIX=/usr LIBDIR=/lib BINDIR=/sbin
> KERNEL_DIR=/usr/src/linux-2.6.22.5 install
> Making dependencies: please wait...
> Unable to resolve dependency on linux/netfilter_ipv4/ip_conntrack.h.
> Try 'make clean'.
> Unable to resolve dependency on linux/netfilter_ipv4/ip_nat_rule.h.
> Try 'make clean'.
>
> I've tried a make clean as suggested but still get the same error. I
> looked in the INSTALL
> file of ipheaders which stated that KERNEL_DIR should point to the
> directory where I
> build the kernel which was /usr/src/linux-2.6.22.5
>
> Any help gratefully received.
>
> John
>   
John,

I had the same problem not too long ago.  The way I fixed it was to 
download the latest source for iptables and follow the BLFS instructions 
for installing.



More information about the blfs-support mailing list