%general-entities; ]> bc &bc-version;
&bc-url;
Bc-&bc-version; Bc <para>The Bc package contains an arbitrary precision numeric processing language.</para> <segmentedlist> <segtitle>&buildtime;</segtitle> <segtitle>&diskspace;</segtitle> <seglistitem> <seg>&bc-ch6-sbu;</seg> <seg>&bc-ch6-du;</seg> </seglistitem> </segmentedlist> </sect2> <sect2 role="installation"> <title>Installation of Bc First, fix some minor memory leaks in the code: patch -Np1 -i ../&bc-memory-leak-patch; Create a temporary symbolic link so the package can find the readline library and confirm that its required libncurses library is available. Even though the libraries are in /tools/lib at this point, the system will use /usr/lib at the end of this chapter. ln -sv /tools/lib/libncursesw.so /usr/lib/libncurses.so Prepare Bc for compilation: ./configure --prefix=/usr \ --with-readline \ --mandir=/usr/share/man \ --infodir=/usr/share/info The meaning of the configure options: --with-readline This option tells Bc to use the readline library that is already installed on the system rather than using its own readline version. Compile the package: 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 round off error at the last digit. echo "quit" | ./bc/bc -l Test/checklib.b Install the package: make install Contents of Bc Installed programs bc and dc Short Descriptions bc is a command line calculator bc dc is a reverse-polish command line calculator dc