8.16. Bc-3.1.5

#### Linux From Scratch - Version 10.0-rc1

### Chapter 8. Installing Basic System Software

- Prev

  M4-1.4.18

- Next

  Flex-2.6.4

- Up
- Home

# 8.16. Bc-3.1.5

The Bc package contains an arbitrary precision numeric processing language.

Approximate build time: less than 0.1 SBU
Required disk space: 6.5 MB

## 8.16.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 the C standard to use.

`-O3`

  Specify the optimization to use.

`-G`

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

Compile the package:

    make

To test bc, run:

    make test

Install the package:

    make install

## 8.16.2. Contents of Bc

Installed programs: bc and dc

### Short Descriptions

bc | A command line calculator
dc | A reverse-polish command line calculator

- Prev

  M4-1.4.18

- Next

  Flex-2.6.4

- Up
- Home