[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>
|
---|
[fb386e0] | 34 | <seg>&bc-fin-sbu;</seg>
|
---|
| 35 | <seg>&bc-fin-du;</seg>
|
---|
[1fb7bae] | 36 | </seglistitem>
|
---|
| 37 | </segmentedlist>
|
---|
| 38 |
|
---|
| 39 | </sect2>
|
---|
| 40 |
|
---|
| 41 | <sect2 role="installation">
|
---|
| 42 | <title>Installation of Bc</title>
|
---|
[efcb393] | 43 |
|
---|
[1fb7bae] | 44 | <para>Prepare Bc for compilation:</para>
|
---|
[efcb393] | 45 |
|
---|
[9c1ae4c] | 46 | <screen><userinput remap="configure">CC=gcc ./configure --prefix=/usr -G -O3</userinput></screen>
|
---|
[1fb7bae] | 47 |
|
---|
| 48 | <variablelist>
|
---|
| 49 | <title>The meaning of the configure options:</title>
|
---|
[efcb393] | 50 |
|
---|
[12a27da7] | 51 | <varlistentry>
|
---|
[4311bfa] | 52 | <term><parameter>CC=gcc</parameter></term>
|
---|
[12a27da7] | 53 | <listitem>
|
---|
[fa510ae] | 54 | <para>This parameter specifies the compiler to use.</para>
|
---|
[12a27da7] | 55 | </listitem>
|
---|
| 56 | </varlistentry>
|
---|
[1fb7bae] | 57 |
|
---|
[12a27da7] | 58 | <varlistentry>
|
---|
[474de8b1] | 59 | <term><parameter>-O3</parameter></term>
|
---|
[12a27da7] | 60 | <listitem>
|
---|
[474de8b1] | 61 | <para>Specify the optimization to use.</para>
|
---|
| 62 | </listitem>
|
---|
| 63 | </varlistentry>
|
---|
| 64 |
|
---|
| 65 | <varlistentry>
|
---|
| 66 | <term><parameter>-G</parameter></term>
|
---|
| 67 | <listitem>
|
---|
| 68 | <para>Omit parts of the test suite that won't work
|
---|
| 69 | without a GNU bc present.</para>
|
---|
[12a27da7] | 70 | </listitem>
|
---|
| 71 | </varlistentry>
|
---|
[1fb7bae] | 72 | </variablelist>
|
---|
| 73 |
|
---|
| 74 | <para>Compile the package:</para>
|
---|
| 75 |
|
---|
[e97fa92] | 76 | <screen><userinput remap="make">make</userinput></screen>
|
---|
[12a27da7] | 77 |
|
---|
| 78 | <para>To test bc, run:</para>
|
---|
| 79 |
|
---|
| 80 | <screen><userinput remap="test">make test</userinput></screen>
|
---|
| 81 |
|
---|
[1fb7bae] | 82 |
|
---|
| 83 | <para>Install the package:</para>
|
---|
| 84 |
|
---|
| 85 | <screen><userinput remap="install">make install</userinput></screen>
|
---|
| 86 |
|
---|
| 87 | </sect2>
|
---|
| 88 |
|
---|
| 89 | <sect2 id="contents-bc" role="content">
|
---|
| 90 | <title>Contents of Bc</title>
|
---|
| 91 |
|
---|
| 92 | <segmentedlist>
|
---|
| 93 | <segtitle>Installed programs</segtitle>
|
---|
| 94 |
|
---|
| 95 | <seglistitem>
|
---|
| 96 | <seg>bc and dc</seg>
|
---|
| 97 | </seglistitem>
|
---|
| 98 | </segmentedlist>
|
---|
| 99 |
|
---|
| 100 | <variablelist>
|
---|
| 101 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 102 | <?dbfo list-presentation="list"?>
|
---|
| 103 | <?dbhtml list-presentation="table"?>
|
---|
| 104 |
|
---|
| 105 | <varlistentry id="bc">
|
---|
| 106 | <term><command>bc</command></term>
|
---|
| 107 | <listitem>
|
---|
[0d84af1] | 108 | <para>A command line calculator</para>
|
---|
[1fb7bae] | 109 | <indexterm zone="ch-system-bc bc">
|
---|
| 110 | <primary sortas="b-bc">bc</primary>
|
---|
| 111 | </indexterm>
|
---|
| 112 | </listitem>
|
---|
| 113 | </varlistentry>
|
---|
| 114 |
|
---|
| 115 | <varlistentry id="dc">
|
---|
| 116 | <term><command>dc</command></term>
|
---|
| 117 | <listitem>
|
---|
[0d84af1] | 118 | <para>A reverse-polish command line calculator</para>
|
---|
[1fb7bae] | 119 | <indexterm zone="ch-system-bc dc">
|
---|
| 120 | <primary sortas="b-dc">dc</primary>
|
---|
| 121 | </indexterm>
|
---|
| 122 | </listitem>
|
---|
| 123 | </varlistentry>
|
---|
| 124 |
|
---|
| 125 | </variablelist>
|
---|
| 126 |
|
---|
| 127 | </sect2>
|
---|
| 128 |
|
---|
| 129 | </sect1>
|
---|