mtab a real file now
[linux_from_scratch.git] / BOOK / chapter06 / bzip2-inst.xml
blob5547ffaae2f60215e94f69cca2845ae70b80f3d7
1 <sect2><title>&nbsp;</title><para>&nbsp;</para></sect2>
3 <sect2>
4 <title>Installation of Bzip2</title>
6 <para>Begin compiling the package:</para>
8 <para><screen><userinput>make -f Makefile-libbz2_so</userinput></screen></para>
10 <para>The <emphasis>-f</emphasis> flag will cause bzip2 to be built
11 using a different <filename>Makefile</filename> file, in this case the
12 <filename>Makefile-libbz2_so</filename> file, which creates a dynamic
13 <filename>libbz2.so</filename> library and links the bzip2 utilities
14 against it.</para>
16 <para>Continue compiling the package:</para>
18 <para><screen><userinput>make</userinput></screen></para>
20 <para>Install the package:</para>
22 <para><screen><userinput>make install</userinput></screen></para>
24 <para>Copy the Bzip2 binary into the <filename
25 class="directory">/bin</filename> directory, make some
26 neccessary symbolic links and clean up.</para>
28 <para><screen><userinput>cp bzip2-shared /bin/bzip2 &amp;&amp;
29 cp -a libbz2.so* /lib &amp;&amp;
30 ln -s ../../lib/libbz2.so.1.0 /usr/lib/libbz2.so &amp;&amp;
31 rm /usr/bin/{bunzip2,bzcat,bzip2} &amp;&amp;
32 mv /usr/bin/{bzip2recover,bzless,bzmore} /bin &amp;&amp;
33 ln -s bzip2 /bin/bunzip2 &amp;&amp;
34 ln -s bzip2 /bin/bzcat</userinput></screen></para>
36 </sect2>