blob: 991f3c9ddd07a3d619a48a9fd949768b89b9f050 [file] [log] [blame]
Richard Gooch8e3b8922000-04-22 00:57:38 +00001FOLLOW THESE STEPS:
2===================
3
Rusty Russell8c245b52000-07-14 08:01:22 +000041) If /usr/src/linux contains the kernel headers of a recent 2.4
5 kernel:
Richard Gooch8e3b8922000-04-22 00:57:38 +00006 % make
7
Rusty Russell8c245b52000-07-14 08:01:22 +00008 Otherwise:
9 % make KERNEL_DIR=<<where-your-kernel-is>>
Rusty Russell7fae6fa2000-05-31 06:32:02 +000010
Rusty Russell8c245b52000-07-14 08:01:22 +0000112) Finally, you need to to install the shared libraries, and the binary:
Rusty Russell7fae6fa2000-05-31 06:32:02 +000012 # make install
Rusty Russell8c245b52000-07-14 08:01:22 +000013 Or
14 # make install KERNEL_DIR=<<where-your-kernel-is>>
Rusty Russell7fae6fa2000-05-31 06:32:02 +000015
Rusty Russell8c245b52000-07-14 08:01:22 +000016That's it!
17================
18Problems you may encounter:
19
201) If your kernel is too old, you may be asked to apply one or more of
21 the patches in the directory to your kernel. This can be safely
22 done as follows:
23
24 cp -al <<where-your-kernel-is>> <<where-your-kernel-is>>.backup
25 cd <<where-your-kernel-is>>
26 patch -p1 < <<whatever-the-patchfile-is>>
27
28 Then start again.
29
302) If you get the kernel directory wrong, you may see a message like:
31 Please try `make KERNEL_DIR=path-to-correct-kernel'
32
333) If you want to specify alternate directories for installation
34(instead of /usr/local/ bin lib man), do this:
Richard Gooch8e3b8922000-04-22 00:57:38 +000035
36 % make BINDIR=/usr/bin LIBDIR=/usr/lib MANDIR=/usr/man
Rusty Russell8c245b52000-07-14 08:01:22 +000037 # make BINDIR=/usr/bin LIBDIR=/usr/lib MANDIR=/usr/man install
Richard Gooch8e3b8922000-04-22 00:57:38 +000038
39NOTE: make sure you build with at least the correct LIBDIR=
40specification, otherwise iptables(8) won't know where to find the
41dynamic objects.