Added a few comments here and there
[linux_from_scratch.git] / BOOK / chapter06 / lfs-utils.xml
bloba4a0251266afdd29484091cec8dbd3705fffa471
1 <sect1 id="ch-system-lfs-utils" xreflabel="Lfs-Utils">
2 <title>Installing Lfs-Utils-&lfs-utils-version;</title>
3 <?dbhtml filename="lfs-utils.html" dir="chapter06"?>
5 <para>The Lfs-Utils package contains a few helper files.</para>
7 <screen>&buildtime; &lfs-utils-time;
8 &diskspace; &lfs-utils-compsize;</screen>
10 &aa-lfs-utils-down;
11 &aa-lfs-utils-dep;
13 <sect2><title>&nbsp;</title><para>&nbsp;</para></sect2>
15 <sect2>
16 <title>Installation of Lfs-Utils</title>
18 <para>Prepare Lfs-Utils for compilation:</para>
20 <screen><userinput>./configure --prefix=/usr --with-libc</userinput></screen>
22 <para>The meaning of the configure option:</para>
24 <itemizedlist>
25 <listitem><para><userinput>--with-libc</userinput>: This causes the
26 <command>mktemp</command> program to use the <emphasis>mkstemp</emphasis>
27 and <emphasis>mkdtemp</emphasis> functions from the system C
28 library.</para></listitem>
29 </itemizedlist>
31 <para>Compile the package:</para>
33 <screen><userinput>make</userinput></screen>
35 <para>And install it:</para>
37 <screen><userinput>make install</userinput></screen>
39 <para>Now copy two supporting files included in the Lfs-Utils tarball to
40 their destination:</para>
42 <screen><userinput>cp etc/{services,protocols} /etc</userinput></screen>
44 <para>The <filename>/etc/services</filename> file is used to resolve service
45 numbers to human-readable names, and the <filename>/etc/protocols</filename>
46 does the same for protocol numbers.</para>
48 </sect2>
50 &aa-lfs-utils-shortdesc;
51 &aa-lfs-utils-desc;
53 </sect1>