source: general/genutils/bc.xml@ 0aeb696

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 6.2 6.2.0 6.2.0-rc1 6.2.0-rc2 6.3 6.3-rc1 6.3-rc2 6.3-rc3 7.10 7.4 7.5 7.6 7.6-blfs 7.6-systemd 7.7 7.8 7.9 8.0 8.1 8.2 8.3 8.4 9.0 9.1 basic bdubbs/svn elogind gnome kde5-13430 kde5-14269 kde5-14686 kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts krejzi/svn lazarus lxqt nosym perl-modules plabs/newcss plabs/python-mods python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition systemd-11177 systemd-13485 trunk upgradedb xry111/intltool xry111/llvm18 xry111/soup3 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since 0aeb696 was 0aeb696, checked in by Randy McMurchy <randy@…>, 18 years ago

Added a comment to each file that may need a mention of a test suite added to it, this allows closing of bug #1697

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@5951 af4574ff-66df-0310-9fd7-8a98e5e911e0

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