⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 gzip.html

📁 lfs3.1 从源代码构建linux。html版本。
💻 HTML
字号:
<HTML><HEAD><TITLE>Installing Gzip-1.2.4a</TITLE><METANAME="GENERATOR"CONTENT="Modular DocBook HTML Stylesheet Version 1.63"><LINKREL="HOME"TITLE="Linux From Scratch"HREF="../index.html"><LINKREL="UP"TITLE="Preparing the LFS system"HREF="../chapter05/chapter05.html"><LINKREL="PREVIOUS"TITLE="Installing Grep-2.4.2"HREF="../chapter05/grep.html"><LINKREL="NEXT"TITLE="Installing Linux Kernel-2.4.16"HREF="../chapter05/kernel.html"></HEAD><BODYCLASS="sect1"BGCOLOR="#FFFFFF"TEXT="#000000"LINK="#0000FF"VLINK="#840084"ALINK="#0000FF"><DIVCLASS="NAVHEADER"><TABLEWIDTH="100%"BORDER="0"CELLPADDING="0"CELLSPACING="0"><TR><THCOLSPAN="3"ALIGN="center">Linux From Scratch: Version 3.1</TH></TR><TR><TDWIDTH="10%"ALIGN="left"VALIGN="bottom"><AHREF="../chapter05/grep.html">Prev</A></TD><TDWIDTH="80%"ALIGN="center"VALIGN="bottom">Chapter 5. Preparing the LFS system</TD><TDWIDTH="10%"ALIGN="right"VALIGN="bottom"><AHREF="../chapter05/kernel.html">Next</A></TD></TR></TABLE><HRALIGN="LEFT"WIDTH="100%"></DIV><DIVCLASS="sect1"><H1CLASS="sect1"><ANAME="ch05-gzip">5.11. Installing Gzip-1.2.4a</A></H1><TABLEBORDER="0"BGCOLOR="#E0E0E0"WIDTH="100%"><TR><TD><FONTCOLOR="#000000"><PRECLASS="screen">Estimated build time:           1 minuteEstimated required disk space:  2 MB</PRE></FONT></TD></TR></TABLE><DIVCLASS="sect2"><H2CLASS="sect2"><ANAME="AEN1180">5.11.1. Installation of Gzip</A></H2><P>Before Gzip is installed, the patch file may need to be applied.  This patch file is necessary to avoid a conflict of variable nameswith Glibc-2.0 systems when compiling and linking statically and so isonly required if your base system runs Glibc-2.0.  It is howeversafe to apply the patch even if you are running a different glibcversion, so if you aren't sure, it's best to apply it.</P><P>Apply the patch by running the following command:</P><P><TABLEBORDER="0"BGCOLOR="#E0E0E0"WIDTH="100%"><TR><TD><FONTCOLOR="#000000"><PRECLASS="screen"><TTCLASS="userinput"><B>patch -Np1 -i ../gzip-1.2.4a.patch</B></TT></PRE></FONT></TD></TR></TABLE></P><P>Install Gzip by running the following commands:</P><P><TABLEBORDER="0"BGCOLOR="#E0E0E0"WIDTH="100%"><TR><TD><FONTCOLOR="#000000"><PRECLASS="screen"><TTCLASS="userinput"><B>./configure --prefix=$LFS/usr &#38;&#38;make LDFLAGS=-static &#38;&#38;make install &#38;&#38;cp $LFS/usr/bin/gunzip $LFS/usr/bin/gzip $LFS/bin &#38;&#38;rm $LFS/usr/bin/gunzip $LFS/usr/bin/gzip</B></TT></PRE></FONT></TD></TR></TABLE></P></DIV><DIVCLASS="sect2"><H2CLASS="sect2"><ANAME="AEN1191">5.11.2. Contents</A></H2><P>The Gzip package contains the compress, gunzip, gzexe, gzip, uncompress, zcat, zcmp, zdiff, zforce, zgrep, zmore and znew programs.</P></DIV><DIVCLASS="sect2"><H2CLASS="sect2"><ANAME="AEN1194">5.11.3. Description</A></H2><DIVCLASS="sect3"><H3CLASS="sect3"><ANAME="AEN1196">5.11.3.1. gunzip, uncompress</A></H3><P>gunzip and uncompress decompress files which are compressed with gzip.</P></DIV><DIVCLASS="sect3"><H3CLASS="sect3"><ANAME="AEN1199">5.11.3.2. gzexe</A></H3><P>gzexe allows you to compress executables in place and have them automatically uncompress and execute when they are run (at a penalty in performance).</P></DIV><DIVCLASS="sect3"><H3CLASS="sect3"><ANAME="AEN1202">5.11.3.3. gzip</A></H3><P>gzip reduces the size of the named files using Lempel-Ziv coding (LZ77).</P></DIV><DIVCLASS="sect3"><H3CLASS="sect3"><ANAME="AEN1205">5.11.3.4. zcat</A></H3><P>zcat uncompresses either a list of files on the command line or its standard input and writes the uncompressed data on standard output</P></DIV><DIVCLASS="sect3"><H3CLASS="sect3"><ANAME="AEN1208">5.11.3.5. zcmp</A></H3><P>zcmp invokes the cmp program on compressed files.</P></DIV><DIVCLASS="sect3"><H3CLASS="sect3"><ANAME="AEN1211">5.11.3.6. zdiff</A></H3><P>zdiff invokes the diff program on compressed files.</P></DIV><DIVCLASS="sect3"><H3CLASS="sect3"><ANAME="AEN1214">5.11.3.7. zforce</A></H3><P>zforce forces a  .gz extension on all gzip files so that gzip will not compress them twice.  This can be useful for files with names truncated after a file transfer.</P></DIV><DIVCLASS="sect3"><H3CLASS="sect3"><ANAME="AEN1217">5.11.3.8. zgrep</A></H3><P>zgrep invokes the grep program on compressed files.</P></DIV><DIVCLASS="sect3"><H3CLASS="sect3"><ANAME="AEN1220">5.11.3.9. zmore</A></H3><P>zmore is a filter which allows examination of compressed or plain text files one screen at a time on a soft-copy terminal (similar to themore program).</P></DIV><DIVCLASS="sect3"><H3CLASS="sect3"><ANAME="AEN1223">5.11.3.10. znew</A></H3><P>znew re-compresses files from .Z (compress) format to .gz (gzip) format.</P></DIV></DIV><DIVCLASS="sect2"><H2CLASS="sect2"><ANAME="AEN1226">5.11.4. Dependencies</A></H2><P>Gzip-1.2.4a needs the following to be installed:</P><PCLASS="literallayout"><br>sh&nbsp;from&nbsp;the&nbsp;bash&nbsp;package<br><br>as&nbsp;from&nbsp;the&nbsp;binutils&nbsp;package<br>ld&nbsp;from&nbsp;the&nbsp;binutils&nbsp;package<br>nm&nbsp;from&nbsp;the&nbsp;binutils&nbsp;package<br><br>chmod&nbsp;from&nbsp;the&nbsp;fileutils&nbsp;package<br>cp&nbsp;from&nbsp;the&nbsp;fileutils&nbsp;package<br>ln&nbsp;from&nbsp;the&nbsp;fileutils&nbsp;package<br>mv&nbsp;from&nbsp;the&nbsp;fileutils&nbsp;package<br>rm&nbsp;from&nbsp;the&nbsp;fileutils&nbsp;package<br><br>cc&nbsp;from&nbsp;the&nbsp;gcc&nbsp;package<br><br>grep&nbsp;from&nbsp;the&nbsp;grep&nbsp;package<br><br>make&nbsp;from&nbsp;the&nbsp;make&nbsp;package<br><br>sed&nbsp;from&nbsp;the&nbsp;sed&nbsp;package<br><br>cat&nbsp;from&nbsp;the&nbsp;textutils&nbsp;package<br>tr&nbsp;from&nbsp;the&nbsp;textutils&nbsp;package<br></P></DIV></DIV><DIVCLASS="NAVFOOTER"><HRALIGN="LEFT"WIDTH="100%"><TABLEWIDTH="100%"BORDER="0"CELLPADDING="0"CELLSPACING="0"><TR><TDWIDTH="33%"ALIGN="left"VALIGN="top"><AHREF="../chapter05/grep.html">Prev</A></TD><TDWIDTH="34%"ALIGN="center"VALIGN="top"><AHREF="../index.html">Home</A></TD><TDWIDTH="33%"ALIGN="right"VALIGN="top"><AHREF="../chapter05/kernel.html">Next</A></TD></TR><TR><TDWIDTH="33%"ALIGN="left"VALIGN="top">Installing Grep-2.4.2</TD><TDWIDTH="34%"ALIGN="center"VALIGN="top"><AHREF="../chapter05/chapter05.html">Up</A></TD><TDWIDTH="33%"ALIGN="right"VALIGN="top">Installing Linux Kernel-2.4.16</TD></TR></TABLE></DIV></BODY></HTML>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -