Intro  Base  More  Read  Use  Last 30  60  90  All Articles  RSS


Intro

Base

More

Read

Use

Last:
30


60

90

All
Days

Base: file-3.39   Print


Base Nav: first previous next last All Tab 2 spacerspacer
Source code is available here.

Run these commands:

cd /sources/  &&
rm -rf  &&
tar -xjf file-3.39.tar.bz2 &&
cd file-3.39 &&
./configure --prefix=/usr --datadir=/usr/share/misc &&
make &&
make install

The output should look something like this:

creating cache ./config.cache
checking for a BSD compatible install... /bin/install -c
checking whether build environment is sane... yes
checking whether make sets ${MAKE}... yes
checking for working aclocal... found
checking for working autoconf... found
checking for working automake... found
checking for working autoheader... found
checking for working makeinfo... found
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 whether the C compiler (gcc  ) works... yes
checking whether the C compiler (gcc  ) is a
cross-compiler... no
checking whether we are using GNU C... yes
checking whether gcc accepts -g... yes
checking for a BSD compatible install... /bin/install -c
checking whether ln -s works... yes
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking whether sys/types.h defines makedev... yes
checking for sys/wait.h that is POSIX.1 compatible... yes
checking for stdint.h... yes
checking for fcntl.h... yes
checking for locale.h... yes
checking for sys/mman.h... yes
checking for sys/stat.h... yes
checking for sys/types.h... yes
checking for unistd.h... yes
checking for getopt.h... yes
checking for locale.h... (cached) yes
checking for stdint.h... (cached) yes
checking for working const... yes
checking for off_t... yes
checking for size_t... yes
checking for st_rdev in struct stat... yes
checking whether struct tm is in sys/time.h or time.h...
time.h
checking for tm_zone in struct tm... yes
checking for tzname... yes
checking for tm_isdst in struct tm... yes
checking for daylight... yes
checking for special C compiler options needed for large
files=
... no
checking for _FILE_OFFSET_BITS value needed for large
files... 64
checking for _LARGE_FILES value needed for large files...
no
checking for uint8_t... yes
checking for uint16_t... yes
checking for uint32_t... yes
checking for long long... yes
.
.
.
rm -f stamp-h1
touch config.h.in
cd . && /bin/sh ./config.status config.h
config.status: creating config.h
make  all-am
make[1]: Entering directory `/sources/file-3.39'
gcc -DHAVE_CONFIG_H -I.  
-DMAGIC='""/usr/share/misc/magic""'  -g -O2 -c file.c
gcc -DHAVE_CONFIG_H -I.  
-DMAGIC='""/usr/share/misc/magic""'  -g -O2 -c apprentice.c
gcc -DHAVE_CONFIG_H -I.  
-DMAGIC='""/usr/share/misc/magic""'  -g -O2 -c fsmagic.c
gcc -DHAVE_CONFIG_H -I.  
-DMAGIC='""/usr/share/misc/magic""'  -g -O2 -c softmagic.c
gcc -DHAVE_CONFIG_H -I.  
-DMAGIC='""/usr/share/misc/magic""'  -g -O2 -c ascmagic.c
gcc -DHAVE_CONFIG_H -I.  
-DMAGIC='""/usr/share/misc/magic""'  -g -O2 -c compress.c
gcc -DHAVE_CONFIG_H -I.  
-DMAGIC='""/usr/share/misc/magic""'  -g -O2 -c is_tar.c
gcc -DHAVE_CONFIG_H -I.  
-DMAGIC='""/usr/share/misc/magic""'  -g -O2 -c readelf.c
gcc -DHAVE_CONFIG_H -I.  
-DMAGIC='""/usr/share/misc/magic""'  -g -O2 -c print.c
gcc  -g -O2   -o file file.o apprentice.o fsmagic.o
softmagic.o ascmagic.o compress.o is_tar.o readelf.o
print.o  -lz 
sed -e s@__CSECTION__@1@g \
    -e s@__FSECTION__@4@g \
    -e s@__VERSION__@3.39@g \
    -e s@__MAGIC__@/usr/share/misc/magic@g ./file.man >
file.1
sed -e s@__CSECTION__@1@g \
    -e s@__FSECTION__@4@g \
    -e s@__VERSION__@3.39@g \
    -e s@__MAGIC__@/usr/share/misc/magic@g ./magic.man >
magic.4
cat ./Header ./Localstuff > magic
for frag in Magdir/acorn Magdir/adi Magdir/adventure
Magdir/allegro Magdir/alliant Magdir/alpha Magdir/amanda
Magdir/amigaos Magdir/animation Magdir/apl Magdir/apple
Magdir/applix Magdir/archive Magdir/asterix Magdir/att3b
Magdir/audio Magdir/blender Magdir/blit Magdir/bsdi
Magdir/c-lang Magdir/cddb Magdir/chi Magdir/cisco
Magdir/citrus Magdir/claris Magdir/clipper Magdir/commands
Magdir/compress Magdir/console Magdir/convex Magdir/ctags
Magdir/cvs Magdir/database Magdir/diamond Magdir/diff
Magdir/digital Magdir/dolby Magdir/dump Magdir/dyadic
Magdir/editors Magdir/elf Magdir/encore Magdir/epoc
Magdir/filesystems Magdir/flash Magdir/fonts Magdir/frame
Magdir/freebsd Magdir/fsav Magdir/gimp Magdir/gnu
Magdir/grace Magdir/gringotts Magdir/hitachi-sh Magdir/hp
Magdir/ibm370 Magdir/ibm6000 Magdir/iff Magdir/images
Magdir/impulse Magdir/intel Magdir/interleaf Magdir/island
Magdir/ispell Magdir/java Magdir/jpeg Magdir/karma
Magdir/lecter Magdir/lex Magdir/lif Magdir/linux
Magdir/lisp Magdir/mach Magdir/macintosh Magdir/magic
Magdir/mail.news Magdir/maple Magdir/mathematica
Magdir/mcrypt Magdir/mime Magdir/mips Magdir/mirage
Magdir/mkid Magdir/mmdf Magdir/mlssa Magdir/modem
Magdir/motorola Magdir/msdos Magdir/msvc Magdir/natinst
Magdir/ncr Magdir/netbsd Magdir/netscape Magdir/news
Magdir/nitpicker Magdir/octave Magdir/olf Magdir/os2
Magdir/os9 Magdir/osf1 Magdir/palm Magdir/parix Magdir/pbm
Magdir/pdf Magdir/pdp Magdir/perl Magdir/pgp Magdir/pkgadd
Magdir/plus5 Magdir/printer Magdir/project Magdir/psdbms
Magdir/pulsar Magdir/pyramid Magdir/python Magdir/riff
Magdir/rpm Magdir/rtf Magdir/sc Magdir/sccs Magdir/sendmail
Magdir/sequent Magdir/sgml Magdir/sharc Magdir/sketch
Magdir/smalltalk Magdir/sniffer Magdir/softquad
Magdir/spectrum Magdir/sun Magdir/sysex Magdir/teapot
Magdir/terminfo Magdir/tex Magdir/tgif Magdir/ti-8x
Magdir/timezone Magdir/troff Magdir/tuxedo Magdir/typeset
Magdir/unknown Magdir/uuencode Magdir/varied.out Magdir/vax
Magdir/vicar Magdir/visx Magdir/vms Magdir/vmware
Magdir/vorbis Magdir/vxl Magdir/wordperfect Magdir/xdelta
Magdir/xenix Magdir/zilog Magdir/zyxel; do \
  if test -f ./$frag; then \
    f=./$frag; \
  else \
    f=$frag; \
  fi; \
	  cat $f; \
done >> magic
./file -C -m magic
./file -C -m ./magic.mime
make[1]: Leaving directory `/sources/file-3.39'
make[1]: Entering directory `/sources/file-3.39'
test -z ""/usr/bin"" || /bin/mkdir -p ""/usr/bin""
  /bin/install -c 'file' '/usr/bin/file'
test -z ""/usr/share/misc"" || /bin/mkdir -p
""/usr/share/misc""
 /bin/install -c -m 644 'magic' '/usr/share/misc/magic'
 /bin/install -c -m 644 'magic.mime'
'/usr/share/misc/magic.mime'
 /bin/install -c -m 644 'magic.mgc'
'/usr/share/misc/magic.mgc'
 /bin/install -c -m 644 'magic.mime.mgc'
'/usr/share/misc/magic.mime.mgc'
test -z ""/usr/share/man/man1"" || /bin/mkdir -p
""/usr/share/man/man1""
 /bin/install -c -m 644 'file.1'
'/usr/share/man/man1/file.1'
test -z ""/usr/share/man/man4"" || /bin/mkdir -p
""/usr/share/man/man4""
 /bin/install -c -m 644 'magic.4'
'/usr/share/man/man4/magic.4'
test -z ""/usr/share/man/man5"" || /bin/mkdir -p
""/usr/share/man/man5""
make[1]: Leaving directory `/sources/file-3.39'


~~~
Please read our Terms of Use and our Privacy Policy
A tip o' the hat to the folks at Linux From Scratch, who provided a lot of the know-how and framing for the NoNIC OS.

Copyright 2006-2009 NoNIC.org

Created by:
MCJ
MCJ CMS