source:
chapter06/bison-inst.xml@
591fc2c
Last change on this file since 591fc2c was c4eeb6f, checked in by , 22 years ago | |
---|---|
|
|
File size: 840 bytes |
Rev | Line | |
---|---|---|
[6370fa6] | 1 | <sect2> |
2 | <title>Installation of Bison</title> | |
3 | ||
[b822811] | 4 | <para>Install Bison by running the following commands:</para> |
[6370fa6] | 5 | |
[608e41c] | 6 | <para><screen><userinput>./configure --prefix=/usr && |
[4d6fc2da] | 7 | make && |
8 | make install</userinput></screen></para> | |
[6370fa6] | 9 | |
[b822811] | 10 | <para>Some programs don't know about bison and try to find the yacc program |
[6370fa6] | 11 | (bison is a (better) alternative for yacc). So to please those few |
[c4eeb6f] | 12 | programs out there we'll create a bash script called yacc that calls bison |
13 | and have it emulate yacc's output file name conventions.</para> | |
[6370fa6] | 14 | |
[b822811] | 15 | <para>Create a new file <filename>/usr/bin/yacc</filename> by running the |
16 | following:</para> | |
[6370fa6] | 17 | |
[b822811] | 18 | <para><screen><userinput>cat > /usr/bin/yacc << "EOF"</userinput> |
[6370fa6] | 19 | #!/bin/sh |
20 | # Begin /usr/bin/yacc | |
21 | ||
[36c9927] | 22 | exec /usr/bin/bison -y "$@" |
[6370fa6] | 23 | |
24 | # End /usr/bin/yacc | |
[4d6fc2da] | 25 | <userinput>EOF |
26 | chmod 755 /usr/bin/yacc</userinput></screen></para> | |
[6370fa6] | 27 | |
28 | </sect2> | |
29 |
Note:
See TracBrowser
for help on using the repository browser.