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