10.61. Bc-1.07.1

The Bc package contains an arbitrary precision numeric processing language.

10.61.1. Installation of Bc

Change an internal script to use sed instead of ed:

cat > bc/fix-libmath_h << "EOF"
#! /bin/bash
sed -e '1   s/^/{"/' \
    -e     's/$/",/' \
    -e '2,$ s/^/"/'  \
    -e   '$ d'       \
    -i libmath.h

sed -e '$ s/$/0}/' \
-i libmath.h

Prepare Bc for compilation:

CC="gcc ${BUILD64}" \
./configure \
    --prefix=/usr \
    --mandir=/usr/share/man \

Compile the package:


To test the results, issue:

echo "quit" | ./bc/bc -l Test/checklib.b

Install the package:

make install

10.61.2. Contents of Bc

Installed programs: bc, dc

Short Descriptions


is a command line calculator


is a reverse-polish command line calculator