2002-03-20 23:31:55 +00:00
|
|
|
<sect2>
|
|
|
|
<title>Installation of Bison</title>
|
|
|
|
|
|
|
|
<para>Install Bison 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 bison and try to find the yacc program
|
|
|
|
(bison is a (better) alternative for yacc). So to please those few
|
2002-10-07 16:04:19 +00:00
|
|
|
programs out there we'll create a bash script called yacc that calls bison
|
|
|
|
and have it emulate yacc's output file name conventions.</para>
|
2002-03-20 23:31:55 +00:00
|
|
|
|
|
|
|
<para>Create a new file <filename>/usr/bin/yacc</filename> by running the
|
|
|
|
following:</para>
|
|
|
|
|
|
|
|
<para><screen><userinput>cat > /usr/bin/yacc << "EOF"</userinput>
|
|
|
|
#!/bin/sh
|
|
|
|
# Begin /usr/bin/yacc
|
|
|
|
|
|
|
|
exec /usr/bin/bison -y "$@"
|
|
|
|
|
|
|
|
# End /usr/bin/yacc
|
|
|
|
<userinput>EOF
|
|
|
|
chmod 755 /usr/bin/yacc</userinput></screen></para>
|
|
|
|
|
|
|
|
</sect2>
|
|
|
|
|