![]()
How to create a Debian 2.1 (code name slink) system for compiling binaries for LRP.
Use the Debian CD that comes with O'Reilly's book "Learning Debian GNU/Linux"
by Bill McCarty, ISBN Number 1-56592-705-2
Boot up using the Debian 2.1 CD and install Debian Linux.
When asked to select packages, don't select anything, just choose "Quit".
vi /etc/apt/sources.list add a line:
deb http://archive.debian.org/ slink main contrib non-free
then comment out all three (3) lines that begin with deb.
(reason: you may need some files from the archive some day in the future)
vi /dev/fstab add a line:
/dev/cdrom /cdrom iso9660 ro 0 0
apt-cdrom add
apt-get update
apt-get ugprade
apt-get install gcc g++ make m4 man-db less mc perl automake bison file gdb gettext patch
optional:
use ftp to get some LRP-friendly binaries and store them in /usr/bin
ncftp scp sftp (and chmod them to 755)
get zlib source code from http://www.gzip.org/zlib/
uncompress the zlib tarball,
./configure -s --prefix=/usr
make
make install
cd /usr/local/bin create a sym link
ln -s /usr/bin/perl perl
You now have a system that can compile binaries from c source for LRP.
To compile dhcp-2.0pl5 source from www.isc.org
make a modification: (this modification will cause problem when compiling BIND)
fetch kernel 2.2.12, save tarball in /usr/src
cd /usr/src
tar zxvf kernel-2.2.12.tar.gz
cd /usr/include - add two symlinks:
ln -s /usr/src/linux/include/asm-i386 asm
ln -s /usr/src/linux/include/linux linux
© 2003-2004 Nicholas Fong
Revised: February 26, 2004