grep.xml 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. <?xml version="1.0" encoding="ISO-8859-1"?>
  2. <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
  3. "http://www.oasis-open.org/docbook/xml/4.5/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>&grep-ch5-sbu;</seg>
  24. <seg>&grep-ch5-du;</seg>
  25. </seglistitem>
  26. </segmentedlist>
  27. </sect2>
  28. <sect2 role="installation">
  29. <title>Installation of Grep</title>
  30. <para>Prepare Grep for compilation:</para>
  31. <screen><userinput>./configure --prefix=/tools \
  32. --disable-perl-regexp</userinput></screen>
  33. <variablelist>
  34. <title>The meaning of the configure option:</title>
  35. <varlistentry>
  36. <term><parameter>--disable-perl-regexp</parameter></term>
  37. <listitem>
  38. <para>This ensures that the <command>grep</command> program does
  39. not get linked against a Perl Compatible Regular Expression (PCRE)
  40. library that may be present on the host but will not be available
  41. once we enter the <command>chroot</command> environment.</para>
  42. </listitem>
  43. </varlistentry>
  44. </variablelist>
  45. <para>Compile the package:</para>
  46. <screen><userinput>make</userinput></screen>
  47. <para>To test the results, issue:
  48. <userinput>make check</userinput>.</para>
  49. <para>Install the package:</para>
  50. <screen><userinput>make install</userinput></screen>
  51. </sect2>
  52. <sect2 role="content">
  53. <title/>
  54. <para>Details on this package are located in
  55. <xref linkend="contents-grep" role="."/></para>
  56. </sect2>
  57. </sect1>