grep.xml 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. <?xml version="1.0" encoding="ISO-8859-1"?>
  2. <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN" "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd" [
  3. <!ENTITY % general-entities SYSTEM "../general.ent">
  4. %general-entities;
  5. ]>
  6. <sect1 id="ch-tools-grep" role="wrap">
  7. <title>Grep-&grep-version;</title>
  8. <?dbhtml filename="grep.html"?>
  9. <indexterm zone="ch-tools-grep">
  10. <primary sortas="a-Grep">Grep</primary>
  11. <secondary>tools</secondary></indexterm>
  12. <sect2 role="package"><title/>
  13. <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="../chapter06/grep.xml" xpointer="xpointer(/sect1/sect2[1]/para[1])"/>
  14. <segmentedlist>
  15. <segtitle>&buildtime;</segtitle>
  16. <segtitle>&diskspace;</segtitle>
  17. <seglistitem><seg>0.1 SBU</seg><seg>5.8 MB</seg></seglistitem>
  18. </segmentedlist>
  19. <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="../chapter06/grep.xml" xpointer="xpointer(/sect1/sect2[1]/segmentedlist[2])"/>
  20. </sect2>
  21. <sect2 role="installation">
  22. <title>Installation of Grep</title>
  23. <para>Prepare Grep for compilation:</para>
  24. <screen><userinput>./configure --prefix=/tools \
  25. --disable-perl-regexp --with-included-regex</userinput></screen>
  26. <para>The meaning of the configure options:</para>
  27. <variablelist>
  28. <varlistentry>
  29. <term><parameter>--disable-perl-regexp</parameter></term>
  30. <listitem><para>This makes sure that <command>grep</command> does not
  31. get linked against a PCRE library that may be present on the host and would not be
  32. available once we enter the chroot environment.</para></listitem>
  33. </varlistentry>
  34. <varlistentry>
  35. <term><parameter>--with-included-regex</parameter></term>
  36. <listitem><para>This ensures that
  37. Grep uses its internal regular expression code. Without this switch, Grep will
  38. use the code from Glibc, which is known to be slightly buggy.</para></listitem>
  39. </varlistentry>
  40. </variablelist>
  41. <para>Compile the programs:</para>
  42. <screen><userinput>make</userinput></screen>
  43. <para>(If you insist on testing the results, then issue:
  44. <userinput>make check</userinput>.)</para>
  45. <para>Then install them and their documentation:</para>
  46. <screen><userinput>make install</userinput></screen>
  47. </sect2>
  48. <sect2 role="content"><title/>
  49. <para>The details on this package are found in <xref linkend="contents-grep"/>.</para>
  50. </sect2>
  51. </sect1>