grep.xml 1.6 KB

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