grep.xml 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  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">
  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. <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="../chapter06/grep.xml" xpointer="xpointer(/sect1/para[1])"/>
  13. <screen>&buildtime; 0.1 SBU
  14. &diskspace; 5.8 MB</screen>
  15. <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="../chapter06/grep.xml" xpointer="xpointer(/sect1/para[2])"/>
  16. <sect2>
  17. <title>Installation of Grep</title>
  18. <para>Prepare Grep for compilation:</para>
  19. <screen><userinput>./configure --prefix=/tools \
  20. --disable-perl-regexp --with-included-regex</userinput></screen>
  21. <para>The meaning of the configure options:</para>
  22. <itemizedlist>
  23. <listitem><para><userinput>--disable-perl-regexp</userinput>: This makes sure
  24. that <command>grep</command> does not get linked against a PCRE library
  25. that may be present on the host and would not be available once we enter the
  26. chroot environment.</para></listitem>
  27. <listitem><para><userinput>--with-included-regex</userinput>: This ensures that
  28. Grep uses its internal regular expression code. Without this switch, Grep will
  29. use the code from Glibc, which is known to be slightly buggy.</para></listitem>
  30. </itemizedlist>
  31. <para>Compile the programs:</para>
  32. <screen><userinput>make</userinput></screen>
  33. <para>(If you insist on testing the results, then issue:
  34. <userinput>make check</userinput>.)</para>
  35. <para>Then install them and their documentation:</para>
  36. <screen><userinput>make install</userinput></screen>
  37. </sect2>
  38. <sect2><title> </title><para> </para>
  39. <para>The details on this package are found in <xref linkend="contents-grep"/>.</para>
  40. <para> </para></sect2>
  41. </sect1>