2004-06-13 06:56:28 +08:00
|
|
|
<?xml version="1.0" encoding="ISO-8859-1"?>
|
2005-04-04 04:52:42 +08:00
|
|
|
<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
|
|
|
|
"http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
|
2004-06-13 06:56:28 +08:00
|
|
|
<!ENTITY % general-entities SYSTEM "../../general.ent">
|
|
|
|
%general-entities;
|
|
|
|
|
|
|
|
<!ENTITY bc-download-http "http://ftp.gnu.org/gnu/bc/bc-&bc-version;.tar.gz">
|
|
|
|
<!ENTITY bc-download-ftp "ftp://ftp.gnu.org/gnu/bc/bc-&bc-version;.tar.gz">
|
2005-02-08 07:48:17 +08:00
|
|
|
<!ENTITY bc-md5sum "d44b5dddebd8a7a7309aea6c36fda117">
|
2005-03-24 14:26:31 +08:00
|
|
|
<!ENTITY bc-size "278 KB">
|
|
|
|
<!ENTITY bc-buildsize "2.31 MB">
|
|
|
|
<!ENTITY bc-time "0.04 SBU">
|
2004-06-13 06:56:28 +08:00
|
|
|
]>
|
|
|
|
|
|
|
|
<sect1 id="bc" xreflabel="bc-&bc-version;">
|
2004-08-10 12:23:09 +08:00
|
|
|
<sect1info>
|
2004-08-10 12:25:57 +08:00
|
|
|
<othername>$LastChangedBy$</othername>
|
|
|
|
<date>$Date$</date>
|
2004-08-10 12:23:09 +08:00
|
|
|
</sect1info>
|
2004-06-13 06:56:28 +08:00
|
|
|
<?dbhtml filename="bc.html"?>
|
|
|
|
<title>bc-&bc-version;</title>
|
2005-03-24 14:26:31 +08:00
|
|
|
<indexterm zone="bc">
|
|
|
|
<primary sortas="a-Bc">Bc</primary></indexterm>
|
2004-06-13 06:56:28 +08:00
|
|
|
|
|
|
|
<sect2>
|
|
|
|
<title>Introduction to <application>bc</application></title>
|
2004-06-29 04:22:48 +08:00
|
|
|
|
2004-06-13 06:56:28 +08:00
|
|
|
<para>The <application>bc</application> package contains
|
|
|
|
an arbitrary precision numeric processing language.</para>
|
2004-06-29 04:22:48 +08:00
|
|
|
|
2004-06-13 06:56:28 +08:00
|
|
|
<sect3><title>Package information</title>
|
|
|
|
<itemizedlist spacing='compact'>
|
|
|
|
<listitem><para>Download (HTTP): <ulink
|
|
|
|
url="&bc-download-http;"/></para></listitem>
|
|
|
|
<listitem><para>Download (FTP): <ulink
|
|
|
|
url="&bc-download-ftp;"/></para></listitem>
|
2005-02-08 07:48:17 +08:00
|
|
|
<listitem><para>Download MD5 sum: &bc-md5sum;</para></listitem>
|
2004-06-13 06:56:28 +08:00
|
|
|
<listitem><para>Download size: &bc-size;</para></listitem>
|
2005-01-11 01:48:41 +08:00
|
|
|
<listitem><para>Estimated disk space required:
|
2004-06-13 06:56:28 +08:00
|
|
|
&bc-buildsize;</para></listitem>
|
|
|
|
<listitem><para>Estimated build time:
|
|
|
|
&bc-time;</para></listitem></itemizedlist>
|
|
|
|
</sect3>
|
2004-06-29 04:22:48 +08:00
|
|
|
|
2004-06-13 06:56:28 +08:00
|
|
|
<sect3><title>Additional downloads</title>
|
|
|
|
<itemizedlist spacing='compact'>
|
2005-04-04 06:08:26 +08:00
|
|
|
<listitem><para>Required patch: <ulink
|
2004-06-29 04:22:48 +08:00
|
|
|
url="&patch-root;/bc-&bc-version;-flex_invocation-1.patch"/></para></listitem>
|
2005-04-04 06:08:26 +08:00
|
|
|
<listitem><para>Required patch: <ulink
|
2004-06-29 04:22:48 +08:00
|
|
|
url="&patch-root;/bc-&bc-version;-readline-1.patch"/></para></listitem>
|
2004-06-13 06:56:28 +08:00
|
|
|
</itemizedlist></sect3>
|
2004-06-29 04:22:48 +08:00
|
|
|
|
2005-04-04 06:08:26 +08:00
|
|
|
<sect3><title><application>bc</application> dependencies</title>
|
|
|
|
<sect4><title>Optional</title>
|
|
|
|
<para><ulink
|
|
|
|
url="http://sourceforge.net/projects/libedit/">libedit</ulink>
|
|
|
|
(as an alternative to readline)</para></sect4>
|
|
|
|
</sect3>
|
|
|
|
|
2004-06-13 06:56:28 +08:00
|
|
|
</sect2>
|
|
|
|
|
|
|
|
<sect2>
|
|
|
|
<title>Installation of <command>bc</command></title>
|
2004-06-29 04:22:48 +08:00
|
|
|
|
2005-04-04 06:08:26 +08:00
|
|
|
<para>Install <application>bc</application> by running the following commands:</para>
|
2004-06-29 04:22:48 +08:00
|
|
|
|
|
|
|
<screen><userinput><command>patch -Np1 -i ../bc-&bc-version;-flex_invocation-1.patch &&
|
|
|
|
patch -Np1 -i ../bc-&bc-version;-readline-1.patch &&
|
2004-06-13 06:56:28 +08:00
|
|
|
./configure --prefix=/usr --with-readline &&
|
2005-03-24 14:26:31 +08:00
|
|
|
make</command></userinput></screen>
|
2004-06-29 04:22:48 +08:00
|
|
|
|
2005-04-04 06:08:26 +08:00
|
|
|
<para>This package does not come with a test suite.</para>
|
|
|
|
|
2005-03-24 14:26:31 +08:00
|
|
|
<para>Now, as the root user:</para>
|
2004-06-29 04:22:48 +08:00
|
|
|
|
2005-03-24 14:26:31 +08:00
|
|
|
<screen><userinput role='root'><command>make install</command></userinput></screen>
|
2004-06-29 04:22:48 +08:00
|
|
|
|
2004-06-13 06:56:28 +08:00
|
|
|
</sect2>
|
2004-06-29 04:22:48 +08:00
|
|
|
|
2005-03-24 14:26:31 +08:00
|
|
|
<sect2>
|
|
|
|
<title>Contents</title>
|
2004-06-29 04:22:48 +08:00
|
|
|
|
2005-03-24 14:26:31 +08:00
|
|
|
<segmentedlist>
|
|
|
|
<segtitle>Installed Programs</segtitle>
|
|
|
|
<segtitle>Installed Libraries</segtitle>
|
|
|
|
<segtitle>Installed Directories</segtitle>
|
|
|
|
|
|
|
|
<seglistitem>
|
|
|
|
<seg>bc and dc</seg>
|
|
|
|
<seg>None</seg>
|
|
|
|
<seg>None</seg>
|
|
|
|
</seglistitem>
|
|
|
|
</segmentedlist>
|
|
|
|
|
|
|
|
<variablelist>
|
|
|
|
<bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
|
|
|
<?dbfo list-presentation="list"?>
|
|
|
|
|
|
|
|
<varlistentry id="bc-prog">
|
|
|
|
<term><command>bc</command></term>
|
|
|
|
<listitem><para>is a calculator.</para>
|
|
|
|
<indexterm zone="bc bc-prog">
|
|
|
|
<primary sortas="b-bc">bc</primary>
|
|
|
|
</indexterm></listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry id="dc">
|
|
|
|
<term><command>dc</command></term>
|
|
|
|
<listitem><para>is a reverse-polish calculator.</para>
|
|
|
|
<indexterm zone="bc dc">
|
|
|
|
<primary sortas="b-dc">dc</primary>
|
|
|
|
</indexterm></listitem>
|
|
|
|
</varlistentry>
|
|
|
|
</variablelist>
|
2004-06-29 04:22:48 +08:00
|
|
|
|
2004-06-13 06:56:28 +08:00
|
|
|
</sect2>
|
|
|
|
|
|
|
|
</sect1>
|
|
|
|
|