glfs/archive/bc.xml
Xi Ruoyao 45ab6c70c2
more SVN prop clean up
Remove "$LastChanged$" everywhere, and also some unused $Date$
2021-04-20 19:12:02 +08:00

167 lines
5.3 KiB
XML

<?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;
<!-- Inserted as a reminder to do this. The mention of a test suite
is usually right before the root user installation commands. Please
delete these 12 (including one blank) lines after you are done.-->
<!-- Use one of the two mentions below about a test suite,
delete the line that is not applicable. Of course, if the
test suite uses syntax other than "make check", revise the
line to reflect the actual syntax to run the test suite -->
<!-- <para>This package does not come with a test suite.</para> -->
<!-- <para>To test the results, issue: <command>make check</command>.</para> -->
<!ENTITY bc-download-http "&gnu-alpha-http;bc/bc-&bc-version;.tar.bz2">
<!ENTITY bc-download-ftp "&gnu-alpha-ftp;bc/bc-&bc-version;.tar.bz2">
<!ENTITY bc-md5sum "5126a721b73f97d715bb72c13c889035">
<!ENTITY bc-size "288 KB">
<!ENTITY bc-buildsize "3 MB">
<!ENTITY bc-time "less than 0.1 SBU (0.2 SBU if running the testsuite)">
]>
<sect1 id="bc" xreflabel="bc-&bc-version;">
<?dbhtml filename="bc.html"?>
<sect1info>
<date>$Date$</date>
</sect1info>
<title>bc-&bc-version;</title>
<indexterm zone="bc">
<primary sortas="a-Bc">Bc</primary>
</indexterm>
<sect2 role="package">
<title>Introduction to bc</title>
<para>The <application>bc</application> package contains
an arbitrary precision numeric processing language.</para>
<note><para>Starting with linux-3.9 the <command>bc</command>
program is needed to build the linux kernel. It is been moved
to LFS for LFS-7.4.</para></note>
&lfs74_checked;
<bridgehead renderas="sect3">Package Information</bridgehead>
<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>
<listitem>
<para>Download MD5 sum: &bc-md5sum;</para>
</listitem>
<listitem>
<para>Download size: &bc-size;</para>
</listitem>
<listitem>
<para>Estimated disk space required: &bc-buildsize;</para>
</listitem>
<listitem>
<para>Estimated build time: &bc-time;</para>
</listitem>
</itemizedlist>
<para condition="html" role="usernotes">User Notes:
<ulink url="&blfs-wiki;/bc"/></para>
</sect2>
<sect2 role="installation">
<title>Installation of Bc</title>
<para>Install <application>bc</application> by running the following commands:</para>
<screen><userinput>./configure --prefix=/usr --with-readline &amp;&amp;
make</userinput></screen>
<para>To test <application>bc</application>, run the commands below.
There is quite a bit of output, so you may want to redirect it to a file.
There are a very small percentage of tests (10 of 12,144) that will
indicate a roundoff error at the last digit.</para>
<screen><userinput>echo "quit" | ./bc/bc -l Test/checklib.b</userinput></screen>
<para>Now, as the <systemitem class="username">root</systemitem> user:</para>
<screen role="root"><userinput>make install</userinput></screen>
</sect2>
<sect2 role="commands">
<title>Command Explanations</title>
<!--
<para><command>sed -i '/PROTO.*readline/d' bc/scan.l</command>: This
command fixes the <application>Readline</application> library call.</para>
<para><command>sed -i '/flex -I8/s/8//' configure</command>: This
command fixes the <application>Flex</application> invocation.</para>
<para><command>sed -i '/stdlib/a #include &lt;string.h&gt;' lib/number.c</command>:
This command inserts a missing header.</para>
<para><command>sed -i 's/program.*save/static &amp;/' bc/load.c</command>:
This command fixes a segfault when running <application>bc</application>
with <command>bc -l</command>.</para>
-->
<para><parameter>--with-readline</parameter>: This option enables
<application>Readline</application> support in interactive mode.</para>
</sect2>
<sect2 role="content">
<title>Contents</title>
<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"?>
<?dbhtml list-presentation="table"?>
<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>
</sect2>
</sect1>