grep.xml 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. <?xml version="1.0" encoding="ISO-8859-1"?>
  2. <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
  3. "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
  4. <!ENTITY % general-entities SYSTEM "../general.ent">
  5. %general-entities;
  6. ]>
  7. <sect1 id="ch-tools-grep" role="wrap">
  8. <?dbhtml filename="grep.html"?>
  9. <title>Grep-&grep-version;</title>
  10. <indexterm zone="ch-tools-grep">
  11. <primary sortas="a-Grep">Grep</primary>
  12. <secondary>tools</secondary>
  13. </indexterm>
  14. <sect2 role="package">
  15. <title/>
  16. <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
  17. href="../chapter06/grep.xml"
  18. xpointer="xpointer(/sect1/sect2[1]/para[1])"/>
  19. <segmentedlist>
  20. <segtitle>&buildtime;</segtitle>
  21. <segtitle>&diskspace;</segtitle>
  22. <seglistitem>
  23. <seg>0.1 SBU</seg>
  24. <seg>4.5 MB</seg>
  25. </seglistitem>
  26. </segmentedlist>
  27. <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
  28. href="../chapter06/grep.xml"
  29. xpointer="xpointer(/sect1/sect2[1]/segmentedlist[2])"/>
  30. </sect2>
  31. <sect2 role="installation">
  32. <title>Installation of Grep</title>
  33. <para>Prepare Grep for compilation:</para>
  34. <screen><userinput>./configure --prefix=/tools \
  35. --disable-perl-regexp</userinput></screen>
  36. <variablelist>
  37. <title>The meaning of the configure option:</title>
  38. <varlistentry>
  39. <term><parameter>--disable-perl-regexp</parameter></term>
  40. <listitem>
  41. <para>This ensures that the <command>grep</command> program does
  42. not get linked against a Perl Compatible Regular Expression (PCRE)
  43. library that may be present on the host but will not be available
  44. once we enter the <command>chroot</command> environment.</para>
  45. </listitem>
  46. </varlistentry>
  47. </variablelist>
  48. <para>Compile the package:</para>
  49. <screen><userinput>make</userinput></screen>
  50. <para>To test the results, issue:
  51. <userinput>make check</userinput>.</para>
  52. <para>Install the package:</para>
  53. <screen><userinput>make install</userinput></screen>
  54. </sect2>
  55. <sect2 role="content">
  56. <title/>
  57. <para>Details on this package are located in
  58. <xref linkend="contents-grep" role="."/></para>
  59. </sect2>
  60. </sect1>