Added a few comments here and there
[linux_from_scratch.git] / BOOK / chapter06 / bison.xml
blob543ec859c6fadd2faa5ffbd71531de06effd7c5c
1 <sect1 id="ch-system-bison" xreflabel="Bison">
2 <title>Installing Bison-&bison-version;</title>
3 <?dbhtml filename="bison.html" dir="chapter06"?>
5 <para>The Bison package contains a parser generator.</para>
7 <screen>&buildtime; &bison-time;
8 &diskspace; &bison-compsize;</screen>
10 &aa-bison-down;
11 &aa-bison-dep;
13 <sect2><title>&nbsp;</title><para>&nbsp;</para></sect2>
15 <sect2>
16 <title>Installation of Bison</title>
18 <para>First fix a minor compilation problem that Bison has with some packages,
19 the patch is backported from CVS:</para>
21 <screen><userinput>patch -Np1 -i ../&bison-patch;</userinput></screen>
23 <para>Now prepare Bison for compilation:</para>
25 <screen><userinput>./configure --prefix=/usr</userinput></screen>
27 <para>Compile the package:</para>
29 <screen><userinput>make</userinput></screen>
31 <para>This package has a test suite available which can perform a number of
32 checks to ensure it built correctly.  Should you choose to run it, the 
33 following command will do so (and takes a long time):</para>
35 <screen><userinput>make check</userinput></screen>
37 <para>And install the package:</para>
39 <screen><userinput>make install</userinput></screen>
41 </sect2>
43 &aa-bison-shortdesc;
44 &aa-bison-desc;
46 </sect1>