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-01-27 22:29:49 +00:00
|
|
|
<sect1 id="ch-tools-grep">
|
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-03 11:59:46 +01:00
|
|
|
<xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="../chapter06/grep.xml" xpointer="xpointer(/sect1/para[1])"/>
|
|
|
|
|
|
|
|
<screen>&buildtime; 0.1 SBU
|
|
|
|
&diskspace; 5.8 MB</screen>
|
|
|
|
|
|
|
|
<xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="../chapter06/grep.xml" xpointer="xpointer(/sect1/para[2])"/>
|
2003-11-01 22:31:50 +00:00
|
|
|
|
|
|
|
|
|
|
|
<sect2>
|
|
|
|
<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>
|
|
|
|
|
|
|
|
<itemizedlist>
|
|
|
|
<listitem><para><userinput>--disable-perl-regexp</userinput>: This makes sure
|
2004-02-01 21:49:10 +00:00
|
|
|
that <command>grep</command> does not get linked against a PCRE library
|
2004-01-26 22:23:41 +00:00
|
|
|
that may be present on the host and would not be available once we enter the
|
2003-11-01 22:31:50 +00:00
|
|
|
chroot environment.</para></listitem>
|
|
|
|
<listitem><para><userinput>--with-included-regex</userinput>: 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>
|
2003-11-01 22:31:50 +00:00
|
|
|
</itemizedlist>
|
|
|
|
|
|
|
|
<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-02-11 22:02:10 +00:00
|
|
|
<para>(If you insist on testing the results, then issue:
|
|
|
|
<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-03 11:59:46 +01:00
|
|
|
<sect2><title> </title><para> </para>
|
2004-01-12 23:23:50 +00:00
|
|
|
<para>The details on this package are found in <xref linkend="contents-grep"/>.</para>
|
2004-05-03 11:59:46 +01:00
|
|
|
<para> </para></sect2>
|
2004-01-12 23:23:50 +00:00
|
|
|
|
2001-01-24 00:31:17 +00:00
|
|
|
</sect1>
|