[45b701b] | 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 | <title>Bc-&bc-version;</title>
|
---|
| 12 |
|
---|
| 13 | <indexterm zone="ch-system-bc">
|
---|
| 14 | <primary sortas="a-Bc">Bc</primary>
|
---|
| 15 | </indexterm>
|
---|
| 16 |
|
---|
| 17 | <sect2 role="package">
|
---|
| 18 | <title/>
|
---|
| 19 |
|
---|
[47eeca5] | 20 | <para>The Bc package contains an arbitrary precision numeric processing language.</para>
|
---|
[45b701b] | 21 |
|
---|
| 22 | </sect2>
|
---|
| 23 |
|
---|
| 24 | <sect2 role="installation">
|
---|
| 25 | <title>Installation of Bc</title>
|
---|
| 26 |
|
---|
[e2eebf6] | 27 | <para os="p1">Fix memory leaks:</para>
|
---|
| 28 |
|
---|
| 29 | <screen os="p2"><userinput>patch -Np1 -i ../bc-1.06.95-memory_leak-1.patch</userinput></screen>
|
---|
| 30 |
|
---|
[45b701b] | 31 | <para os="a">Prepare Bc for compilation:</para>
|
---|
| 32 |
|
---|
[7cd7f99] | 33 | <screen os="b"><userinput>./configure \
|
---|
| 34 | --prefix=/usr \
|
---|
| 35 | --with-readline \
|
---|
| 36 | --mandir=/usr/share/man \
|
---|
| 37 | --infodir=/usr/share/info</userinput></screen>
|
---|
[45b701b] | 38 |
|
---|
| 39 | <para os="c">Compile the package:</para>
|
---|
| 40 |
|
---|
| 41 | <screen os="d"><userinput>make</userinput></screen>
|
---|
| 42 |
|
---|
[686839b] | 43 | <para os="e">To test the results, issue:</para>
|
---|
| 44 |
|
---|
| 45 | <screen os="e2"><userinput remap="test">echo "quit" | ./bc/bc -l Test/checklib.b</userinput></screen>
|
---|
[45b701b] | 46 |
|
---|
| 47 | <para os="f">Install the package:</para>
|
---|
| 48 |
|
---|
| 49 | <screen os="g"><userinput>make install</userinput></screen>
|
---|
| 50 |
|
---|
| 51 | </sect2>
|
---|
| 52 |
|
---|
| 53 | <sect2 id="contents-bc" role="content">
|
---|
| 54 | <title>Contents of Bc</title>
|
---|
| 55 |
|
---|
| 56 | <segmentedlist>
|
---|
| 57 | <segtitle>Installed programs</segtitle>
|
---|
| 58 |
|
---|
| 59 | <seglistitem>
|
---|
[f698055a] | 60 | <seg>bc, dc</seg>
|
---|
[45b701b] | 61 | </seglistitem>
|
---|
| 62 | </segmentedlist>
|
---|
| 63 |
|
---|
| 64 | <variablelist>
|
---|
| 65 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 66 | <?dbfo list-presentation="list"?>
|
---|
| 67 | <?dbhtml list-presentation="table"?>
|
---|
| 68 |
|
---|
| 69 | <varlistentry id="bc">
|
---|
| 70 | <term><command>bc</command></term>
|
---|
| 71 | <listitem>
|
---|
| 72 | <para>is a command line calculator</para>
|
---|
| 73 | <indexterm zone="ch-system-bc bc">
|
---|
| 74 | <primary sortas="b-bc">bc</primary>
|
---|
| 75 | </indexterm>
|
---|
| 76 | </listitem>
|
---|
| 77 | </varlistentry>
|
---|
| 78 |
|
---|
| 79 | <varlistentry id="dc">
|
---|
| 80 | <term><command>dc</command></term>
|
---|
| 81 | <listitem>
|
---|
| 82 | <para>is a reverse-polish command line calculator</para>
|
---|
| 83 | <indexterm zone="ch-system-bc dc">
|
---|
| 84 | <primary sortas="b-dc">dc</primary>
|
---|
| 85 | </indexterm>
|
---|
| 86 | </listitem>
|
---|
| 87 | </varlistentry>
|
---|
| 88 |
|
---|
| 89 | </variablelist>
|
---|
| 90 |
|
---|
| 91 | </sect2>
|
---|
| 92 |
|
---|
| 93 | </sect1>
|
---|