file-inst.xml 1.1 KB

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