blob: f2a361d6e646dba198eb29083f31d4541061eb22 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
<sect2>
<title>Installation of Flex</title>
<para>Install Flex by running the following commands:</para>
<para><screen><userinput>./configure --prefix=/usr &&
make &&
make install</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 > /usr/bin/lex << "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>
|