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-fin-sbu;</seg>
|
---|
35 | <seg>&bc-fin-du;</seg>
|
---|
36 | </seglistitem>
|
---|
37 | </segmentedlist>
|
---|
38 |
|
---|
39 | </sect2>
|
---|
40 |
|
---|
41 | <sect2 role="installation">
|
---|
42 | <title>Installation of Bc</title>
|
---|
43 |
|
---|
44 | <para>Prepare Bc for compilation:</para>
|
---|
45 |
|
---|
46 | <screen><userinput remap="configure">PREFIX=/usr CC=gcc ./configure.sh -G -O3</userinput></screen>
|
---|
47 |
|
---|
48 | <variablelist>
|
---|
49 | <title>The meaning of the configure options:</title>
|
---|
50 |
|
---|
51 | <varlistentry>
|
---|
52 | <term><parameter>CC=gcc"</parameter></term>
|
---|
53 | <listitem>
|
---|
54 | <para>These parameters specify the compiler to use.</para>
|
---|
55 | </listitem>
|
---|
56 | </varlistentry>
|
---|
57 |
|
---|
58 | <varlistentry>
|
---|
59 | <term><parameter>-O3</parameter></term>
|
---|
60 | <listitem>
|
---|
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>
|
---|
70 | </listitem>
|
---|
71 | </varlistentry>
|
---|
72 | </variablelist>
|
---|
73 |
|
---|
74 | <para>Compile the package:</para>
|
---|
75 |
|
---|
76 | <screen><userinput remap="make">make</userinput></screen>
|
---|
77 |
|
---|
78 | <para>To test bc, run:</para>
|
---|
79 |
|
---|
80 | <screen><userinput remap="test">make test</userinput></screen>
|
---|
81 |
|
---|
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>
|
---|
108 | <para>A command line calculator</para>
|
---|
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>
|
---|
118 | <para>A reverse-polish command line calculator</para>
|
---|
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>
|
---|