aboutsummaryrefslogtreecommitdiffstats
path: root/chapter06/flex-inst.xml
diff options
context:
space:
mode:
Diffstat (limited to 'chapter06/flex-inst.xml')
-rw-r--r--chapter06/flex-inst.xml32
1 files changed, 21 insertions, 11 deletions
diff --git a/chapter06/flex-inst.xml b/chapter06/flex-inst.xml
index bdd9ff3c2..92634e350 100644
--- a/chapter06/flex-inst.xml
+++ b/chapter06/flex-inst.xml
@@ -1,20 +1,30 @@
+<sect2><title>&nbsp;</title><para>&nbsp;</para></sect2>
+
<sect2>
<title>Installation of Flex</title>
-<para>Install Flex by running the following commands:</para>
+<para>Prepare Flex to be compiled:</para>
+
+<para><screen><userinput>./configure --prefix=/usr</userinput></screen></para>
+
+<para>Continue with compiling the package:</para>
+
+<para><screen><userinput>make</userinput></screen></para>
+
+<para>Install the package:</para>
+
+<para><screen><userinput>make install</userinput></screen></para>
-<para><screen><userinput>./configure --prefix=/usr &amp;&amp;
-make &amp;&amp;
-make install &amp;&amp;
-ln -s libfl.a /usr/lib/libl.a</userinput></screen></para>
+<para>There are which packages expect to find the flex library
+in the <filename>/usr/lib</filename> directory. Create a symlink
+to account for this:</para>
-<para>Some programs don't know about flex and try to find the lex program
-(flex is a (better) alternative for lex). So to please those few
-programs out there we'll create a bash script called lex that calls flex
-and have it emulate lex.</para>
+<para><screen><userinput>ln -s libfl.a /usr/lib/libl.a</userinput></screen></para>
-<para>Create a new file <filename>/usr/bin/lex</filename> by running the
-following:</para>
+<para>Some programs don't know about flex and try to find the lex
+program (flex is a (better) alternative for lex). To please those
+programs, create a shell script named lex which calls flex in
+emulation mode:</para>
<para><screen><userinput>cat &gt; /usr/bin/lex &lt;&lt; "EOF"</userinput>
#!/bin/sh