coreutils.xml 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  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-tools-coreutils" role="wrap">
  8. <?dbhtml filename="coreutils.html"?>
  9. <sect1info condition="script">
  10. <productname>coreutils</productname>
  11. <productnumber>&coreutils-version;</productnumber>
  12. <address>&coreutils-url;</address>
  13. </sect1info>
  14. <title>Coreutils-&coreutils-version;</title>
  15. <indexterm zone="ch-tools-coreutils">
  16. <primary sortas="a-Coreutils">Coreutils</primary>
  17. <secondary>tools</secondary>
  18. </indexterm>
  19. <sect2 role="package">
  20. <title/>
  21. <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
  22. href="../chapter06/coreutils.xml"
  23. xpointer="xpointer(/sect1/sect2[1]/para[1])"/>
  24. <segmentedlist>
  25. <segtitle>&buildtime;</segtitle>
  26. <segtitle>&diskspace;</segtitle>
  27. <seglistitem>
  28. <seg>&coreutils-ch5-sbu;</seg>
  29. <seg>&coreutils-ch5-du;</seg>
  30. </seglistitem>
  31. </segmentedlist>
  32. </sect2>
  33. <sect2 role="installation">
  34. <title>安装 Coreutils</title>
  35. <para>准备编译 Coreutils:</para>
  36. <screen><userinput remap="configure">./configure --prefix=/tools --enable-install-program=hostname</userinput></screen>
  37. <variablelist>
  38. <title>配置选项的含义:</title>
  39. <varlistentry>
  40. <term><envar>--enable-install-program=hostname</envar></term>
  41. <listitem>
  42. <!--para>This enables the <command>hostname</command> binary to be built
  43. and installed &ndash; it is disabled by default but is required by the
  44. Perl test suite.</para-->
  45. <para>该选项表示构建 <command>hostname</command> 程序并安装它 ——
  46. 默认情况下它被禁用,但 Perl 测试套件需要它。</para>
  47. </listitem>
  48. </varlistentry>
  49. </variablelist>
  50. <para>编译该软件包:</para>
  51. <screen><userinput remap="make">make</userinput></screen>
  52. <!--para>Compilation is now complete. As discussed earlier, running the test
  53. suite is not mandatory for the temporary tools here in this chapter. To run
  54. the Coreutils test suite anyway, issue the following command:</para-->
  55. <para>现在编译已经完成,正如前文所述,
  56. 没有必要在本章中运行临时工具的测试套件。如果一定要运行 Coreutils
  57. 测试套件,执行以下命令:</para>
  58. <screen><userinput remap="test">make RUN_EXPENSIVE_TESTS=yes check</userinput></screen>
  59. <!--para>The <parameter>RUN_EXPENSIVE_TESTS=yes</parameter> parameter tells the
  60. test suite to run several additional tests that are considered
  61. relatively expensive (in terms of CPU power and memory usage) on some
  62. platforms, but generally are not a problem on Linux.</para-->
  63. <para>参数 <parameter>RUN_EXPENSIVE_TESTS=yes</parameter>
  64. 告诉测试套件运行一些附加测试,在某些平台上它们被认为比较耗费
  65. CPU 和内存资源,但在 Linux 上一般不成问题。</para>
  66. <para>安装该软件包:</para>
  67. <screen><userinput remap="install">make install</userinput></screen>
  68. <!--
  69. <para>The above command refuses to install <filename>su</filename>
  70. because the program cannot be installed setuid root as a non-privileged
  71. user. By manually installing it, we can use it for running tests in the
  72. final system as a non-privileged user. Install it with:</para>
  73. <screen><userinput remap="install">cp -v src/su /tools/bin</userinput></screen>
  74. -->
  75. </sect2>
  76. <sect2 role="content">
  77. <title/>
  78. <para>该软件包的详细信息可以在
  79. <xref linkend="contents-coreutils"/> 中找到。</para>
  80. </sect2>
  81. </sect1>