aboutsummaryrefslogtreecommitdiffstats
path: root/chapter05/grep-inst.xml
diff options
context:
space:
mode:
Diffstat (limited to 'chapter05/grep-inst.xml')
-rw-r--r--chapter05/grep-inst.xml25
1 files changed, 21 insertions, 4 deletions
diff --git a/chapter05/grep-inst.xml b/chapter05/grep-inst.xml
index 05609c353..99a9b6239 100644
--- a/chapter05/grep-inst.xml
+++ b/chapter05/grep-inst.xml
@@ -1,13 +1,30 @@
+<sect2><title>&nbsp;</title><para>&nbsp;</para></sect2>
+
<sect2>
<title>Installation of Grep</title>
-<para>Install Grep by running the following commands:</para>
+<para>Prepare Grep to be compiled:</para>
<para><screen><userinput>LDFLAGS="-static" CPPFLAGS=-Dre_max_failures=re_max_failures2 \
&nbsp;&nbsp;&nbsp;&nbsp;./configure --prefix=$LFS/static --disable-nls \
-&nbsp;&nbsp;&nbsp;&nbsp;--disable-perl-regexp &amp;&amp;
-make &amp;&amp;
-make install</userinput></screen></para>
+&nbsp;&nbsp;&nbsp;&nbsp;--disable-perl-regexp</userinput></screen></para>
+
+<para>The meaning of the configure option is:</para>
+
+<itemizedlist>
+<listitem><para><userinput>--disable-perl-regexp:</userinput> This
+configure option makes sure Grep is not linked against the PCRE library,
+which is often only available as a shared library in distributions. Not
+using this option might result in a compilation error.</para></listitem>
+</itemizedlist>
+
+<para>Continue with compiling the package:</para>
+
+<para><screen><userinput>make</userinput></screen></para>
+
+<para>And finish off installing the package:</para>
+
+<para><screen><userinput>make install</userinput></screen></para>
</sect2>