Added a few comments here and there
[linux_from_scratch.git] / newxml / chapter06 / lfs-utils.xml
blob9c9d3047bb83376471518e5faf5424bc44ff55eb
1 <?xml version="1.0" encoding="ISO-8859-1"?>
2 <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.3CR2//EN" "http://www.docbook.org/xml/4.3CR2/docbookx.dtd" [
3   <!ENTITY % lfs-utils-entities SYSTEM "../ent/lfs-utils.ent">
4   %lfs-utils-entities;
5 ]>
6 <sect1 id="ch06-lfs-utils">
7 <title>Installing Lfs-Utils-&lfs-utils-version;</title>
8 <?dbhtml filename="lfs-utils.html"?>
10 <screen>Estimated build time:           0.1 SBU
11 Estimated required disk space:  1.1 MB</screen>
13 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="../appendixa/lfs-utils-contents.xml"/>
16 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="../appendixa/lfs-utils-deps.xml"/>
20 <sect2>
21 <title>Installation of Lfs-Utils</title>
23 <para>Prepare Lfs-Utils for compilation:</para>
25 <screen><userinput>./configure --prefix=/usr --with-libc</userinput></screen>
27 <para>The meaning of the configure option:</para>
29 <itemizedlist>
30 <listitem><para><userinput>--with-libc</userinput>: This causes the
31 <filename>mktemp</filename> program to use the <emphasis>mkstemp</emphasis>
32 and <emphasis>mkdtemp</emphasis> functions from the system C
33 library.</para></listitem>
34 </itemizedlist>
36 <para>Compile the package:</para>
38 <screen><userinput>make</userinput></screen>
40 <para>And install it:</para>
42 <screen><userinput>make install</userinput></screen>
44 <para>Now copy two supporting files included in the Lfs-Utils tarball to
45 their destination:</para>
47 <screen><userinput>cp etc/{services,protocols} /etc</userinput></screen>
49 <para>The <filename>/etc/services</filename> file is used to resolve service
50 numbers to human-readable names, and the <filename>/etc/protocols</filename>
51 does the same for protocol numbers.</para>
53 </sect2>
55 </sect1>