2001-01-24 00:31:17 +00:00
|
|
|
<sect2>
|
|
|
|
<title>Installation of File</title>
|
|
|
|
|
2001-07-22 20:45:10 +01:00
|
|
|
<para>Install File by running the following commands:</para>
|
2001-01-24 00:31:17 +00:00
|
|
|
|
2001-07-22 20:45:10 +01:00
|
|
|
<para><screen><userinput>./configure --prefix=/usr --datadir=/usr/share/misc &&</userinput>
|
2001-07-10 16:06:31 +01:00
|
|
|
<userinput>make &&</userinput>
|
2001-07-22 20:45:10 +01:00
|
|
|
<userinput>make install</userinput></screen></para>
|
2001-04-04 00:19:45 +01:00
|
|
|
|
2001-07-22 20:45:10 +01:00
|
|
|
<para>File uses magic numbers to determine a file type. These magic numbers
|
|
|
|
come with File in a plain text file. File internally compiles this database
|
|
|
|
each time it is run. This is not the normal type of operation for File since
|
|
|
|
compiling a
|
2001-04-04 00:19:45 +01:00
|
|
|
plain text file each time is not the fastest way to do it. File offers an
|
|
|
|
option "-C" to compile this magic number file. The reason this isn't done
|
2001-04-09 18:38:08 +01:00
|
|
|
automatically is that some people like to work on the magic numbers. On the
|
2001-04-04 00:19:45 +01:00
|
|
|
other hand many people didn't get it that they should compile the magic
|
|
|
|
numbers, so the author of File added a warning when the plain text magic file
|
|
|
|
is used. As we usually won't work on the plain text magic file, we
|
|
|
|
compile this file, because it's faster, fixes that annoying warning and is how
|
2001-07-22 20:45:10 +01:00
|
|
|
it was meant to be:</para>
|
2001-04-04 00:19:45 +01:00
|
|
|
|
2001-07-22 20:45:10 +01:00
|
|
|
<para><screen><userinput>file -C</userinput></screen></para>
|
2001-01-24 00:31:17 +00:00
|
|
|
|
|
|
|
</sect2>
|
|
|
|
|