mpfr.xml 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  1. <?xml version="1.0" encoding="UTF-8"?>
  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-mpfr" role="wrap">
  8. <?dbhtml filename="mpfr.html"?>
  9. <sect1info condition="script">
  10. <productname>mpfr</productname>
  11. <productnumber>&mpfr-version;</productnumber>
  12. <address>&mpfr-url;</address>
  13. </sect1info>
  14. <title>MPFR-&mpfr-version;</title>
  15. <indexterm zone="ch-system-mpfr">
  16. <primary sortas="a-MPFR">MPFR</primary>
  17. </indexterm>
  18. <sect2 role="package">
  19. <title/>
  20. <para>MPFR 软件包包含多精度数学函数。</para>
  21. <segmentedlist>
  22. <segtitle>&buildtime;</segtitle>
  23. <segtitle>&diskspace;</segtitle>
  24. <seglistitem>
  25. <seg>&mpfr-ch6-sbu;</seg>
  26. <seg>&mpfr-ch6-du;</seg>
  27. </seglistitem>
  28. </segmentedlist>
  29. </sect2>
  30. <sect2 role="installation">
  31. <title>安装 MPFR</title>
  32. <para>准备安装 MPFR:</para>
  33. <screen><userinput remap="configure">./configure --prefix=/usr \
  34. --disable-static \
  35. --enable-thread-safe \
  36. --docdir=/usr/share/doc/mpfr-&mpfr-version;</userinput></screen>
  37. <para>编译该软件包,并生成 HTML 文档:</para>
  38. <screen><userinput remap="make">make
  39. make html</userinput></screen>
  40. <important>
  41. <para>本节中 MPFR 的测试套件被认为是非常关键的,无论如何不能跳过。
  42. </para>
  43. </important>
  44. <para>测试编译结果,并确认所有测试都能通过:</para>
  45. <screen><userinput remap="test">make check</userinput></screen>
  46. <para>安装该软件包及其文档:</para>
  47. <screen><userinput remap="install">make install
  48. make install-html</userinput></screen>
  49. </sect2>
  50. <sect2 id="contents-mpfr" role="content">
  51. <title>MPFR 的内容</title>
  52. <segmentedlist>
  53. <segtitle>安装的库</segtitle>
  54. <segtitle>安装的目录</segtitle>
  55. <seglistitem>
  56. <seg>libmpfr.so</seg>
  57. <seg>/usr/share/doc/mpfr-&mpfr-version;</seg>
  58. </seglistitem>
  59. </segmentedlist>
  60. <variablelist>
  61. <bridgehead renderas="sect3">简要描述</bridgehead>
  62. <?dbfo list-presentation="list"?>
  63. <?dbhtml list-presentation="table"?>
  64. <varlistentry id="libmpfr">
  65. <term><filename class="libraryfile">libmpfr</filename></term>
  66. <listitem>
  67. <para>包含多精度数学函数</para>
  68. <indexterm zone="ch-system-mpfr libmpfr">
  69. <primary sortas="c-libmpfr">libmpfr</primary>
  70. </indexterm>
  71. </listitem>
  72. </varlistentry>
  73. </variablelist>
  74. </sect2>
  75. </sect1>