| 123456789101112131415161718192021222324252627282930 | <sect2><title>Installation of Flex</title><para>Install Flex by running the following commands:</para><para><screen><userinput>./configure --prefix=/usr &&make &&make install &&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 fewprograms out there we'll create a bash script called lex that calls flexand have it emulate lex.</para><para>Create a new file <filename>/usr/bin/lex</filename> by running thefollowing:</para><para><screen><userinput>cat > /usr/bin/lex << "EOF"</userinput>#!/bin/sh# Begin /usr/bin/lexexec /usr/bin/flex -l "$@"# End /usr/bin/lex<userinput>EOFchmod 755 /usr/bin/lex</userinput></screen></para></sect2>
 |