source: general/genutils/bc.xml@ ed24600

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 ed24600 was ed24600, checked in by Dan Nichilson <dnicholson@…>, 18 years ago

Fixed Bc testsuite and note

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

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