source: BOOK/final-system/common/bc.xml @ 4e8ba51

systemd
Last change on this file since 4e8ba51 was 4e8ba51, checked in by William Harrington <kb0iic@…>, 7 years ago

Update BC to 1.07 and update install commands.

  • Property mode set to 100644
File size: 2.6 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
8<sect1 id="ch-system-bc" role="wrap">
9  <?dbhtml filename="bc.html"?>
10
11  <title>Bc-&bc-version;</title>
12
13  <indexterm zone="ch-system-bc">
14    <primary sortas="a-Bc">Bc</primary>
15  </indexterm>
16
17  <sect2 role="package">
18    <title/>
19
20    <para>The Bc package contains an arbitrary precision numeric processing language.</para>
21
22  </sect2>
23
24  <sect2 role="installation">
25    <title>Installation of Bc</title>
26
27    <para os="s1">Change an internal script to use <command>sed</command> 
28        instead of <command>ed</command>:</para>
29
30<screen os="s2"><userinput>cat &gt; bc/fix-libmath_h &lt;&lt; "EOF"
31#! /bin/bash
32sed -e '1   s/^/{"/' \
33    -e     's/$/",/' \
34    -e '2,$ s/^/"/'  \
35    -e   '$ d'       \
36    -i libmath.h
37
38sed -e '$ s/$/0}/' \
39-i libmath.h
40EOF</userinput></screen>
41
42    <para os="a">Prepare Bc for compilation:</para>
43
44<screen os="b"><userinput>./configure \
45    --prefix=/usr \
46    --with-readline \
47    --mandir=/usr/share/man \
48    --infodir=/usr/share/info</userinput></screen>
49
50    <para os="c">Compile the package:</para>
51
52<screen os="d"><userinput>make</userinput></screen>
53
54    <para os="e">To test the results, issue:</para>
55
56<screen os="e2"><userinput remap="test">echo "quit" | ./bc/bc -l Test/checklib.b</userinput></screen>
57
58    <para os="f">Install the package:</para>
59
60<screen os="g"><userinput>make install</userinput></screen>
61
62  </sect2>
63
64  <sect2 id="contents-bc" role="content">
65    <title>Contents of Bc</title>
66
67    <segmentedlist>
68      <segtitle>Installed programs</segtitle>
69
70      <seglistitem>
71        <seg>bc, dc</seg>
72      </seglistitem>
73    </segmentedlist>
74
75    <variablelist>
76      <bridgehead renderas="sect3">Short Descriptions</bridgehead>
77      <?dbfo list-presentation="list"?>
78      <?dbhtml list-presentation="table"?>
79
80      <varlistentry id="bc">
81        <term><command>bc</command></term>
82        <listitem>
83          <para>is a command line calculator</para>
84          <indexterm zone="ch-system-bc bc">
85            <primary sortas="b-bc">bc</primary>
86          </indexterm>
87        </listitem>
88      </varlistentry>
89
90      <varlistentry id="dc">
91        <term><command>dc</command></term>
92          <listitem>
93          <para>is a reverse-polish command line calculator</para>
94          <indexterm zone="ch-system-bc dc">
95            <primary sortas="b-dc">dc</primary>
96          </indexterm>
97        </listitem>
98      </varlistentry>
99
100    </variablelist>
101
102  </sect2>
103
104</sect1>
Note: See TracBrowser for help on using the repository browser.