L1g3r Logo           SignalQ Sites: NetAdminTools - Coprolite - SpotBridge - NAW
RoboCoop - AreWeDown - SysAdminTools
Xfig - Gold Loaf - GeekPapa - FixGMC - FixRambler
less-429
Topic:MCJ GNU/Linux Reference OS   Date: 2009-05-24
Printer Friendly: Print   

spacerspacer
<<  <   >  >>

Base Reference GNU/Linux Build Sequence

Source code is available here.

To compile and install, run these commands:

cd /sources/  &&
tar -xzf less-429.tar.gz &&
cd less-429 &&
./configure --prefix=/usr --bindir=/bin --sysconfdir=/etc &&
make &&
make install

The output should look something like this:

checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables... 
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for library containing strerror... none required
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking whether gcc needs -traditional... no
checking for a BSD-compatible install... /bin/install -c
checking for special C compiler options needed for large files... no
checking for _FILE_OFFSET_BITS value needed for large files... 64
checking for tgoto in -ltinfo... no
checking for initscr in -lxcurses... no
checking for initscr in -lncursesw... yes
checking for initscr in -lncurses... yes
checking for initscr in -lcurses... yes
checking for tgetent in -ltermcap... no
checking for tgetent in -ltermlib... no
checking for regcmp in -lgen... no
checking for regcmp in -lintl... no
checking for regcmp in -lPW... no
checking for working terminal libraries... using -lncursesw
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
.
.
.
gcc -I. -c -DBINDIR=\"/bin\" -DSYSDIR=\"/etc\"  -g -O2 prompt.c
gcc -I. -c -DBINDIR=\"/bin\" -DSYSDIR=\"/etc\"  -g -O2 search.c
gcc -I. -c -DBINDIR=\"/bin\" -DSYSDIR=\"/etc\"  -g -O2 signal.c
gcc -I. -c -DBINDIR=\"/bin\" -DSYSDIR=\"/etc\"  -g -O2 tags.c
gcc -I. -c -DBINDIR=\"/bin\" -DSYSDIR=\"/etc\"  -g -O2 ttyin.c
gcc -I. -c -DBINDIR=\"/bin\" -DSYSDIR=\"/etc\"  -g -O2 version.c
gcc  -o less main.o screen.o brac.o ch.o charset.o cmdbuf.o command.o decode.o edit.o filename.o 
forwback.o help.o ifile.o input.o jump.o line.o linenum.o lsystem.o mark.o optfunc.o option.o opttbl.o 
os.o output.o position.o prompt.o search.o signal.o tags.o ttyin.o version.o   -lncursesw
gcc -I. -c -DBINDIR=\"/bin\" -DSYSDIR=\"/etc\"  -g -O2 lesskey.c
gcc  -o lesskey lesskey.o version.o
gcc -I. -c -DBINDIR=\"/bin\" -DSYSDIR=\"/etc\"  -g -O2 lessecho.c
gcc  -o lessecho lessecho.o version.o
./mkinstalldirs /bin /usr/share/man/man1
/bin/install -c less /bin/less
/bin/install -c lesskey /bin/lesskey
/bin/install -c lessecho /bin/lessecho
/bin/install -c -m 644 ./less.nro /usr/share/man/man1/less.1
/bin/install -c -m 644 ./lesskey.nro /usr/share/man/man1/lesskey.1
/bin/install -c -m 644 ./lessecho.nro /usr/share/man/man1/lessecho.1


People:
Places:
Things:
less
Times:



None of this would be possible without the diligent work of the Linux From Scratch (LFS) project. A tip o' the hat to those intrepid hackers. Much of the OS buld configuration is taken directly from LFS and BLFS.