diff options
author | Gerard Beekmans <gerard@linuxfromscratch.org> | 2001-02-15 15:26:52 +0000 |
---|---|---|
committer | Gerard Beekmans <gerard@linuxfromscratch.org> | 2001-02-15 15:26:52 +0000 |
commit | b08f4096533577934b885fa9df41d3881d141612 (patch) | |
tree | 8e5ffc0ba65ac34d97cd6a896d33b85a897a6da8 /chapter06/bison-inst.xml | |
parent | ad08014624938a3a3bfd1b44e8b27d02c7b06dd8 (diff) |
Initial XML commit
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@174 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
Diffstat (limited to 'chapter06/bison-inst.xml')
-rw-r--r-- | chapter06/bison-inst.xml | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/chapter06/bison-inst.xml b/chapter06/bison-inst.xml new file mode 100644 index 000000000..6d44ec182 --- /dev/null +++ b/chapter06/bison-inst.xml @@ -0,0 +1,45 @@ +<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 + +/usr/bin/bison -y "$@" + +# End /usr/bin/yacc +<userinput>EOF</userinput> +<userinput>chmod 755 /usr/bin/yacc</userinput> + +</literallayout> + +</sect2> + |