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