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
|
|
|
|
2002-01-26 19:40:19 +00:00
|
|
|
<para><screen><userinput>./configure --prefix=/usr &&
|
2001-10-27 23:21:44 +01:00
|
|
|
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
|
2002-05-29 13:42:01 +01: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>
|
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>
|
|
|
|
|