aboutsummaryrefslogtreecommitdiffstats
path: root/chapter06/flex-inst.xml
diff options
context:
space:
mode:
authorTimothy Bauscher <timothy@linuxfromscratch.org>2003-01-16 19:55:00 +0000
committerTimothy Bauscher <timothy@linuxfromscratch.org>2003-01-16 19:55:00 +0000
commitb7d9d404530bb763fc76017744709800796af054 (patch)
tree31337c4e9208ece3bc6a53b2e613187275d74dc1 /chapter06/flex-inst.xml
parentb2933b95f79e304436547f8b984e4f586b662c85 (diff)
Converted m4, bison, less, groff, textutils, sed, flex, binutils, fileutils, shellutils, gettext and net-tools to new layout.
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@2353 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
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