bc-1.06.95

Introduction to bc

The bc package contains an arbitrary precision numeric processing language.

[Note]

Note

Starting with linux-3.9 the bc program is needed to build the linux kernel. It is been moved to LFS for LFS-7.4.

This package is known to build and work properly using an LFS-7.4 platform.

Package Information

User Notes: http://wiki.linuxfromscratch.org/blfs/wiki/bc

Installation of Bc

Install bc by running the following commands:

./configure --prefix=/usr --with-readline &&
make

To test bc, run the commands below. There is quite a bit of output, so you may want to redirect it to a file. There are a very small percentage of tests (10 of 12,144) that will indicate a roundoff error at the last digit.

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

Now, as the root user:

make install

Command Explanations

--with-readline: This option enables Readline support in interactive mode.

Contents

Installed Programs: bc and dc
Installed Libraries: None
Installed Directories: None

Short Descriptions

bc

is a calculator.

dc

is a reverse-polish calculator.

Last updated on 2013-09-01 07:04:53 -0700