2004-01-27 22:29:49 +00:00
|
|
|
<sect1 id="ch-tools-grep">
|
2001-07-23 19:23:43 +01:00
|
|
|
<title>Installing Grep-&grep-version;</title>
|
2001-09-26 00:55:44 +01:00
|
|
|
<?dbhtml filename="grep.html" dir="chapter05"?>
|
2001-01-24 00:31:17 +00:00
|
|
|
|
2004-01-27 22:27:44 +00:00
|
|
|
<screen>&buildtime; &grep-time-tools;
|
|
|
|
&diskspace; &grep-compsize-tools;</screen>
|
2001-07-17 19:51:18 +01:00
|
|
|
|
2004-01-12 23:23:50 +00:00
|
|
|
&aa-grep-down;
|
2003-11-15 16:07:18 +00:00
|
|
|
&aa-grep-dep;
|
2003-11-01 22:31:50 +00:00
|
|
|
|
|
|
|
<sect2><title> </title><para> </para></sect2>
|
|
|
|
|
|
|
|
<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 \
|
|
|
|
--disable-perl-regexp --with-included-regex</userinput></screen>
|
|
|
|
|
|
|
|
<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-01-12 23:23:50 +00:00
|
|
|
<sect2><title> </title><para> </para>
|
|
|
|
<para>The details on this package are found in <xref linkend="contents-grep"/>.</para>
|
|
|
|
<para> </para></sect2>
|
|
|
|
|
2001-01-24 00:31:17 +00:00
|
|
|
</sect1>
|
|
|
|
|