2003-01-11 18:15:01 +00:00
|
|
|
<sect2><title> </title><para> </para></sect2>
|
|
|
|
|
2001-01-24 00:31:17 +00:00
|
|
|
<sect2>
|
|
|
|
<title>Installation of Grep</title>
|
|
|
|
|
2003-08-15 23:38:17 +01:00
|
|
|
<para>Prepare Grep to be compiled:</para>
|
|
|
|
|
2003-09-02 23:03:51 +01:00
|
|
|
<para><screen><userinput>./configure --prefix=/tools \
|
2003-08-15 23:38:17 +01:00
|
|
|
--disable-perl-regexp --with-included-regex</userinput></screen></para>
|
|
|
|
|
2003-09-13 00:16:54 +01:00
|
|
|
<para>The meaning of the configure switches:</para>
|
|
|
|
|
|
|
|
<itemizedlist>
|
|
|
|
<listitem><para><userinput>--disable-perl-regexp</userinput>: This makes sure
|
2003-09-14 22:46:24 +01:00
|
|
|
that <userinput>grep</userinput> does not get linked against a PCRE library
|
|
|
|
that may be present on the host, but would not be available once we enter the
|
|
|
|
chroot environment.</para></listitem>
|
2003-09-13 00:16:54 +01:00
|
|
|
<listitem><para><userinput>--with-included-regex</userinput>: This ensures that
|
2003-09-14 22:46:24 +01:00
|
|
|
Grep uses its internal regular expression code. Without it, it will use
|
|
|
|
the code from Glibc, which is known to be slightly buggy.</para></listitem>
|
2003-09-13 00:16:54 +01:00
|
|
|
</itemizedlist>
|
|
|
|
|
2003-08-15 23:38:17 +01:00
|
|
|
<para>Compile the programs:</para>
|
|
|
|
|
|
|
|
<para><screen><userinput>make </userinput></screen></para>
|
|
|
|
|
2003-09-21 08:31:01 +01:00
|
|
|
<para>This package has a test suite available which can perform a number of
|
2003-09-11 21:07:44 +01:00
|
|
|
checks to ensure it built correctly. Should you choose to run it, the
|
|
|
|
following command will do so:</para>
|
2003-08-15 23:38:17 +01:00
|
|
|
|
|
|
|
<para><screen><userinput>make check</userinput></screen></para>
|
|
|
|
|
|
|
|
<para>Then install them and their documentation:</para>
|
2001-01-24 00:31:17 +00:00
|
|
|
|
2003-08-15 23:38:17 +01:00
|
|
|
<para><screen><userinput>make install</userinput></screen></para>
|
2001-01-24 00:31:17 +00:00
|
|
|
|
|
|
|
</sect2>
|
|
|
|
|