L1g3r Logo           SignalQ Sites: NetAdminTools - Coprolite - SpotBridge - NAW
RoboCoop - AreWeDown - SysAdminTools
Xfig - Gold Loaf - GeekPapa - FixGMC - FixRambler
file-4.21
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/  &&
rm -rf  &&
tar -xzf file-4.21.tar.gz &&
cd file-4.21 &&
./configure --prefix=/usr &&
make &&
make install

The output should look something like this:

checking for a BSD-compatible install... /bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking for builtin ELF support... yes
checking for ELF core file support... yes
checking for file formats in man section 5... no
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 ANSI C... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking for a BSD-compatible install... /bin/install -c
checking whether ln -s works... yes
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking for a sed that does not truncate output... /bin/sed
checking for egrep... grep -E
checking for ld used by gcc... /usr/i686-pc-linux-gnu/bin/ld
checking if the linker (/usr/i686-pc-linux-gnu/bin/ld) is GNU ld... yes
checking for /usr/i686-pc-linux-gnu/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /usr/bin/nm -B
checking how to recognise dependent libraries... pass_all
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
.
.
.
test -z "/usr/share/file" || mkdir -p -- "/usr/share/file"
 /bin/install -c -m 644 'magic' '/usr/share/file/magic'
 /bin/install -c -m 644 'magic.mime' '/usr/share/file/magic.mime'
 /bin/install -c -m 644 'magic.mgc' '/usr/share/file/magic.mgc'
 /bin/install -c -m 644 'magic.mime.mgc' '/usr/share/file/magic.mime.mgc'
make[2]: Leaving directory `/sources/file-4.21/magic'
make[1]: Leaving directory `/sources/file-4.21/magic'
Making install in doc
make[1]: Entering directory `/sources/file-4.21/doc'
make[2]: Entering directory `/sources/file-4.21/doc'
make[2]: Nothing to be done for `install-exec-am'.
test -z "/usr/man/man1" || mkdir -p -- "/usr/man/man1"
 /bin/install -c -m 644 './file.1' '/usr/man/man1/file.1'
test -z "/usr/man/man3" || mkdir -p -- "/usr/man/man3"
 /bin/install -c -m 644 './libmagic.3' '/usr/man/man3/libmagic.3'
test -z "/usr/man/man4" || mkdir -p -- "/usr/man/man4"
 /bin/install -c -m 644 './magic.4' '/usr/man/man4/magic.4'
test -z "/usr/man/man5" || mkdir -p -- "/usr/man/man5"
make[2]: Leaving directory `/sources/file-4.21/doc'
make[1]: Leaving directory `/sources/file-4.21/doc'
Making install in python
make[1]: Entering directory `/sources/file-4.21/python'
make[2]: Entering directory `/sources/file-4.21/python'
make[2]: Nothing to be done for `install-exec-am'.
make[2]: Nothing to be done for `install-data-am'.
make[2]: Leaving directory `/sources/file-4.21/python'
make[1]: Leaving directory `/sources/file-4.21/python'
make[1]: Entering directory `/sources/file-4.21'
make[2]: Entering directory `/sources/file-4.21'
make[2]: Nothing to be done for `install-exec-am'.
make[2]: Nothing to be done for `install-data-am'.
make[2]: Leaving directory `/sources/file-4.21'
make[1]: Leaving directory `/sources/file-4.21'


People:
Places:
Things:
file
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.