aboutsummaryrefslogtreecommitdiffstats
path: root/chapter05/gzip-inst.xml
blob: d120317104eb48b71beb90f64c331b4b380a8d83 (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
<sect2>
<title>Installation of Gzip</title>

<para>Before Gzip is installed, the patch file may need to be applied.  This 
patch file is necessary to avoid a conflict of variable names
with Glibc-2.0 systems when compiling and linking statically and so is
only required if your base system runs Glibc-2.0.  It is however
safe to apply the patch even if you are running a different glibc
version, so if you aren't sure, it's best to apply it.</para>

<para>Apply the patch by running the following command:</para>

<para><screen><userinput>patch -Np1 -i ../gzip-&gzip-version;.patch</userinput></screen></para>

<para>Install Gzip by running the following commands:</para>

<para><screen><userinput>./configure --prefix=$LFS/usr &amp;&amp;
make LDFLAGS=-static &amp;&amp;
make install &amp;&amp;
cp $LFS/usr/bin/gunzip $LFS/usr/bin/gzip $LFS/bin &amp;&amp;
rm $LFS/usr/bin/gunzip $LFS/usr/bin/gzip</userinput></screen></para>

</sect2>