6.17. Bc-2.5.3

The Bc package contains an arbitrary precision numeric processing language.

Approximate build time: 0.1 SBU
Required disk space: 2.9 MB

6.17.1. Installation of Bc

Prepare Bc for compilation:

PREFIX=/usr CC=gcc CFLAGS="-std=c99" ./configure.sh -G -O3

The meaning of the configure options:

CC=gcc CFLAGS="-std=c99"

These parameters specify the compiler and C standard to use.


Specify the optimization to use.


Omit parts of the test suite that won't work without a GNU bc present.

Compile the package:


To test bc, run:

make test

Install the package:

make install

6.17.2. Contents of Bc

Installed programs: bc and dc

Short Descriptions


A command line calculator


A reverse-polish command line calculator