| 12345678910111213141516171819202122232425262728293031323334353637383940 | <sect2><title> </title><para> </para></sect2><sect2><title>Installation of Flex</title><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>There are which packages expect to find the flex libraryin the <filename>/usr/lib</filename> directory. Create a symlinkto account for this:</para><para><screen><userinput>ln -s libfl.a /usr/lib/libl.a</userinput></screen></para><para>Some programs don't know about flex and try to find the lexprogram (flex is a (better) alternative for lex). To please thoseprograms, create a shell script named lex which calls flex inemulation mode:</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>
 |