grep.xml 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  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-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 <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>As discussed earlier, we don't recommend running the test suites for the
  27. temporary tools here in this chapter. If you still want to run the Grep test
  28. suite anyway, the 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. <sect2><title>&nbsp;</title><para>&nbsp;</para>
  34. <para>The details on this package are found in <xref linkend="contents-grep"/>.</para>
  35. <para>&nbsp;</para></sect2>
  36. </sect1>