expat.xml 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  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-expat" role="wrap">
  8. <?dbhtml filename="expat.html"?>
  9. <sect1info condition="script">
  10. <productname>expat</productname>
  11. <productnumber>&expat-version;</productnumber>
  12. <address>&expat-url;</address>
  13. </sect1info>
  14. <title>Expat-&expat-version;</title>
  15. <indexterm zone="ch-system-expat">
  16. <primary sortas="a-Expat">Expat</primary>
  17. </indexterm>
  18. <sect2 role="package">
  19. <title/>
  20. <para>Expat 软件包包含用于解析 XML 文件的面向流的 C 语言库。</para>
  21. <segmentedlist>
  22. <segtitle>&buildtime;</segtitle>
  23. <segtitle>&diskspace;</segtitle>
  24. <seglistitem>
  25. <seg>&expat-ch6-sbu;</seg>
  26. <seg>&expat-ch6-du;</seg>
  27. </seglistitem>
  28. </segmentedlist>
  29. </sect2>
  30. <sect2 role="installation">
  31. <title>安装 Expat</title>
  32. <para>首先修正 LFS 环境中退化测试的一个问题:</para>
  33. <screen><userinput remap="pre">sed -i 's|usr/bin/env |bin/|' run.sh.in</userinput></screen>
  34. <para>准备安装 Expat:</para>
  35. <screen><userinput remap="configure">./configure --prefix=/usr \
  36. --disable-static \
  37. --docdir=/usr/share/doc/expat-&expat-version;</userinput></screen>
  38. <para>编译该软件包:</para>
  39. <screen><userinput remap="make">make</userinput></screen>
  40. <para>运行以下命令以测试编译结果:</para>
  41. <screen><userinput remap="test">make check</userinput></screen>
  42. <para>安装该软件包:</para>
  43. <screen><userinput remap="install">make install</userinput></screen>
  44. <para>如果需要,安装该软件包的文档:</para>
  45. <screen><userinput remap="install">install -v -m644 doc/*.{html,png,css} /usr/share/doc/expat-&expat-version;</userinput></screen>
  46. </sect2>
  47. <sect2 id="contents-expat" role="content">
  48. <title>Expat 的内容</title>
  49. <segmentedlist>
  50. <segtitle>安装的程序</segtitle>
  51. <segtitle>安装的库</segtitle>
  52. <segtitle>安装的目录</segtitle>
  53. <seglistitem>
  54. <seg>xmlwf</seg>
  55. <seg>libexpat.so</seg>
  56. <seg>/usr/share/doc/expat-&expat-version;</seg>
  57. </seglistitem>
  58. </segmentedlist>
  59. <variablelist>
  60. <bridgehead renderas="sect3">简要描述</bridgehead>
  61. <?dbfo list-presentation="list"?>
  62. <?dbhtml list-presentation="table"?>
  63. <varlistentry id="xmlwf">
  64. <term><command>xmlwf </command></term>
  65. <listitem>
  66. <para>是一个用于检验 XML 文档是否良好的非验证性工具</para>
  67. <indexterm zone="ch-system-expat xmlwf">
  68. <primary sortas="b-xmlwf">xmlwf</primary>
  69. </indexterm>
  70. </listitem>
  71. </varlistentry>
  72. <varlistentry id="libexpat">
  73. <term><filename class="libraryfile">libexpat</filename></term>
  74. <listitem>
  75. <para>包含解析 XML 文档的 API 函数</para>
  76. <indexterm zone="ch-system-expat libexpat">
  77. <primary sortas="c-libexpat">libexpat</primary>
  78. </indexterm>
  79. </listitem>
  80. </varlistentry>
  81. </variablelist>
  82. </sect2>
  83. </sect1>