bison-inst.xml 828 B

1234567891011121314151617181920212223242526272829
  1. <sect2>
  2. <title>Installation of Bison</title>
  3. <para>Install Bison by running the following commands:</para>
  4. <para><screen><userinput>./configure --prefix=/usr &amp;&amp;
  5. make &amp;&amp;
  6. make install</userinput></screen></para>
  7. <para>Some programs don't know about bison and try to find the yacc program
  8. (bison is a (better) alternative for yacc). So to please those few
  9. programs out there we'll create a yacc script that calls bison and have
  10. it emulate yacc's output file name conventions.</para>
  11. <para>Create a new file <filename>/usr/bin/yacc</filename> by running the
  12. following:</para>
  13. <para><screen><userinput>cat &gt; /usr/bin/yacc &lt;&lt; "EOF"</userinput>
  14. #!/bin/sh
  15. # Begin /usr/bin/yacc
  16. exec /usr/bin/bison -y "$@"
  17. # End /usr/bin/yacc
  18. <userinput>EOF
  19. chmod 755 /usr/bin/yacc</userinput></screen></para>
  20. </sect2>