Free Hosting Online for WorkStations

< Previous | Contents | Next >

6.15.1. Installation of Bc

Prepare Bc for compilation:


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

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.

-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

make

To test bc, run:


make test

make test

Install the package:


make install

make install


Top OS Cloud Computing at OnWorks: