[1fb7bae] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
| 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
---|
| 4 | <!ENTITY % general-entities SYSTEM "../general.ent">
|
---|
| 5 | %general-entities;
|
---|
| 6 | ]>
|
---|
| 7 |
|
---|
| 8 | <sect1 id="ch-system-bc" role="wrap">
|
---|
| 9 | <?dbhtml filename="bc.html"?>
|
---|
| 10 |
|
---|
| 11 | <sect1info condition="script">
|
---|
| 12 | <productname>bc</productname>
|
---|
| 13 | <productnumber>&bc-version;</productnumber>
|
---|
| 14 | <address>&bc-url;</address>
|
---|
| 15 | </sect1info>
|
---|
| 16 |
|
---|
| 17 | <title>Bc-&bc-version;</title>
|
---|
| 18 |
|
---|
| 19 | <indexterm zone="ch-system-bc">
|
---|
| 20 | <primary sortas="a-Bc">Bc</primary>
|
---|
| 21 | </indexterm>
|
---|
| 22 |
|
---|
| 23 | <sect2 role="package">
|
---|
| 24 | <title/>
|
---|
| 25 |
|
---|
| 26 | <para>The Bc package contains an arbitrary precision numeric processing
|
---|
| 27 | language.</para>
|
---|
| 28 |
|
---|
| 29 | <segmentedlist>
|
---|
| 30 | <segtitle>&buildtime;</segtitle>
|
---|
| 31 | <segtitle>&diskspace;</segtitle>
|
---|
| 32 |
|
---|
| 33 | <seglistitem>
|
---|
| 34 | <seg>&bc-ch6-sbu;</seg>
|
---|
| 35 | <seg>&bc-ch6-du;</seg>
|
---|
| 36 | </seglistitem>
|
---|
| 37 | </segmentedlist>
|
---|
| 38 |
|
---|
| 39 | </sect2>
|
---|
| 40 |
|
---|
| 41 | <sect2 role="installation">
|
---|
| 42 | <title>Installation of Bc</title>
|
---|
| 43 |
|
---|
[70e3330] | 44 | <para>First, fix some minor memory leaks in the code:</para>
|
---|
| 45 |
|
---|
| 46 | <screen><userinput remap="pre">patch -Np1 -i ../&bc-memory-leak-patch;</userinput></screen>
|
---|
| 47 |
|
---|
[1fb7bae] | 48 | <para>Prepare Bc for compilation:</para>
|
---|
| 49 |
|
---|
[ba4e117] | 50 | <screen><userinput remap="configure">./configure --prefix=/usr \
|
---|
| 51 | --with-readline \
|
---|
| 52 | --mandir=/usr/share/man \
|
---|
| 53 | --infodir=/usr/share/info</userinput></screen>
|
---|
[1fb7bae] | 54 |
|
---|
| 55 | <variablelist>
|
---|
| 56 | <title>The meaning of the configure options:</title>
|
---|
| 57 |
|
---|
| 58 | <varlistentry>
|
---|
| 59 | <term><parameter>--with-readline</parameter></term>
|
---|
| 60 | <listitem>
|
---|
| 61 | <para>This option tells Bc to use the <filename
|
---|
| 62 | class="libraryfile">readline</filename> library that is already
|
---|
| 63 | installed on the system rather than using its own readline
|
---|
| 64 | version.</para>
|
---|
| 65 | </listitem>
|
---|
| 66 | </varlistentry>
|
---|
| 67 |
|
---|
| 68 | </variablelist>
|
---|
| 69 |
|
---|
| 70 | <para>Compile the package:</para>
|
---|
| 71 |
|
---|
| 72 | <screen><userinput remap="make">make</userinput></screen>
|
---|
| 73 |
|
---|
| 74 | <para>To test bc, run the commands below. There is quite a bit of output,
|
---|
| 75 | so you may want to redirect it to a file. There are a very small percentage
|
---|
| 76 | of tests (10 of 12,144) that will indicate a roundoff error at the last
|
---|
| 77 | digit.</para>
|
---|
| 78 |
|
---|
| 79 | <screen><userinput remap="test">echo "quit" | ./bc/bc -l Test/checklib.b</userinput></screen>
|
---|
| 80 |
|
---|
| 81 | <para>Install the package:</para>
|
---|
| 82 |
|
---|
| 83 | <screen><userinput remap="install">make install</userinput></screen>
|
---|
| 84 |
|
---|
| 85 | </sect2>
|
---|
| 86 |
|
---|
| 87 | <sect2 id="contents-bc" role="content">
|
---|
| 88 | <title>Contents of Bc</title>
|
---|
| 89 |
|
---|
| 90 | <segmentedlist>
|
---|
| 91 | <segtitle>Installed programs</segtitle>
|
---|
| 92 |
|
---|
| 93 | <seglistitem>
|
---|
| 94 | <seg>bc and dc</seg>
|
---|
| 95 | </seglistitem>
|
---|
| 96 | </segmentedlist>
|
---|
| 97 |
|
---|
| 98 | <variablelist>
|
---|
| 99 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 100 | <?dbfo list-presentation="list"?>
|
---|
| 101 | <?dbhtml list-presentation="table"?>
|
---|
| 102 |
|
---|
| 103 | <varlistentry id="bc">
|
---|
| 104 | <term><command>bc</command></term>
|
---|
| 105 | <listitem>
|
---|
| 106 | <para>is a command line calculator</para>
|
---|
| 107 | <indexterm zone="ch-system-bc bc">
|
---|
| 108 | <primary sortas="b-bc">bc</primary>
|
---|
| 109 | </indexterm>
|
---|
| 110 | </listitem>
|
---|
| 111 | </varlistentry>
|
---|
| 112 |
|
---|
| 113 | <varlistentry id="dc">
|
---|
| 114 | <term><command>dc</command></term>
|
---|
| 115 | <listitem>
|
---|
| 116 | <para>is a reverse-polish command line calculator</para>
|
---|
| 117 | <indexterm zone="ch-system-bc dc">
|
---|
| 118 | <primary sortas="b-dc">dc</primary>
|
---|
| 119 | </indexterm>
|
---|
| 120 | </listitem>
|
---|
| 121 | </varlistentry>
|
---|
| 122 |
|
---|
| 123 | </variablelist>
|
---|
| 124 |
|
---|
| 125 | </sect2>
|
---|
| 126 |
|
---|
| 127 | </sect1>
|
---|