source: archive/bc.xml@ 3f2db3a6

11.3 12.0 12.1 kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts lazarus lxqt plabs/newcss plabs/python-mods python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition trunk xry111/llvm18 xry111/xf86-video-removal
Last change on this file since 3f2db3a6 was 3f2db3a6, checked in by Pierre Labastie <pierre.labastie@…>, 17 months ago

Remove sect1info tags

They only contain a date tag that is nowhere used.

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