gdbm.xml 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155
  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-gdbm" role="wrap">
  8. <?dbhtml filename="gdbm.html"?>
  9. <sect1info condition="script">
  10. <productname>gdbm</productname>
  11. <productnumber>&gdbm-version;</productnumber>
  12. <address>&gdbm-url;</address>
  13. </sect1info>
  14. <title>GDBM-&gdbm-version;</title>
  15. <indexterm zone="ch-system-gdbm">
  16. <primary sortas="a-Gdbm">GDBM</primary>
  17. </indexterm>
  18. <sect2 role="package">
  19. <title/>
  20. <!--para>The GDBM package contains the GNU Database Manager. It is a library
  21. of database functions that use extensible hashing and work similar to the
  22. standard UNIX dbm. The library provides primitives for storing key/data
  23. pairs, searching and retrieving the data by its key and deleting a key
  24. along with its data. </para-->
  25. <para>GDBM 软件包包含 GNU 数据库管理器。
  26. 它是一个使用可扩展散列的数据库函数库,工作方法和标准 UNIX dbm 类似。
  27. 该库提供用于存储键值对、通过键搜索和获取数据,
  28. 以及删除键和对应数据的原语。</para>
  29. <segmentedlist>
  30. <segtitle>&buildtime;</segtitle>
  31. <segtitle>&diskspace;</segtitle>
  32. <seglistitem>
  33. <seg>&gdbm-ch6-sbu;</seg>
  34. <seg>&gdbm-ch6-du;</seg>
  35. </seglistitem>
  36. </segmentedlist>
  37. </sect2>
  38. <sect2 role="installation">
  39. <title>安装 GDBM</title>
  40. <para>准备安装 GDBM:</para>
  41. <screen><userinput remap="configure">./configure --prefix=/usr \
  42. --disable-static \
  43. --enable-libgdbm-compat</userinput></screen>
  44. <variablelist>
  45. <title>配置选项的含义:</title>
  46. <varlistentry>
  47. <term><envar>--enable-libgdbm-compat</envar></term>
  48. <listitem>
  49. <para>该选项启用 libgdbm 兼容性库的构建,
  50. 因为 LFS 之外的一些软件包需要它提供的老式 DBM 子程序。</para>
  51. </listitem>
  52. </varlistentry>
  53. </variablelist>
  54. <para>编译该软件包:</para>
  55. <screen><userinput remap="make">make</userinput></screen>
  56. <para>运行以下命令以测试编译结果:</para>
  57. <screen><userinput remap="test">make check</userinput></screen>
  58. <para>安装该软件包:</para>
  59. <screen><userinput remap="install">make install</userinput></screen>
  60. </sect2>
  61. <sect2 id="contents-gdbm" role="content">
  62. <title>GDBM 的内容</title>
  63. <segmentedlist>
  64. <segtitle>安装的程序</segtitle>
  65. <segtitle>安装的库</segtitle>
  66. <seglistitem>
  67. <seg>gdbm_dump, gdbm_load, 以及 gdbmtool</seg>
  68. <seg>libgdbm.so 和 libgdbm_compat.so</seg>
  69. </seglistitem>
  70. </segmentedlist>
  71. <variablelist>
  72. <bridgehead renderas="sect3">简要描述</bridgehead>
  73. <?dbfo list-presentation="list"?>
  74. <?dbhtml list-presentation="table"?>
  75. <varlistentry id="gdbm_dump">
  76. <term><command>gdbm_dump</command></term>
  77. <listitem>
  78. <para>将 GDBM 数据库转储到文件</para>
  79. <indexterm zone="ch-system-gdbm gdbm_dump">
  80. <primary sortas="b-gdbm_dump">gdbm_dump</primary>
  81. </indexterm>
  82. </listitem>
  83. </varlistentry>
  84. <varlistentry id="gdbm_load">
  85. <term><command>gdbm_load</command></term>
  86. <listitem>
  87. <para>从转储文件重建 GDBM 数据库</para>
  88. <indexterm zone="ch-system-gdbm gdbm_load">
  89. <primary sortas="b-gdbm_load">gdbm_load</primary>
  90. </indexterm>
  91. </listitem>
  92. </varlistentry>
  93. <varlistentry id="gdbmtool">
  94. <term><command>gdbmtool</command></term>
  95. <listitem>
  96. <para>测试和修改 GDBM 数据库</para>
  97. <indexterm zone="ch-system-gdbm gdbmtool">
  98. <primary sortas="b-gdbmtool">gdbmtool</primary>
  99. </indexterm>
  100. </listitem>
  101. </varlistentry>
  102. <varlistentry id="libgdbm">
  103. <term><filename class="libraryfile">libgdbm</filename></term>
  104. <listitem>
  105. <para>包含用于操作散列数据库的函数</para>
  106. <indexterm zone="ch-system-gdbm libgdbm">
  107. <primary sortas="c-libgdbm">libgdbm</primary>
  108. </indexterm>
  109. </listitem>
  110. </varlistentry>
  111. <varlistentry id="libgdbm_compat">
  112. <term><filename class="libraryfile">libgdbm_compat</filename></term>
  113. <listitem>
  114. <para>包含老式 DBM 函数的兼容性库</para>
  115. <indexterm zone="ch-system-gdbm libgdbm_compat">
  116. <primary sortas="c-libgdbm_compat">libgdbm_compat</primary>
  117. </indexterm>
  118. </listitem>
  119. </varlistentry>
  120. </variablelist>
  121. </sect2>
  122. </sect1>