2001-01-24 00:31:17 +00:00
|
|
|
<sect2>
|
|
|
|
<title>Installation of Bison</title>
|
|
|
|
|
|
|
|
<para>
|
|
|
|
Install Bison by running the following commands:
|
|
|
|
</para>
|
|
|
|
|
|
|
|
<blockquote><literallayout>
|
|
|
|
|
|
|
|
<userinput>./configure --prefix=/usr \</userinput>
|
|
|
|
<userinput> --datadir=/usr/share/bison
|
|
|
|
&&</userinput>
|
|
|
|
<userinput>make &&</userinput>
|
|
|
|
<userinput>make install</userinput>
|
|
|
|
|
|
|
|
</literallayout></blockquote>
|
|
|
|
|
|
|
|
<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
|
|
|
|
programs out there we'll create a yacc script that calls bison and have
|
|
|
|
it emulate yacc's output file name conventions).
|
|
|
|
</para>
|
|
|
|
|
|
|
|
<para>
|
|
|
|
Create a new file <filename>/usr/bin/yacc</filename> by running the
|
|
|
|
following:
|
|
|
|
</para>
|
|
|
|
|
|
|
|
<literallayout>
|
|
|
|
|
|
|
|
<userinput>cat > /usr/bin/yacc << "EOF"</userinput>
|
|
|
|
#!/bin/sh
|
|
|
|
# Begin /usr/bin/yacc
|
|
|
|
|
2001-02-09 12:29:42 +00:00
|
|
|
/usr/bin/bison -y "$@"
|
2001-01-24 00:31:17 +00:00
|
|
|
|
|
|
|
# End /usr/bin/yacc
|
|
|
|
<userinput>EOF</userinput>
|
|
|
|
<userinput>chmod 755 /usr/bin/yacc</userinput>
|
|
|
|
|
|
|
|
</literallayout>
|
|
|
|
|
|
|
|
</sect2>
|
|
|
|
|