2001-01-24 00:31:17 +00:00
|
|
|
<sect2>
|
|
|
|
<title>Installation of Gzip</title>
|
|
|
|
|
2001-09-05 23:35:33 +01:00
|
|
|
<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>
|
2001-01-24 00:31:17 +00:00
|
|
|
|
2001-09-05 23:35:33 +01:00
|
|
|
<para>Apply the patch by running the following command:</para>
|
|
|
|
|
|
|
|
<para><userinput>patch -Np1 -i ../gzip-&gzip-version;.patch</userinput></para>
|
|
|
|
|
|
|
|
<para>Install Gzip by running the following commands:</para>
|
|
|
|
<para><screen><userinput>./configure --prefix=$LFS/usr &&</userinput>
|
2001-07-06 16:25:48 +01:00
|
|
|
<userinput>make LDFLAGS=-static &&</userinput>
|
|
|
|
<userinput>make install &&</userinput>
|
2001-08-28 21:50:57 +01:00
|
|
|
<userinput>cp $LFS/usr/bin/gunzip $LFS/usr/bin/gzip $LFS/bin &&</userinput>
|
2001-08-29 14:19:58 +01:00
|
|
|
<userinput>rm $LFS/usr/bin/gunzip $LFS/usr/bin/gzip</userinput></screen></para>
|
2001-01-24 00:31:17 +00:00
|
|
|
|
|
|
|
</sect2>
|
|
|
|
|