bc.xml 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133
  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-fin-sbu;</seg>
  27. <seg>&bc-fin-du;</seg>
  28. </seglistitem>
  29. </segmentedlist>
  30. </sect2>
  31. <sect2 role="installation">
  32. <title>Installation of Bc</title>
  33. <para>First, fix an error in the configure script::</para>
  34. <screen><userinput remap="pre">sed -i '612d' configure.sh</userinput></screen>
  35. <para>Prepare Bc for compilation:</para>
  36. <screen><userinput remap="configure">PREFIX=/usr CC=gcc ./configure.sh -G -O3</userinput></screen>
  37. <variablelist>
  38. <title>The meaning of the configure options:</title>
  39. <varlistentry>
  40. <term><parameter>CC=gcc"</parameter></term>
  41. <listitem>
  42. <para>These parameters specify the compiler to use.</para>
  43. </listitem>
  44. </varlistentry>
  45. <varlistentry>
  46. <term><parameter>-O3</parameter></term>
  47. <listitem>
  48. <para>Specify the optimization to use.</para>
  49. </listitem>
  50. </varlistentry>
  51. <varlistentry>
  52. <term><parameter>-G</parameter></term>
  53. <listitem>
  54. <para>Omit parts of the test suite that won't work
  55. without a GNU bc present.</para>
  56. </listitem>
  57. </varlistentry>
  58. </variablelist>
  59. <para>Compile the package:</para>
  60. <screen><userinput remap="make">make</userinput></screen>
  61. <para>To test bc, run:</para>
  62. <screen><userinput remap="test">make test</userinput></screen>
  63. <para>Install the package:</para>
  64. <screen><userinput remap="install">make install</userinput></screen>
  65. </sect2>
  66. <sect2 id="contents-bc" role="content">
  67. <title>Contents of Bc</title>
  68. <segmentedlist>
  69. <segtitle>Installed programs</segtitle>
  70. <seglistitem>
  71. <seg>bc and dc</seg>
  72. </seglistitem>
  73. </segmentedlist>
  74. <variablelist>
  75. <bridgehead renderas="sect3">Short Descriptions</bridgehead>
  76. <?dbfo list-presentation="list"?>
  77. <?dbhtml list-presentation="table"?>
  78. <varlistentry id="bc">
  79. <term><command>bc</command></term>
  80. <listitem>
  81. <para>A command line calculator</para>
  82. <indexterm zone="ch-system-bc bc">
  83. <primary sortas="b-bc">bc</primary>
  84. </indexterm>
  85. </listitem>
  86. </varlistentry>
  87. <varlistentry id="dc">
  88. <term><command>dc</command></term>
  89. <listitem>
  90. <para>A reverse-polish command line calculator</para>
  91. <indexterm zone="ch-system-bc dc">
  92. <primary sortas="b-dc">dc</primary>
  93. </indexterm>
  94. </listitem>
  95. </varlistentry>
  96. </variablelist>
  97. </sect2>
  98. </sect1>