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.xml21
1 files changed, 21 insertions, 0 deletions
diff --git a/chapter05/grep-inst.xml b/chapter05/grep-inst.xml
new file mode 100644
index 000000000..ecf2051ee
--- /dev/null
+++ b/chapter05/grep-inst.xml
@@ -0,0 +1,21 @@
+<sect2>
+<title>Installation of Grep</title>
+
+<para>
+Install Grep by running the following commands:
+</para>
+
+<blockquote><literallayout>
+
+ <userinput>export CPPFLAGS=-Dre_max_failures=re_max_failures2
+ &amp;&amp;</userinput>
+ <userinput>./configure --prefix=$LFS/usr --disable-nls
+ &amp;&amp;</userinput>
+ <userinput>unset CPPFLAGS &amp;&amp;</userinput>
+ <userinput>make LDFLAGS=-static &amp;&amp;</userinput>
+ <userinput>make install</userinput>
+
+</literallayout></blockquote>
+
+</sect2>
+