6.12. Bison-2.3

The Bison package contains a parser generator.

6.12.1. Installation of Bison

Prepare Bison for compilation:

./configure --build=${CLFS_HOST} --host=${CLFS_TARGET} \

The configure system causes bison to be built without support for internationalization of error messages if a bison program is not already in ${PATH}. The following addition will correct this:

echo '#define YYENABLE_NLS 1' >> config.h

Compile the package:


Install the package:

make DESTDIR=${CLFS} install

6.12.2. Contents of Bison

Installed programs: bison and yacc
Installed library: liby.a

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