aboutsummaryrefslogtreecommitdiffstats
path: root/chapter06/e2fsprogs-inst.xml
blob: 88abd266e45865d34da0c72de77d61294997671d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
<sect2><title>&nbsp;</title><para>&nbsp;</para></sect2>

<sect2>
<title>Installation of E2fsprogs</title>

<para>It is recommended to build E2fsprogs outside of the
source tree. Create the build directory:</para>

<para><screen><userinput>mkdir ../e2fsprogs-build &amp;&amp;
cd ../e2fsprogs-build</userinput></screen></para>

<para>Prepare E2fsprogs to be compiled:</para>

<para><screen><userinput>../e2fsprogs-&e2fsprogs-version;/configure --prefix=/usr --with-root-prefix="" \
&nbsp;&nbsp;&nbsp;&nbsp;--enable-elf-shlibs</userinput></screen></para>

<para>The meaning of the configure options are:</para>

<itemizedlist>

<listitem><para><userinput>--with-root-prefix="":</userinput> This option
is used because of the e2fsprogs Makefile. Some programs are essential for
system use when, for example, <filename class="directory">/usr</filename>
isn't mounted (like the e2fsck program). These  programs and libraries,
therefore, belong in directories like <filename
class="directory">/lib</filename> and <filename
class="directory">/sbin</filename>. If this option isn't passed to
E2fsprogs's configure, the programs are placed in the <filename
class="directory">/usr</filename> directory, which is not what we
want.</para></listitem>

<listitem><para><userinput>--enable-elf-shlibs:</userinput> This creates
the shared libraries which some programs in this package make use
of.</para></listitem>

</itemizedlist>

<para>Continue with compiling the package:</para>

<para><screen><userinput>make</userinput></screen></para>

<para>Begin installing the package:</para>

<para><screen><userinput>make install</userinput></screen></para>

<para>Install the shared libraries:</para>

<para><screen><userinput>make install-libs</userinput></screen></para>

<para>Update the <filename>/usr/share/info/dir</filename> file to
include E2fsprogs' info pages in the index:</para>

<para><screen><userinput>install-info /usr/share/info/libext2fs.info /usr/share/info/dir</userinput></screen></para>

</sect2>