|
@@ -23,8 +23,7 @@
|
|
|
<sect2 role="package">
|
|
|
<title/>
|
|
|
|
|
|
- <para>The Zlib package contains compression and decompression routines used by
|
|
|
- some programs.</para>
|
|
|
+ <para>Zlib 软件包包含一些程序使用的压缩和解压缩子程序。</para>
|
|
|
|
|
|
<segmentedlist>
|
|
|
<segtitle>&buildtime;</segtitle>
|
|
@@ -39,7 +38,7 @@
|
|
|
</sect2>
|
|
|
|
|
|
<sect2 role="installation">
|
|
|
- <title>安装Zlib</title>
|
|
|
+ <title>安装 Zlib</title>
|
|
|
|
|
|
<para>准备安装 Zlib:</para>
|
|
|
|
|
@@ -57,10 +56,27 @@
|
|
|
|
|
|
<screen><userinput remap="install">make install</userinput></screen>
|
|
|
|
|
|
- <para>The shared library needs to be moved to
|
|
|
- <filename class="directory">/lib</filename>, and as a result the
|
|
|
- <filename class="extension">.so</filename> file in
|
|
|
- <filename class="directory">/usr/lib</filename> will need to be recreated:</para>
|
|
|
+ <para>需要把共享库移动到
|
|
|
+ <filename class="directory">/lib</filename>,
|
|
|
+ 因此还需要重新创建 <filename class="directory">/usr/lib</filename>
|
|
|
+ 中的 <filename class="extension">.so</filename> 符号链接:
|
|
|
+ </para>
|
|
|
+
|
|
|
+ <note><title>译注</title>
|
|
|
+ <para>根据 FHS 的要求,
|
|
|
+ <filename class="directory">/bin</filename> 和
|
|
|
+ <filename class="directory">/sbin</filename>
|
|
|
+ 中程序用到的共享库需要移动到
|
|
|
+ <filename class="directory">/lib</filename>。
|
|
|
+ 移动共享库的目的是,在无法挂载
|
|
|
+ <filename class="directory">/usr</filename>
|
|
|
+ (例如磁盘损坏或网络离线)的情况下,
|
|
|
+ 仍然能使用最基本的系统功能。如果您没有使用单独的
|
|
|
+ <filename class="directory">/usr</filename>
|
|
|
+ 文件系统,也不在意 FHS 兼容性,可以跳过移动共享库的步骤。
|
|
|
+ 本书和 BLFS 手册中还有其他一些地方需要移动共享库。
|
|
|
+ </para>
|
|
|
+ </note>
|
|
|
|
|
|
<screen><userinput remap="install">mv -v /usr/lib/libz.so.* /lib
|
|
|
ln -sfv ../../lib/$(readlink /usr/lib/libz.so) /usr/lib/libz.so</userinput></screen>
|
|
@@ -86,8 +102,7 @@ ln -sfv ../../lib/$(readlink /usr/lib/libz.so) /usr/lib/libz.so</userinput></scr
|
|
|
<varlistentry id="libz">
|
|
|
<term><filename class="libraryfile">libz</filename></term>
|
|
|
<listitem>
|
|
|
- <para>Contains compression and decompression functions used by
|
|
|
- some programs</para>
|
|
|
+ <para>包含一些程序使用的压缩和解压缩函数</para>
|
|
|
<indexterm zone="ch-system-zlib libz">
|
|
|
<primary sortas="c-libz">libz</primary>
|
|
|
</indexterm>
|