file-inst.xml 1.1 KB

1234567891011121314151617181920212223242526
  1. <sect2>
  2. <title>Installation of File</title>
  3. <para>Install File by running the following commands:</para>
  4. <para><screen><userinput>./configure --prefix=/usr --datadir=/usr/share/misc &amp;&amp;</userinput>
  5. <userinput>make &amp;&amp;</userinput>
  6. <userinput>make install</userinput></screen></para>
  7. <para>File uses magic numbers to determine a file type. These magic numbers
  8. come with File in a plain text file. File internally compiles this database
  9. each time it is run. This is not the normal type of operation for File since
  10. compiling a
  11. plain text file each time is not the fastest way to do it. File offers an
  12. option "-C" to compile this magic number file. The reason this isn't done
  13. automatically is that some people like to work on the magic numbers. On the
  14. other hand many people didn't get it that they should compile the magic
  15. numbers, so the author of File added a warning when the plain text magic file
  16. is used. As we usually won't work on the plain text magic file, we
  17. compile this file, because it's faster, fixes that annoying warning and is how
  18. it was meant to be:</para>
  19. <para><screen><userinput>file -C</userinput></screen></para>
  20. </sect2>