10.27. Bison-3.0

The Bison package contains a parser generator.

10.27.1. Installation of Bison

The configure script does not determine the correct value for the following. Set the value manually:

echo "ac_cv_prog_lex_is_flex=yes" > config.cache

Prepare Bison for compilation:

./configure --prefix=/usr --cache-file=config.cache

Compile the package:


To test the results, issue: make check.

Install the package:

make install

10.27.2. Contents of Bison

Installed programs: bison and yacc
Installed library: liby.a
Installed directory: /usr/share/bison

Short Descriptions


Generates, from a series of rules, a program for analyzing the structure of text files; Bison is a replacement for Yacc (Yet Another Compiler Compiler)


A wrapper for bison, meant for programs that still call yacc instead of bison; it calls bison with the -y option


The Yacc library containing implementations of Yacc-compatible yyerror and main functions; this library is normally not very useful, but POSIX requires it