grep.xml 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. <sect1 id="ch05-grep">
  2. <title>Installing Grep-&grep-version;</title>
  3. <?dbhtml filename="grep.html" dir="chapter05"?>
  4. <screen>Estimated build time: &grep-time-tools;
  5. Estimated required disk space: &grep-compsize-tools;</screen>
  6. &aa-grep-shortdesc;
  7. &aa-grep-dep;
  8. <sect2><title>&nbsp;</title><para>&nbsp;</para></sect2>
  9. <sect2>
  10. <title>Installation of Grep</title>
  11. <para>Prepare Grep for compilation:</para>
  12. <screen><userinput>./configure --prefix=/tools \
  13. &nbsp;&nbsp;&nbsp;&nbsp;--disable-perl-regexp --with-included-regex</userinput></screen>
  14. <para>The meaning of the configure options:</para>
  15. <itemizedlist>
  16. <listitem><para><userinput>--disable-perl-regexp</userinput>: This makes sure
  17. that <userinput>grep</userinput> does not get linked against a PCRE library
  18. that may be present on the host, but would not be available once we enter the
  19. chroot environment.</para></listitem>
  20. <listitem><para><userinput>--with-included-regex</userinput>: This ensures that
  21. Grep uses its internal regular expression code. Without it, it will use
  22. the code from Glibc, which is known to be slightly buggy.</para></listitem>
  23. </itemizedlist>
  24. <para>Compile the programs:</para>
  25. <screen><userinput>make </userinput></screen>
  26. <para>This package has a test suite available which can perform a number of
  27. checks to ensure it built correctly. Should you choose to run it, the
  28. following command will do so:</para>
  29. <screen><userinput>make check</userinput></screen>
  30. <para>Then install them and their documentation:</para>
  31. <screen><userinput>make install</userinput></screen>
  32. </sect2>
  33. </sect1>