2013-04-30 01:23:37 +01:00
|
|
|
<?xml version="1.0" encoding="ISO-8859-1"?>
|
|
|
|
<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
|
|
|
"http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
|
|
|
<!ENTITY % general-entities SYSTEM "../general.ent">
|
|
|
|
%general-entities;
|
|
|
|
]>
|
|
|
|
|
|
|
|
<sect1 id="ch-system-bc" role="wrap">
|
|
|
|
<?dbhtml filename="bc.html"?>
|
|
|
|
|
|
|
|
<sect1info condition="script">
|
|
|
|
<productname>bc</productname>
|
|
|
|
<productnumber>&bc-version;</productnumber>
|
|
|
|
<address>&bc-url;</address>
|
|
|
|
</sect1info>
|
|
|
|
|
|
|
|
<title>Bc-&bc-version;</title>
|
|
|
|
|
|
|
|
<indexterm zone="ch-system-bc">
|
|
|
|
<primary sortas="a-Bc">Bc</primary>
|
|
|
|
</indexterm>
|
|
|
|
|
|
|
|
<sect2 role="package">
|
|
|
|
<title/>
|
|
|
|
|
2021-09-07 21:33:18 +01:00
|
|
|
<para>The Bc package contains an arbitrary precision numeric processing
|
2013-04-30 01:23:37 +01:00
|
|
|
language.</para>
|
|
|
|
|
|
|
|
<segmentedlist>
|
|
|
|
<segtitle>&buildtime;</segtitle>
|
|
|
|
<segtitle>&diskspace;</segtitle>
|
|
|
|
|
|
|
|
<seglistitem>
|
2020-06-11 13:55:28 +01:00
|
|
|
<seg>&bc-fin-sbu;</seg>
|
|
|
|
<seg>&bc-fin-du;</seg>
|
2013-04-30 01:23:37 +01:00
|
|
|
</seglistitem>
|
|
|
|
</segmentedlist>
|
|
|
|
|
|
|
|
</sect2>
|
|
|
|
|
|
|
|
<sect2 role="installation">
|
|
|
|
<title>Installation of Bc</title>
|
2020-05-03 22:02:51 +01:00
|
|
|
|
2013-04-30 01:23:37 +01:00
|
|
|
<para>Prepare Bc for compilation:</para>
|
2020-05-03 22:02:51 +01:00
|
|
|
|
2021-03-22 08:08:13 +00:00
|
|
|
<screen><userinput remap="configure">CC=gcc ./configure --prefix=/usr -G -O3</userinput></screen>
|
2013-04-30 01:23:37 +01:00
|
|
|
|
|
|
|
<variablelist>
|
|
|
|
<title>The meaning of the configure options:</title>
|
2020-05-03 22:02:51 +01:00
|
|
|
|
2019-07-15 02:56:52 +01:00
|
|
|
<varlistentry>
|
2021-03-15 05:54:50 +00:00
|
|
|
<term><parameter>CC=gcc</parameter></term>
|
2019-07-15 02:56:52 +01:00
|
|
|
<listitem>
|
2021-03-14 20:42:56 +00:00
|
|
|
<para>This parameter specifies the compiler to use.</para>
|
2019-07-15 02:56:52 +01:00
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
2013-04-30 01:23:37 +01:00
|
|
|
|
2019-07-15 02:56:52 +01:00
|
|
|
<varlistentry>
|
2019-07-15 17:12:03 +01:00
|
|
|
<term><parameter>-O3</parameter></term>
|
2019-07-15 02:56:52 +01:00
|
|
|
<listitem>
|
2019-07-15 17:12:03 +01:00
|
|
|
<para>Specify the optimization to use.</para>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry>
|
|
|
|
<term><parameter>-G</parameter></term>
|
|
|
|
<listitem>
|
|
|
|
<para>Omit parts of the test suite that won't work
|
|
|
|
without a GNU bc present.</para>
|
2019-07-15 02:56:52 +01:00
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
2013-04-30 01:23:37 +01:00
|
|
|
</variablelist>
|
|
|
|
|
|
|
|
<para>Compile the package:</para>
|
|
|
|
|
2017-04-10 17:09:43 +01:00
|
|
|
<screen><userinput remap="make">make</userinput></screen>
|
2019-07-15 02:56:52 +01:00
|
|
|
|
|
|
|
<para>To test bc, run:</para>
|
|
|
|
|
|
|
|
<screen><userinput remap="test">make test</userinput></screen>
|
|
|
|
|
2013-04-30 01:23:37 +01:00
|
|
|
|
|
|
|
<para>Install the package:</para>
|
|
|
|
|
|
|
|
<screen><userinput remap="install">make install</userinput></screen>
|
|
|
|
|
|
|
|
</sect2>
|
|
|
|
|
|
|
|
<sect2 id="contents-bc" role="content">
|
|
|
|
<title>Contents of Bc</title>
|
|
|
|
|
|
|
|
<segmentedlist>
|
|
|
|
<segtitle>Installed programs</segtitle>
|
|
|
|
|
|
|
|
<seglistitem>
|
|
|
|
<seg>bc and dc</seg>
|
|
|
|
</seglistitem>
|
|
|
|
</segmentedlist>
|
|
|
|
|
|
|
|
<variablelist>
|
|
|
|
<bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
|
|
|
<?dbfo list-presentation="list"?>
|
|
|
|
<?dbhtml list-presentation="table"?>
|
|
|
|
|
|
|
|
<varlistentry id="bc">
|
|
|
|
<term><command>bc</command></term>
|
|
|
|
<listitem>
|
2017-12-28 03:52:38 +00:00
|
|
|
<para>A command line calculator</para>
|
2013-04-30 01:23:37 +01:00
|
|
|
<indexterm zone="ch-system-bc bc">
|
|
|
|
<primary sortas="b-bc">bc</primary>
|
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry id="dc">
|
|
|
|
<term><command>dc</command></term>
|
|
|
|
<listitem>
|
2017-12-28 03:52:38 +00:00
|
|
|
<para>A reverse-polish command line calculator</para>
|
2013-04-30 01:23:37 +01:00
|
|
|
<indexterm zone="ch-system-bc dc">
|
|
|
|
<primary sortas="b-dc">dc</primary>
|
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
</variablelist>
|
|
|
|
|
|
|
|
</sect2>
|
|
|
|
|
|
|
|
</sect1>
|