bc.xml 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122
  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. <sect1 id="ch-system-bc" role="wrap">
  8. <?dbhtml filename="bc.html"?>
  9. <sect1info condition="script">
  10. <productname>bc</productname>
  11. <productnumber>&bc-version;</productnumber>
  12. <address>&bc-url;</address>
  13. </sect1info>
  14. <title>Bc-&bc-version;</title>
  15. <indexterm zone="ch-system-bc">
  16. <primary sortas="a-Bc">Bc</primary>
  17. </indexterm>
  18. <sect2 role="package">
  19. <title/>
  20. <para>The Bc package contains an arbitrary precision numeric processing
  21. language.</para>
  22. <segmentedlist>
  23. <segtitle>&buildtime;</segtitle>
  24. <segtitle>&diskspace;</segtitle>
  25. <seglistitem>
  26. <seg>&bc-ch6-sbu;</seg>
  27. <seg>&bc-ch6-du;</seg>
  28. </seglistitem>
  29. </segmentedlist>
  30. </sect2>
  31. <sect2 role="installation">
  32. <title>Installation of Bc</title>
  33. <para>Prepare Bc for compilation:</para>
  34. <screen><userinput remap="configure">./configure --prefix=/usr \
  35. --with-readline \
  36. --mandir=/usr/share/man</userinput></screen>
  37. <variablelist>
  38. <title>The meaning of the configure options:</title>
  39. <varlistentry>
  40. <term><parameter>--with-readline</parameter></term>
  41. <listitem>
  42. <para>This option tells Bc to use the <filename
  43. class="libraryfile">readline</filename> library that is already
  44. installed on the system rather than using its own readline
  45. version.</para>
  46. </listitem>
  47. </varlistentry>
  48. </variablelist>
  49. <para>Compile the package:</para>
  50. <screen><userinput remap="make">make</userinput></screen>
  51. <para>To test bc, run the commands below. There is quite a bit of output,
  52. so you may want to redirect it to a file. There are a very small percentage
  53. of tests (10 of 12,144) that will indicate a roundoff error at the last
  54. digit.</para>
  55. <screen><userinput remap="test">echo "quit" | ./bc/bc -l Test/checklib.b</userinput></screen>
  56. <para>Install the package:</para>
  57. <screen><userinput remap="install">make install</userinput></screen>
  58. </sect2>
  59. <sect2 id="contents-bc" role="content">
  60. <title>Contents of Bc</title>
  61. <segmentedlist>
  62. <segtitle>Installed programs</segtitle>
  63. <seglistitem>
  64. <seg>bc and dc</seg>
  65. </seglistitem>
  66. </segmentedlist>
  67. <variablelist>
  68. <bridgehead renderas="sect3">Short Descriptions</bridgehead>
  69. <?dbfo list-presentation="list"?>
  70. <?dbhtml list-presentation="table"?>
  71. <varlistentry id="bc">
  72. <term><command>bc</command></term>
  73. <listitem>
  74. <para>is a command line calculator</para>
  75. <indexterm zone="ch-system-bc bc">
  76. <primary sortas="b-bc">bc</primary>
  77. </indexterm>
  78. </listitem>
  79. </varlistentry>
  80. <varlistentry id="dc">
  81. <term><command>dc</command></term>
  82. <listitem>
  83. <para>is a reverse-polish command line calculator</para>
  84. <indexterm zone="ch-system-bc dc">
  85. <primary sortas="b-dc">dc</primary>
  86. </indexterm>
  87. </listitem>
  88. </varlistentry>
  89. </variablelist>
  90. </sect2>
  91. </sect1>