coreutils.xml 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  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-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/2003/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>Installation of Coreutils</title>
  35. <para>Prepare Coreutils for compilation:</para>
  36. <screen><userinput remap="configure">./configure --prefix=/tools --enable-install-program=hostname</userinput></screen>
  37. <variablelist>
  38. <title>The meaning of the configure options:</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. </listitem>
  46. </varlistentry>
  47. </variablelist>
  48. <para>Compile the package:</para>
  49. <screen><userinput remap="make">make</userinput></screen>
  50. <para>To test the results, issue:</para>
  51. <screen><userinput remap="test">make RUN_EXPENSIVE_TESTS=yes check</userinput></screen>
  52. <para>The <parameter>RUN_EXPENSIVE_TESTS=yes</parameter> parameter tells the
  53. test suite to run several additional tests that are considered
  54. relatively expensive (in terms of CPU power and memory usage) on some
  55. platforms, but generally are not a problem on Linux.</para>
  56. <para>Install the package:</para>
  57. <screen><userinput remap="install">make install</userinput></screen>
  58. <para>The above command refuses to install <filename>su</filename>
  59. because it cannot install it setuid root as a non-privileged user. By
  60. manually installing it with a different name, we can use it for running
  61. tests in the final system as a non-privileged user and we keep a possibly
  62. useful <command>su</command> from our host first place in our PATH. Install
  63. it with:</para>
  64. <screen><userinput remap="install">cp -v src/su /tools/bin/su-tools</userinput></screen>
  65. </sect2>
  66. <sect2 role="content">
  67. <title/>
  68. <para>Details on this package are located in
  69. <xref linkend="contents-coreutils" role="."/></para>
  70. </sect2>
  71. </sect1>