[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 |
|
---|
[733dd64] | 27 | <para os="s1">Change an internal script to use <command>sed</command>
|
---|
| 28 | instead of <command>ed</command>:</para>
|
---|
| 29 |
|
---|
| 30 | <screen os="s2"><userinput>cat > bc/fix-libmath_h << "EOF"
|
---|
| 31 | #! /bin/bash
|
---|
| 32 | sed -e '1 s/^/{"/' \
|
---|
| 33 | -e 's/$/",/' \
|
---|
| 34 | -e '2,$ s/^/"/' \
|
---|
| 35 | -e '$ d' \
|
---|
| 36 | -i libmath.h
|
---|
| 37 |
|
---|
| 38 | sed -e '$ s/$/0}/' \
|
---|
| 39 | -i libmath.h
|
---|
| 40 | EOF</userinput></screen>
|
---|
[35f9d48] | 41 |
|
---|
[45b701b] | 42 | <para os="a">Prepare Bc for compilation:</para>
|
---|
| 43 |
|
---|
[b27081c4] | 44 | <screen os="b"><userinput>./configure \
|
---|
| 45 | --prefix=/usr \
|
---|
| 46 | --with-readline \
|
---|
| 47 | --mandir=/usr/share/man \
|
---|
| 48 | --infodir=/usr/share/info</userinput></screen>
|
---|
[45b701b] | 49 |
|
---|
| 50 | <para os="c">Compile the package:</para>
|
---|
| 51 |
|
---|
| 52 | <screen os="d"><userinput>make</userinput></screen>
|
---|
| 53 |
|
---|
[686839b] | 54 | <para os="e">To test the results, issue:</para>
|
---|
| 55 |
|
---|
| 56 | <screen os="e2"><userinput remap="test">echo "quit" | ./bc/bc -l Test/checklib.b</userinput></screen>
|
---|
[45b701b] | 57 |
|
---|
| 58 | <para os="f">Install the package:</para>
|
---|
| 59 |
|
---|
| 60 | <screen os="g"><userinput>make install</userinput></screen>
|
---|
| 61 |
|
---|
| 62 | </sect2>
|
---|
| 63 |
|
---|
| 64 | <sect2 id="contents-bc" role="content">
|
---|
| 65 | <title>Contents of Bc</title>
|
---|
| 66 |
|
---|
| 67 | <segmentedlist>
|
---|
| 68 | <segtitle>Installed programs</segtitle>
|
---|
| 69 |
|
---|
| 70 | <seglistitem>
|
---|
[c2102b28] | 71 | <seg>bc, dc</seg>
|
---|
[45b701b] | 72 | </seglistitem>
|
---|
| 73 | </segmentedlist>
|
---|
| 74 |
|
---|
| 75 | <variablelist>
|
---|
| 76 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 77 | <?dbfo list-presentation="list"?>
|
---|
| 78 | <?dbhtml list-presentation="table"?>
|
---|
| 79 |
|
---|
| 80 | <varlistentry id="bc">
|
---|
| 81 | <term><command>bc</command></term>
|
---|
| 82 | <listitem>
|
---|
| 83 | <para>is a command line calculator</para>
|
---|
| 84 | <indexterm zone="ch-system-bc bc">
|
---|
| 85 | <primary sortas="b-bc">bc</primary>
|
---|
| 86 | </indexterm>
|
---|
| 87 | </listitem>
|
---|
| 88 | </varlistentry>
|
---|
| 89 |
|
---|
| 90 | <varlistentry id="dc">
|
---|
| 91 | <term><command>dc</command></term>
|
---|
| 92 | <listitem>
|
---|
| 93 | <para>is a reverse-polish command line calculator</para>
|
---|
| 94 | <indexterm zone="ch-system-bc dc">
|
---|
| 95 | <primary sortas="b-dc">dc</primary>
|
---|
| 96 | </indexterm>
|
---|
| 97 | </listitem>
|
---|
| 98 | </varlistentry>
|
---|
| 99 |
|
---|
| 100 | </variablelist>
|
---|
| 101 |
|
---|
| 102 | </sect2>
|
---|
| 103 |
|
---|
| 104 | </sect1>
|
---|