6.24. Installing Bison-1.875

Estimated build time:           0.6 SBU
Estimated required disk space:  10.6 MB

6.24.1. Contents of Bison

Bison is a parser generator, a replacement for yacc. Bison generates a program that analyzes the structure of a text file.

Installed programs: bison and yacc

Installed library: liby.a

6.24.2.

6.24.3. Bison Installation Dependencies

Bison depends on: Bash, Binutils, Coreutils, Diffutils, GCC, Gettext, Glibc, Grep, M4, Make, Sed.

6.24.4.

6.24.5. Installation of Bison

First we use a patch to bison, backported from CVS, which fixes a minor compilation problem with some packages:

patch -Np1 -i ../bison-1.875-attribute.patch

Prepare Bison for compilation:

./configure --prefix=/usr

Compile the package:

make

This package has a test suite available which can perform a number of checks to ensure it built correctly. Should you choose to run it, the following command will do so (and takes a long time):

make check

And install the package:

make install