2001-01-24 00:31:17 +00:00
|
|
|
<sect2>
|
|
|
|
<title>Installation of Bison</title>
|
|
|
|
|
2001-07-22 20:45:10 +01:00
|
|
|
<para>Install Bison by running the following commands:</para>
|
2001-01-24 00:31:17 +00:00
|
|
|
|
2001-10-27 23:21:44 +01:00
|
|
|
<para><screen><userinput>./configure --prefix=/usr \
|
|
|
|
--datadir=/usr/share/bison &&
|
|
|
|
make &&
|
|
|
|
make install</userinput></screen></para>
|
2001-01-24 00:31:17 +00:00
|
|
|
|
2001-07-22 20:45:10 +01:00
|
|
|
<para>Some programs don't know about bison and try to find the yacc program
|
2001-01-24 00:31:17 +00:00
|
|
|
(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
|
2001-09-18 13:02:39 +01:00
|
|
|
it emulate yacc's output file name conventions.</para>
|
2001-01-24 00:31:17 +00:00
|
|
|
|
2001-07-22 20:45:10 +01:00
|
|
|
<para>Create a new file <filename>/usr/bin/yacc</filename> by running the
|
|
|
|
following:</para>
|
2001-01-24 00:31:17 +00:00
|
|
|
|
2001-07-22 20:45:10 +01:00
|
|
|
<para><screen><userinput>cat > /usr/bin/yacc << "EOF"</userinput>
|
2001-01-24 00:31:17 +00:00
|
|
|
#!/bin/sh
|
|
|
|
# Begin /usr/bin/yacc
|
|
|
|
|
2001-08-25 21:43:55 +01:00
|
|
|
exec /usr/bin/bison -y "$@"
|
2001-01-24 00:31:17 +00:00
|
|
|
|
|
|
|
# End /usr/bin/yacc
|
2001-10-27 23:21:44 +01:00
|
|
|
<userinput>EOF
|
|
|
|
chmod 755 /usr/bin/yacc</userinput></screen></para>
|
2001-01-24 00:31:17 +00:00
|
|
|
|
|
|
|
</sect2>
|
|
|
|
|