lfs-utils.xml 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. <sect1 id="ch06-lfs-utils" xreflabel="Lfs-Utils">
  2. <title>Installing Lfs-Utils-&lfs-utils-version;</title>
  3. <?dbhtml filename="lfs-utils.html" dir="chapter06"?>
  4. <para>The Lfs-Utils package contains a few helper files.</para>
  5. <screen>&buildtime; &lfs-utils-time;
  6. &diskspace; &lfs-utils-compsize;</screen>
  7. &aa-lfs-utils-down;
  8. &aa-lfs-utils-dep;
  9. <sect2><title>&nbsp;</title><para>&nbsp;</para></sect2>
  10. <sect2>
  11. <title>Installation of Lfs-Utils</title>
  12. <para>Prepare Lfs-Utils for compilation:</para>
  13. <screen><userinput>./configure --prefix=/usr --with-libc</userinput></screen>
  14. <para>The meaning of the configure option:</para>
  15. <itemizedlist>
  16. <listitem><para><userinput>--with-libc</userinput>: This causes the
  17. <userinput>mktemp</userinput> program to use the <emphasis>mkstemp</emphasis>
  18. and <emphasis>mkdtemp</emphasis> functions from the system C
  19. library.</para></listitem>
  20. </itemizedlist>
  21. <para>Compile the package:</para>
  22. <screen><userinput>make</userinput></screen>
  23. <para>And install it:</para>
  24. <screen><userinput>make install</userinput></screen>
  25. <para>Now copy two supporting files included in the Lfs-Utils tarball to
  26. their destination:</para>
  27. <screen><userinput>cp etc/{services,protocols} /etc</userinput></screen>
  28. <para>The <filename>/etc/services</filename> file is used to resolve service
  29. numbers to human-readable names, and the <filename>/etc/protocols</filename>
  30. does the same for protocol numbers.</para>
  31. </sect2>
  32. &aa-lfs-utils-shortdesc;
  33. &aa-lfs-utils-desc;
  34. </sect1>