grep-inst.xml 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. <sect2><title>&nbsp;</title><para>&nbsp;</para></sect2>
  2. <sect2>
  3. <title>Installation of Grep</title>
  4. <para>Prepare Grep to be compiled:</para>
  5. <para><screen><userinput>./configure --prefix=/tools \
  6. &nbsp;&nbsp;&nbsp;&nbsp;--disable-perl-regexp --with-included-regex</userinput></screen></para>
  7. <para>The meaning of the configure options:</para>
  8. <itemizedlist>
  9. <listitem><para><userinput>--disable-perl-regexp</userinput>: This makes sure
  10. that <userinput>grep</userinput> does not get linked against a PCRE library
  11. that may be present on the host, but would not be available once we enter the
  12. chroot environment.</para></listitem>
  13. <listitem><para><userinput>--with-included-regex</userinput>: This ensures that
  14. Grep uses its internal regular expression code. Without it, it will use
  15. the code from Glibc, which is known to be slightly buggy.</para></listitem>
  16. </itemizedlist>
  17. <para>Compile the programs:</para>
  18. <para><screen><userinput>make </userinput></screen></para>
  19. <para>This package has a test suite available which can perform a number of
  20. checks to ensure it built correctly. Should you choose to run it, the
  21. following command will do so:</para>
  22. <para><screen><userinput>make check</userinput></screen></para>
  23. <para>Then install them and their documentation:</para>
  24. <para><screen><userinput>make install</userinput></screen></para>
  25. </sect2>