source: chapter08/bc.xml@ 5e06d04

multilib-10.1
Last change on this file since 5e06d04 was 5e06d04, checked in by Thomas Trepl <thomas@…>, 3 years ago

Merge changes from trunk to multilib

git-svn-id: http://svn.linuxfromscratch.org/LFS/branches/multilib@12107 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689

  • Property mode set to 100644
File size: 3.4 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 <sect1info condition="script">
12 <productname>bc</productname>
13 <productnumber>&bc-version;</productnumber>
14 <address>&bc-url;</address>
15 </sect1info>
16
17 <title>Bc-&bc-version;</title>
18
19 <indexterm zone="ch-system-bc">
20 <primary sortas="a-Bc">Bc</primary>
21 </indexterm>
22
23 <sect2 role="package">
24 <title/>
25
26 <para>The Bc package contains an arbitrary precision numeric processing
27 language.</para>
28
29 <segmentedlist>
30 <segtitle>&buildtime;</segtitle>
31 <segtitle>&diskspace;</segtitle>
32
33 <seglistitem>
34 <seg>&bc-fin-sbu;</seg>
35 <seg>&bc-fin-du;</seg>
36 </seglistitem>
37 </segmentedlist>
38
39 </sect2>
40
41 <sect2 role="installation">
42 <title>Installation of Bc</title>
43
44 <para>First, fix an error in the configure script::</para>
45
46<screen><userinput remap="pre">sed -i '612d' configure.sh</userinput></screen>
47
48 <para>Prepare Bc for compilation:</para>
49
50<screen><userinput remap="configure">PREFIX=/usr CC=gcc ./configure.sh -G -O3</userinput></screen>
51
52 <variablelist>
53 <title>The meaning of the configure options:</title>
54
55 <varlistentry>
56 <term><parameter>CC=gcc"</parameter></term>
57 <listitem>
58 <para>These parameters specify the compiler to use.</para>
59 </listitem>
60 </varlistentry>
61
62 <varlistentry>
63 <term><parameter>-O3</parameter></term>
64 <listitem>
65 <para>Specify the optimization to use.</para>
66 </listitem>
67 </varlistentry>
68
69 <varlistentry>
70 <term><parameter>-G</parameter></term>
71 <listitem>
72 <para>Omit parts of the test suite that won't work
73 without a GNU bc present.</para>
74 </listitem>
75 </varlistentry>
76 </variablelist>
77
78 <para>Compile the package:</para>
79
80<screen><userinput remap="make">make</userinput></screen>
81
82 <para>To test bc, run:</para>
83
84<screen><userinput remap="test">make test</userinput></screen>
85
86
87 <para>Install the package:</para>
88
89<screen><userinput remap="install">make install</userinput></screen>
90
91 </sect2>
92
93 <sect2 id="contents-bc" role="content">
94 <title>Contents of Bc</title>
95
96 <segmentedlist>
97 <segtitle>Installed programs</segtitle>
98
99 <seglistitem>
100 <seg>bc and dc</seg>
101 </seglistitem>
102 </segmentedlist>
103
104 <variablelist>
105 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
106 <?dbfo list-presentation="list"?>
107 <?dbhtml list-presentation="table"?>
108
109 <varlistentry id="bc">
110 <term><command>bc</command></term>
111 <listitem>
112 <para>A command line calculator</para>
113 <indexterm zone="ch-system-bc bc">
114 <primary sortas="b-bc">bc</primary>
115 </indexterm>
116 </listitem>
117 </varlistentry>
118
119 <varlistentry id="dc">
120 <term><command>dc</command></term>
121 <listitem>
122 <para>A reverse-polish command line calculator</para>
123 <indexterm zone="ch-system-bc dc">
124 <primary sortas="b-dc">dc</primary>
125 </indexterm>
126 </listitem>
127 </varlistentry>
128
129 </variablelist>
130
131 </sect2>
132
133</sect1>
Note: See TracBrowser for help on using the repository browser.