grep.xml 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. <sect1 id="ch-tools-grep">
  2. <title>Installing Grep-&grep-version;</title>
  3. <?dbhtml filename="grep.html" dir="chapter05"?>
  4. <screen>&buildtime; &grep-time-tools;
  5. &diskspace; &grep-compsize-tools;</screen>
  6. &aa-grep-down;
  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 <command>grep</command> does not get linked against a PCRE library
  18. that may be present on the host and 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 this switch, Grep will
  22. use 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>(If you insist on testing the results, then issue:
  27. <userinput>make check</userinput>.)</para>
  28. <para>Then install them and their documentation:</para>
  29. <screen><userinput>make install</userinput></screen>
  30. </sect2>
  31. <sect2><title>&nbsp;</title><para>&nbsp;</para>
  32. <para>The details on this package are found in <xref linkend="contents-grep"/>.</para>
  33. <para>&nbsp;</para></sect2>
  34. </sect1>