Richard Gooch | 8e3b892 | 2000-04-22 00:57:38 +0000 | [diff] [blame] | 1 | FOLLOW THESE STEPS: |
| 2 | =================== |
| 3 | |
Rusty Russell | 8c245b5 | 2000-07-14 08:01:22 +0000 | [diff] [blame^] | 4 | 1) If /usr/src/linux contains the kernel headers of a recent 2.4 |
| 5 | kernel: |
Richard Gooch | 8e3b892 | 2000-04-22 00:57:38 +0000 | [diff] [blame] | 6 | % make |
| 7 | |
Rusty Russell | 8c245b5 | 2000-07-14 08:01:22 +0000 | [diff] [blame^] | 8 | Otherwise: |
| 9 | % make KERNEL_DIR=<<where-your-kernel-is>> |
Rusty Russell | 7fae6fa | 2000-05-31 06:32:02 +0000 | [diff] [blame] | 10 | |
Rusty Russell | 8c245b5 | 2000-07-14 08:01:22 +0000 | [diff] [blame^] | 11 | 2) Finally, you need to to install the shared libraries, and the binary: |
Rusty Russell | 7fae6fa | 2000-05-31 06:32:02 +0000 | [diff] [blame] | 12 | # make install |
Rusty Russell | 8c245b5 | 2000-07-14 08:01:22 +0000 | [diff] [blame^] | 13 | Or |
| 14 | # make install KERNEL_DIR=<<where-your-kernel-is>> |
Rusty Russell | 7fae6fa | 2000-05-31 06:32:02 +0000 | [diff] [blame] | 15 | |
Rusty Russell | 8c245b5 | 2000-07-14 08:01:22 +0000 | [diff] [blame^] | 16 | That's it! |
| 17 | ================ |
| 18 | Problems you may encounter: |
| 19 | |
| 20 | 1) 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 | |
| 30 | 2) If you get the kernel directory wrong, you may see a message like: |
| 31 | Please try `make KERNEL_DIR=path-to-correct-kernel' |
| 32 | |
| 33 | 3) If you want to specify alternate directories for installation |
| 34 | (instead of /usr/local/ bin lib man), do this: |
Richard Gooch | 8e3b892 | 2000-04-22 00:57:38 +0000 | [diff] [blame] | 35 | |
| 36 | % make BINDIR=/usr/bin LIBDIR=/usr/lib MANDIR=/usr/man |
Rusty Russell | 8c245b5 | 2000-07-14 08:01:22 +0000 | [diff] [blame^] | 37 | # make BINDIR=/usr/bin LIBDIR=/usr/lib MANDIR=/usr/man install |
Richard Gooch | 8e3b892 | 2000-04-22 00:57:38 +0000 | [diff] [blame] | 38 | |
| 39 | NOTE: make sure you build with at least the correct LIBDIR= |
| 40 | specification, otherwise iptables(8) won't know where to find the |
| 41 | dynamic objects. |