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 % e2fsprogs-entities SYSTEM "../ent/e2fsprogs.ent">
6 <sect1 id="ch06-e2fsprogs">
7 <title>Installing E2fsprogs-&e2fsprogs-version;</title>
8 <?dbhtml filename="e2fsprogs.html"?>
10 <screen>Estimated build time: 0.6 SBU
11 Estimated required disk space: 48.4 MB</screen>
13 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="../appendixa/e2fsprogs-contents.xml"/>
17 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="../appendixa/e2fsprogs-deps.xml"/>
22 <title>Installation of E2fsprogs</title>
24 <para>It is recommended to build E2fsprogs outside of the
27 <screen><userinput>mkdir ../e2fsprogs-build
28 cd ../e2fsprogs-build</userinput></screen>
30 <para>Prepare E2fsprogs for compilation:</para>
32 <screen><userinput>../e2fsprogs-&e2fsprogs-version;/configure --prefix=/usr --with-root-prefix="" \
33 --enable-elf-shlibs</userinput></screen>
35 <para>The meaning of the configure options:</para>
38 <listitem><para><userinput>--with-root-prefix=""</userinput>: Certain
39 programs (such as the e2fsck program) are considered essential programs.
40 When, for example, <filename class="directory">/usr</filename> isn't
41 mounted, these essential programs have to be available. They belong in
42 directories like <filename class="directory">/lib</filename> and
43 <filename class="directory">/sbin</filename>. If this option isn't passed
44 to E2fsprogs's configure, the programs are placed in the
45 <filename class="directory">/usr</filename> directory, which is not what we
46 want.</para></listitem>
48 <listitem><para><userinput>--enable-elf-shlibs</userinput>: This creates
49 the shared libraries which some programs in this package make use
53 <para>Compile the package:</para>
55 <screen><userinput>make</userinput></screen>
57 <para>This package has a test suite available which can perform a number of
58 checks to ensure it built correctly. Should you choose to run it, the
59 following command will do so:</para>
61 <screen><userinput>make check</userinput></screen>
63 <para>Install most of the package:</para>
65 <screen><userinput>make install</userinput></screen>
67 <para>And install also the shared libraries:</para>
69 <screen><userinput>make install-libs</userinput></screen>