lfs/chapter06/flex-inst.xml
Timothy Bauscher 8f93b1553a o Updated to binutils-2.13.2, procps-3.1.5.
o Made all LDFLAGS=-static LDFLAGS="-static".
o Added symlink from libfl.a to libl.a.


git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@2242 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
2002-12-30 03:12:54 +00:00

31 lines
835 B
XML

<sect2>
<title>Installation of Flex</title>
<para>Install Flex by running the following commands:</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>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>Create a new file <filename>/usr/bin/lex</filename> by running the
following:</para>
<para><screen><userinput>cat &gt; /usr/bin/lex &lt;&lt; "EOF"</userinput>
#!/bin/sh
# Begin /usr/bin/lex
exec /usr/bin/flex -l "$@"
# End /usr/bin/lex
<userinput>EOF
chmod 755 /usr/bin/lex</userinput></screen></para>
</sect2>