file-inst.xml 1.2 KB

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