source: archive/bc.xml

trunk
Last change on this file was 45ab6c7, checked in by Xi Ruoyao <xry111@…>, 3 months ago

more SVN prop clean up

Remove "$LastChanged$" everywhere, and also some unused $Date$

  • Property mode set to 100644
File size: 5.3 KB
Line 
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 <!-- Inserted as a reminder to do this. The mention of a test suite
8 is usually right before the root user installation commands. Please
9 delete these 12 (including one blank) lines after you are done.-->
10
11 <!-- Use one of the two mentions below about a test suite,
12 delete the line that is not applicable. Of course, if the
13 test suite uses syntax other than "make check", revise the
14 line to reflect the actual syntax to run the test suite -->
15
16 <!-- <para>This package does not come with a test suite.</para> -->
17 <!-- <para>To test the results, issue: <command>make check</command>.</para> -->
18
19 <!ENTITY bc-download-http "&gnu-alpha-http;bc/bc-&bc-version;.tar.bz2">
20 <!ENTITY bc-download-ftp "&gnu-alpha-ftp;bc/bc-&bc-version;.tar.bz2">
21 <!ENTITY bc-md5sum "5126a721b73f97d715bb72c13c889035">
22 <!ENTITY bc-size "288 KB">
23 <!ENTITY bc-buildsize "3 MB">
24 <!ENTITY bc-time "less than 0.1 SBU (0.2 SBU if running the testsuite)">
25]>
26
27<sect1 id="bc" xreflabel="bc-&bc-version;">
28 <?dbhtml filename="bc.html"?>
29
30 <sect1info>
31 <date>$Date$</date>
32 </sect1info>
33
34 <title>bc-&bc-version;</title>
35
36 <indexterm zone="bc">
37 <primary sortas="a-Bc">Bc</primary>
38 </indexterm>
39
40 <sect2 role="package">
41 <title>Introduction to bc</title>
42
43 <para>The <application>bc</application> package contains
44 an arbitrary precision numeric processing language.</para>
45
46 <note><para>Starting with linux-3.9 the <command>bc</command>
47 program is needed to build the linux kernel. It is been moved
48 to LFS for LFS-7.4.</para></note>
49
50 &lfs74_checked;
51
52 <bridgehead renderas="sect3">Package Information</bridgehead>
53 <itemizedlist spacing="compact">
54 <listitem>
55 <para>Download (HTTP): <ulink url="&bc-download-http;"/></para>
56 </listitem>
57 <listitem>
58 <para>Download (FTP): <ulink url="&bc-download-ftp;"/></para>
59 </listitem>
60 <listitem>
61 <para>Download MD5 sum: &bc-md5sum;</para>
62 </listitem>
63 <listitem>
64 <para>Download size: &bc-size;</para>
65 </listitem>
66 <listitem>
67 <para>Estimated disk space required: &bc-buildsize;</para>
68 </listitem>
69 <listitem>
70 <para>Estimated build time: &bc-time;</para>
71 </listitem>
72 </itemizedlist>
73
74 <para condition="html" role="usernotes">User Notes:
75 <ulink url="&blfs-wiki;/bc"/></para>
76
77 </sect2>
78
79 <sect2 role="installation">
80 <title>Installation of Bc</title>
81
82 <para>Install <application>bc</application> by running the following commands:</para>
83
84<screen><userinput>./configure --prefix=/usr --with-readline &amp;&amp;
85make</userinput></screen>
86
87 <para>To test <application>bc</application>, run the commands below.
88 There is quite a bit of output, so you may want to redirect it to a file.
89 There are a very small percentage of tests (10 of 12,144) that will
90 indicate a roundoff error at the last digit.</para>
91
92<screen><userinput>echo "quit" | ./bc/bc -l Test/checklib.b</userinput></screen>
93
94 <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
95
96<screen role="root"><userinput>make install</userinput></screen>
97
98 </sect2>
99
100 <sect2 role="commands">
101 <title>Command Explanations</title>
102<!--
103 <para><command>sed -i '/PROTO.*readline/d' bc/scan.l</command>: This
104 command fixes the <application>Readline</application> library call.</para>
105
106 <para><command>sed -i '/flex -I8/s/8//' configure</command>: This
107 command fixes the <application>Flex</application> invocation.</para>
108
109 <para><command>sed -i '/stdlib/a #include &lt;string.h&gt;' lib/number.c</command>:
110 This command inserts a missing header.</para>
111
112 <para><command>sed -i 's/program.*save/static &amp;/' bc/load.c</command>:
113 This command fixes a segfault when running <application>bc</application>
114 with <command>bc -l</command>.</para>
115-->
116 <para><parameter>--with-readline</parameter>: This option enables
117 <application>Readline</application> support in interactive mode.</para>
118
119 </sect2>
120
121 <sect2 role="content">
122 <title>Contents</title>
123
124 <segmentedlist>
125 <segtitle>Installed Programs</segtitle>
126 <segtitle>Installed Libraries</segtitle>
127 <segtitle>Installed Directories</segtitle>
128
129 <seglistitem>
130 <seg>bc and dc</seg>
131 <seg>None</seg>
132 <seg>None</seg>
133 </seglistitem>
134 </segmentedlist>
135
136 <variablelist>
137 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
138 <?dbfo list-presentation="list"?>
139 <?dbhtml list-presentation="table"?>
140
141 <varlistentry id="bc-prog">
142 <term><command>bc</command></term>
143 <listitem>
144 <para>is a calculator.</para>
145 <indexterm zone="bc bc-prog">
146 <primary sortas="b-bc">bc</primary>
147 </indexterm>
148 </listitem>
149 </varlistentry>
150
151 <varlistentry id="dc">
152 <term><command>dc</command></term>
153 <listitem>
154 <para>is a reverse-polish calculator.</para>
155 <indexterm zone="bc dc">
156 <primary sortas="b-dc">dc</primary>
157 </indexterm>
158 </listitem>
159 </varlistentry>
160
161 </variablelist>
162
163 </sect2>
164
165</sect1>
166
Note: See TracBrowser for help on using the repository browser.