Parcourir la source

chapter06: Translate Glibc instruction

Xi Ruoyao il y a 7 ans
Parent
commit
dde62d6606
1 fichiers modifiés avec 262 ajouts et 147 suppressions
  1. 262 147
      chapter06/glibc.xml

+ 262 - 147
chapter06/glibc.xml

@@ -23,10 +23,13 @@
   <sect2 role="package">
     <title/>
 
-    <para>The Glibc package contains the main C library. This library provides
+    <!--para>The Glibc package contains the main C library. This library provides
     the basic routines for allocating memory, searching directories, opening and
     closing files, reading and writing files, string handling, pattern matching,
-    arithmetic, and so on.</para>
+    arithmetic, and so on.</para-->
+	<para>Glibc 软件包包含主要的 C 语言库。它提供用于分配内存、检索目录、
+		打开和关闭文件、读写文件、字符串处理、模式匹配、
+		算术等用途的基本子程序。</para>
 
     <segmentedlist>
       <segtitle>&buildtime;</segtitle>
@@ -43,17 +46,28 @@
   <sect2 role="installation">
     <title>安装Glibc</title>
 
-    <note><para>The Glibc build system is self-contained and will install
+    <note><!--para>The Glibc build system is self-contained and will install
     perfectly, even though the compiler specs file and linker are still
     pointing to <filename class="directory">/tools</filename>. The specs
     and linker cannot be adjusted before the Glibc install because the
     Glibc autoconf tests would give false results and defeat the goal
-    of achieving a clean build.</para></note>
-
-    <para>Some of the Glibc programs use the non-FHS compilant
+	of achieving a clean build.</para-->
+	<para> Glibc 构建系统是自给自足的,
+		即使编译器 specs 文件和链接器仍然指向
+		<filename class="directory">/tools</filename>,
+		也能完美地安装 Glibc 。在安装 Glibc 之前不能调整工具链,
+		否则 Glibc 的 autoconf 测试会给出错误结果,
+		导致干净地构建 Glibc 的目标失败。</para>
+	</note>
+
+    <!--para>Some of the Glibc programs use the non-FHS compilant
     <filename class="directory">/var/db</filename> directory to store
     their runtime data. Apply the following patch to make such programs
-    store their runtime data in the FHS-compliant locations:</para>
+    store their runtime data in the FHS-compliant locations:</para-->
+	<para>某些 Glibc 程序使用与 FHS 不兼容的
+		<filename class="directory">/var/db</filename>
+		目录存放运行时数据。应用下列补丁,
+		使得这些程序在 FHS 兼容的位置存储运行时数据:</para>
 
 <screen><userinput remap="pre">patch -Np1 -i ../&glibc-fhs-patch;</userinput></screen>
 <!--
@@ -61,14 +75,20 @@
 
 <screen><userinput remap="pre">patch -Np1 -i ../&glibc-glob-patch;</userinput></screen>
 -->
-    <para>First create a compatibility symlink to avoid references to /tools in
-    our final glibc:</para>
+    <!--para>First create a compatibility symlink to avoid references to /tools in
+    our final glibc:</para-->
+    <para>创建一个与最终的 LFS 系统兼容的符号链接,
+    	避免最终的 Glibc 包含对 /tools 的引用:
+	</para>
 
 <screen><userinput remap="pre">ln -sfv /tools/lib/gcc /usr/lib</userinput></screen>
 
-    <para>Determine the GCC include directory and create a symlink for LSB
+    <!--para>Determine the GCC include directory and create a symlink for LSB
     compliance. Additionally, for x86_64, create a compatibility symlink
-    required for the dynamic loader to function correctly:</para>
+    required for the dynamic loader to function correctly:</para-->
+    <para>判定 GCC 包含文件目录,并为了兼容 LSB 创建一个符号链接。另外,
+		对于 x86_64 ,还要创建一个动态链接器的兼容性符号链接,
+		使它能够正常工作:</para>
 
 <screen><userinput remap="pre">case $(uname -m) in
     i?86)    GCC_INCDIR=/usr/lib/gcc/$(uname -m)-pc-linux-gnu/&gcc-version;/include
@@ -80,13 +100,19 @@
     ;;
 esac</userinput></screen>
 
-    <para>Remove a file that may be left over from a previous build attempt:
-    </para>
+    <!--para>Remove a file that may be left over from a previous build attempt:
+    </para-->
+	<para>删除上次编译时可能留下的文件:</para>
+	<note><title>译注</title>
+		<para>译者的惨痛教训表明,如果存在这个文件,
+			构建系统会无限循环。</para>
+	</note>
 
 <screen><userinput remap="pre">rm -f /usr/include/limits.h</userinput></screen>
 
-    <para>The Glibc documentation recommends building Glibc 
-    in a dedicated build directory:</para>
+    <!--para>The Glibc documentation recommends building Glibc 
+    in a dedicated build directory:</para-->
+	<para>Glibc 文档推荐在专用目录中构建它:</para>
 
 <screen><userinput remap="pre">mkdir -v build
 cd       build</userinput></screen>
@@ -102,38 +128,45 @@ cd       build</userinput></screen>
 unset GCC_INCDIR</userinput></screen>
 
    <variablelist>
-      <title>The meaning of the options and new configure parameters:</title>
+      <title>新的配置选项和参数的含义:</title>
 
       <varlistentry>
         <term><parameter>CC="gcc -isystem $GCC_INCDIR -isystem /usr/include"</parameter></term>
         <listitem>
-          <para>Setting the location of both gcc and system include directories
-          avoids introduction of invalid paths in debugging symbols.</para>
+          <!--para>Setting the location of both gcc and system include directories
+          avoids introduction of invalid paths in debugging symbols.</para-->
+          <para>设定 GCC 和系统的包含文件目录,避免调试符号中包含无效路径。
+		  </para>
         </listitem>
       </varlistentry>
 
       <varlistentry>
         <term><parameter>--disable-werror</parameter></term>
         <listitem>
-          <para>This option disables the -Werror option passed to 
-          GCC.  This is necessary for running the test suite.</para>
+          <!--para>This option disables the -Werror option passed to 
+          GCC.  This is necessary for running the test suite.</para-->
+	      <para>该选项禁用 GCC 的 -Werror 选项,
+			  这对于运行测试套件来说是必须的。</para>
         </listitem>
       </varlistentry>
 
       <varlistentry>
         <term><parameter>--enable-stack-protector=strong</parameter></term>
         <listitem>
-          <para>This option increases system security by adding 
+          <!--para>This option increases system security by adding 
           extra code to check for buffer overflows, such as stack
-          smashing attacks.</para>
+          smashing attacks.</para-->
+	      <para>该选项通过加入额外代码,
+			  对栈溢出攻击等导致的缓冲区溢出进行检查,以提高系统安全性。
+		  </para>
         </listitem>
       </varlistentry>
 
       <varlistentry>
         <term><parameter>libc_cv_slibdir=/lib</parameter></term>
         <listitem>
-          <para>This variable sets the correct library for all
-          systems.  We do not want lib64 to be used.</para>
+		  <para>这个变量纠正库文件安装位置,
+		  	  我们不希望使用 lib64 目录。</para>
         </listitem>
       </varlistentry>
 
@@ -144,30 +177,38 @@ unset GCC_INCDIR</userinput></screen>
 <screen><userinput remap="make">make</userinput></screen>
 
     <important>
-      <para>In this section, the test suite for Glibc is considered critical.
-      Do not skip it under any circumstance.</para>
+      <!--para>In this section, the test suite for Glibc is considered critical.
+      Do not skip it under any circumstance.</para-->
+      <para>在本节中, Glibc 的测试套件十分关键,在任何情况下都不能跳过。
+	  </para>
     </important>
 
-    <para>Generally a few tests do not pass. The test failures listed below
-    are usually safe to ignore.</para>
+    <!--para>Generally a few tests do not pass. The test failures listed below
+    are usually safe to ignore.</para-->
+    <para>通常来说,会有极少数测试可能不通过,
+        下面列出的失败结果一般可以安全地忽略。执行下列命令进行测试:
+    </para>
 
 <screen><userinput remap="test">make check</userinput></screen>
 
-    <para>You may see some test failures.  The Glibc test suite is
+    <!--para>You may see some test failures.  The Glibc test suite is
     somewhat dependent on the host system.  This is a list of the most common
-    issues seen for some versions of LFS:</para>
+    issues seen for some versions of LFS:</para-->
+    <para>您可能看到一些失败结果。
+		Glibc 的测试套件和宿主系统之间有某种依赖关系,以下是在一些版本的
+		LFS 上最常见的问题:</para>
 
     <itemizedlist>
 
       <listitem>
-        <para><emphasis>misc/tst-ttyname</emphasis> 
-        is known to fail in the LFS chroot environment.</para>
+        <para>已知 <emphasis>misc/tst-ttyname</emphasis> 
+        在 LFS chroot 环境中会失败。</para>
       </listitem>
 
       <listitem>
-        <para><emphasis>posix/tst-getaddrinfo4</emphasis> and
+        <para>已知 <emphasis>posix/tst-getaddrinfo4</emphasis> 和
         <emphasis>posix/tst-getaddrinfo5</emphasis>
-        may fail on some architectures.</para>
+        在某些硬件架构上会失败。</para>
       </listitem>
 <!--
       <listitem>
@@ -196,15 +237,20 @@ unset GCC_INCDIR</userinput></screen>
 -->
     </itemizedlist>
 
-    <para>Though it is a harmless message, the install stage of Glibc will
+    <!--para>Though it is a harmless message, the install stage of Glibc will
     complain about the absence of <filename>/etc/ld.so.conf</filename>.
-    Prevent this warning with:</para>
+    Prevent this warning with:</para-->
+	<para>在安装 Glibc 时,它会抱怨文件 <filename>/etc/ld.so.conf</filename>
+		不存在。尽管这是一条无害的消息,执行下列命令即可防止这个警告:
+	</para>
 
 <screen><userinput remap="install">touch /etc/ld.so.conf</userinput></screen>
 
-    <para>Fix the generated Makefile to skip an unneeded sanity check
+    <!--para>Fix the generated Makefile to skip an unneeded sanity check
     that fails in the LFS partial environment:
-    </para>
+    </para-->
+	<para>修正生成的 Makefile ,
+		跳过一个在 LFS 的不完整环境中会失败的完整性检查:</para>
 
 <screen><userinput remap="install">sed '/test-installation/s@$(PERL)@echo not running@' -i ../Makefile</userinput></screen>
 
@@ -212,24 +258,28 @@ unset GCC_INCDIR</userinput></screen>
 
 <screen><userinput remap="install">make install</userinput></screen>
 
-    <para>Install the configuration file and runtime directory for
-    <command>nscd</command>:</para>
+    <!--para>Install the configuration file and runtime directory for
+    <command>nscd</command>:</para-->
+	<para>安装 <command>nscd</command> 的配置文件和运行时目录:</para>
 
 <screen><userinput remap="install">cp -v ../nscd/nscd.conf /etc/nscd.conf
 mkdir -pv /var/cache/nscd</userinput></screen>
 
-    <para revision="systemd">Install the systemd support files for 
-    <command>nscd</command>:</para>
+    <para revision="systemd">安装
+    <command>nscd</command> 的 systemd 支持文件:</para>
 
     <screen revision="systemd"><userinput remap="install">install -v -Dm644 ../nscd/nscd.tmpfiles /usr/lib/tmpfiles.d/nscd.conf
 install -v -Dm644 ../nscd/nscd.service /lib/systemd/system/nscd.service</userinput></screen>
 
-    <para>Next, install the locales that can make the system respond in a
+    <!--para>Next, install the locales that can make the system respond in a
     different language.  None of the locales are required, but if some of them
     are missing, the test suites of future packages would skip important
-    testcases.</para>
+    testcases.</para-->
+	<para>下面,安装一些 locale ,它们可以使得系统用不同语言响应用户请求。
+		这些 locale 都不是必须的,但是如果缺少了它们中的某些,
+		在将来运行软件包的测试套件时,可能跳过重要的测试。</para>
 
-    <para>Individual locales can be installed using the
+    <!--para>Individual locales can be installed using the
     <command>localedef</command> program. E.g., the first
     <command>localedef</command> command below combines the
     <filename>/usr/share/i18n/locales/cs_CZ</filename>
@@ -238,7 +288,16 @@ install -v -Dm644 ../nscd/nscd.service /lib/systemd/system/nscd.service</userinp
     charmap definition and appends the result to the
     <filename>/usr/lib/locale/locale-archive</filename> file.
     The following instructions will install the minimum set of
-    locales necessary for the optimal coverage of tests:</para>
+    locales necessary for the optimal coverage of tests:</para-->
+	<para>可以用 <command>localedef</command> 程序安装单独的 locale 。
+		例如,下面的第一个 <command>localedef</command> 命令组合
+		<filename>/usr/share/i18n/locales/cs_CZ</filename>
+		中的字符集无关 locale 定义和
+		<filename>/usr/share/i18n/charmaps/UTF-8.gz</filename>
+		中的字符映射定义组合起来,将结果附加到
+		<filename>/usr/lib/locale/locale-archive</filename> 文件。
+		下面的命令将会安装能够覆盖测试所需的最小 locale 集合:</para>
+
 
 <screen role="nodump"><userinput remap="locale-test">mkdir -pv /usr/lib/locale
 localedef -i cs_CZ -f UTF-8 cs_CZ.UTF-8
@@ -263,25 +322,39 @@ localedef -i ru_RU -f UTF-8 ru_RU.UTF-8
 localedef -i tr_TR -f UTF-8 tr_TR.UTF-8
 localedef -i zh_CN -f GB18030 zh_CN.GB18030</userinput></screen>
 
-    <para>In addition, install the locale for your own country, language and
-    character set.</para>
-
-    <para>Alternatively, install all locales listed in the
+    <!--para>In addition, install the locale for your own country, language and
+    character set.</para-->
+	<para>另外,安装适合您自己国家、语言和字符集的 locale 。</para>
+	<note><title>译注</title><para>
+		建议中文用户安装 zh_CN.UTF-8 作为日常使用的 locale。GB18030
+		是为了后向兼容古老的 GB2312 而设计的编码,
+		在现代 Linux 系统和互联网使用时会引起一些奇怪的问题。
+		中华人民共和国国家标准化管理委员会的官方网站已经切换到 UTF-8。
+	</para></note>
+
+    <!--para>Alternatively, install all locales listed in the
     <filename>glibc-&glibc-version;/localedata/SUPPORTED</filename> file
     (it includes every locale listed above and many more) at once with the
-    following time-consuming command:</para>
+    following time-consuming command:</para-->
+	<para>或者,也可以一次安装
+		<filename>glibc-&glibc-version;/localedata/SUPPORTED</filename>
+		中列出的所有 locale (包括上面列出的所有 locale,以及其他很多)。
+		执行下列需要很长时间的命令:</para>
 
 <screen><userinput remap="locale-full">make localedata/install-locales</userinput></screen>
 
-    <para>Then use the <command>localedef</command> command to create and
+    <!--para>Then use the <command>localedef</command> command to create and
     install locales not listed in the
     <filename>glibc-&glibc-version;/localedata/SUPPORTED</filename> file
-    in the unlikely case you need them.</para>
+    in the unlikely case you need them.</para-->
+	<para>如果需要,再使用 <command>localedef</command> 命令创建和安装
+		<filename>glibc-&glibc-version;/localedata/SUPPORTED</filename>
+		中没有列出的 locale ,当然这不太可能。</para>
 
   </sect2>
 
   <sect2 id="conf-glibc" role="configuration">
-    <title>Configuring Glibc</title>
+    <title>配置 Glibc</title>
 
     <indexterm zone="conf-glibc">
       <primary sortas="e-/etc/nsswitch.conf">/etc/nsswitch.conf</primary>
@@ -292,14 +365,18 @@ localedef -i zh_CN -f GB18030 zh_CN.GB18030</userinput></screen>
     </indexterm>
 
   <sect3>
-  <title>Adding nsswitch.conf</title>
+  <title>添加 nsswitch.conf</title>
 
-    <para>The <filename>/etc/nsswitch.conf</filename> file needs to be created
+    <!--para>The <filename>/etc/nsswitch.conf</filename> file needs to be created
     because the Glibc defaults do not work well in a networked environment.
-    </para>
+    </para-->
+	<para>由于 Glibc 的默认值在网络环境下不能很好地工作,
+		需要创建配置文件 <filename>/etc/nsswitch.conf</filename>。</para>
 
-    <para>Create a new file <filename>/etc/nsswitch.conf</filename> by running the
-    following:</para>
+    <!--para>Create a new file <filename>/etc/nsswitch.conf</filename> by running the
+    following:</para-->
+	<para>执行下列命令创建新的 <filename>/etc/nsswitch.conf</filename>:
+	</para>
 
 <screen><userinput>cat &gt; /etc/nsswitch.conf &lt;&lt; "EOF"
 <literal># Begin /etc/nsswitch.conf
@@ -322,9 +399,10 @@ EOF</userinput></screen>
     </sect3>
 
     <sect3>
-    <title>Adding time zone data</title>
+    <title>添加时区数据</title>
 
-    <para>Install and set up the time zone data with the following:</para>
+    <!--para>Install and set up the time zone data with the following:</para-->
+	<para>输入下列命令,安装并设置时区数据:</para>
 <screen><userinput>tar -xf ../../tzdata&tzdata-version;.tar.gz
 
 ZONEINFO=/usr/share/zoneinfo
@@ -342,12 +420,12 @@ zic -d $ZONEINFO -p America/New_York
 unset ZONEINFO</userinput></screen>
 
     <variablelist>
-      <title>The meaning of the zic commands:</title>
+      <title>zic 命令的含义:</title>
 
       <varlistentry>
         <term><parameter>zic -L /dev/null ...</parameter></term>
         <listitem>
-          <para>This creates posix time zones, without any leap seconds.  It is
+          <!--para>This creates posix time zones, without any leap seconds.  It is
           conventional to put these in both
           <filename class="directory">zoneinfo</filename> and
           <filename class="directory">zoneinfo/posix</filename>. It is
@@ -357,36 +435,54 @@ unset ZONEINFO</userinput></screen>
           tight and you do not intend to ever update the time zones, you could save
           1.9MB by not using the <filename class="directory">posix</filename>
           directory, but some applications or test-suites might produce some
-          failures.</para>
+          failures.</para-->
+	      <para>该命令创建没有闰秒的 POSIX 时区。一般的惯例是将它们安装在
+			  <filename class="directory">zoneinfo</filename> 和
+			  <filename class="directory">zoneinfo/posix</filename>
+			  两个目录中。前者是必须的,否则若干测试套件会报告错误。
+			  在嵌入式系统上,如果存储空间十分紧张,
+			  而且您永远不会更新时区信息,您可以不使用
+			  <filename class="directory">posix</filename> 目录,
+			  以节约 1.9 MB,
+			  但个别程序或测试套件可能会失败。</para>
         </listitem>
       </varlistentry>
       <varlistentry>
         <term><parameter>zic -L leapseconds ...</parameter></term>
         <listitem>
-          <para>This creates right time zones, including leap seconds. On an
+          <!--para>This creates right time zones, including leap seconds. On an
           embedded system, where space is tight and you do not intend to
           ever update the time zones, or care about the correct time, you could
           save 1.9MB by omitting the <filename class="directory">right</filename>
-          directory.</para>
+          directory.</para-->
+          <para>该命令创建正确的,包含闰秒的时区。在嵌入式系统上,
+			  如果存储空间十分紧张,而且您永远不会更新时区信息,
+			  也不关心系统时间是否正确,您可以跳过
+			  <filename class="directory">right</filename> 目录,
+			  以节约 1.9 MB。</para>
         </listitem>
       </varlistentry>
       <varlistentry>
         <term><parameter>zic ... -p ...</parameter></term>
         <listitem>
-          <para>This creates the <filename>posixrules</filename> file. We use
+          <!--para>This creates the <filename>posixrules</filename> file. We use
           New York because POSIX requires the daylight savings time rules
-          to be in accordance with US rules.</para>
+          to be in accordance with US rules.</para-->
+          <para>该命令创建 <filename>posixrule</filename> 文件。
+			  我们使用纽约时区,因为 POSIX 要求与美国一致的夏令时规则。
+		  </para>
         </listitem>
       </varlistentry>
     </variablelist>
 
 
-    <para>One way to determine the local time zone is to run the following
-    script:</para>
+    <!--para>One way to determine the local time zone is to run the following
+    script:</para-->
+	<para>一种确定本地时区的方法是运行脚本:</para>
 
 <screen role="nodump"><userinput>tzselect</userinput></screen>
 
-    <para>After answering a few questions about the location, the script will
+    <!--para>After answering a few questions about the location, the script will
     output the name of the time zone (e.g.,
     <emphasis>America/Edmonton</emphasis>). There are also some other possible
     time zones listed in <filename
@@ -395,25 +491,36 @@ unset ZONEINFO</userinput></screen>
     are not identified by the script but can be used.</para>
 
     <para>Then create the <filename>/etc/localtime</filename> file by
-    running:</para>
+    running:</para-->
+    <para>在回答关于当前位置的若干问题后,脚本会输出对应时区的名字
+		(例如<emphasis>America/Edmonton</emphasis>)。
+		在 <filename class="directory">/usr/share/zoneinfo</filename>
+		中还有一些该脚本不能识别,但可以使用的时区,如
+		<emphasis>Canada/Eastern</emphasis> 或者
+		<emphasis>EST5EDT</emphasis>。</para>
+
+	<para>确定时区后,执行下列命令,创建
+		<filename>/etc/localtime</filename>:</para>
 
 <screen revision="sysv"><userinput>cp -v /usr/share/zoneinfo/<replaceable>&lt;xxx&gt;</replaceable> /etc/localtime</userinput></screen>
 
 <screen revision="systemd"><userinput>ln -sfv /usr/share/zoneinfo/<replaceable>&lt;xxx&gt;</replaceable> /etc/localtime</userinput></screen>
 
-    <para>Replace <replaceable>&lt;xxx&gt;</replaceable> with the name of the
-    time zone selected (e.g., Canada/Eastern).</para>
+    <!--para>Replace <replaceable>&lt;xxx&gt;</replaceable> with the name of the
+    time zone selected (e.g., Canada/Eastern).</para-->
+	<para>将 <replaceable>&lt;xxx&gt;</replaceable> 替换成选定时区的名称
+		(例如 Canada/Eastern)。</para>
 
   </sect3>
 
   <sect3 id="conf-ld" role="configuration">
-    <title>Configuring the Dynamic Loader</title>
+    <title>配置动态加载器</title>
 
     <indexterm zone="conf-ld">
       <primary sortas="e-/etc/ld.so.conf">/etc/ld.so.conf</primary>
     </indexterm>
 
-    <para>By default, the dynamic loader (<filename
+    <!--para>By default, the dynamic loader (<filename
     class="libraryfile">/lib/ld-linux.so.2</filename>) searches through
     <filename class="directory">/lib</filename> and <filename
     class="directory">/usr/lib</filename> for dynamic libraries that are
@@ -425,10 +532,23 @@ unset ZONEINFO</userinput></screen>
     to contain additional libraries are <filename
     class="directory">/usr/local/lib</filename> and <filename
     class="directory">/opt/lib</filename>, so add those directories to the
-    dynamic loader's search path.</para>
-
-    <para>Create a new file <filename>/etc/ld.so.conf</filename> by running the
-    following:</para>
+    dynamic loader's search path.</para-->
+    <para>默认情况下,动态加载器
+		(<filename class="libraryfile">/lib/ld-linux.so.2</filename>)
+		在 <filename class="directory">/lib</filename> 和
+		<filename class="directory">/usr/lib</filename>
+		中搜索程序运行时需要的动态库。然而,如果在其他目录中有动态库,
+		为了使动态加载器能够找到它们,需要把这些目录添加到文件
+		<filename>/etc/ld.so.conf</filename> 中。
+		有两个目录 <filename class="directory">/usr/local/lib</filename>
+		和 <filename class="directory">/opt/lib</filename>
+		经常包含附加的共享库,所以现在将它们添加到动态加载器的搜索目录中。
+	</para>
+
+    <!--para>Create a new file <filename>/etc/ld.so.conf</filename> by running the
+    following:</para-->
+	<para>运行下列命令,创建一个新的 <filename>/etc/ld.so.conf</filename>:
+	</para>
 
 <screen><userinput>cat &gt; /etc/ld.so.conf &lt;&lt; "EOF"
 <literal># Begin /etc/ld.so.conf
@@ -437,10 +557,14 @@ unset ZONEINFO</userinput></screen>
 </literal>
 EOF</userinput></screen>
 
-  <para>If desired, the dynamic loader can also search a directory and
+  <!--para>If desired, the dynamic loader can also search a directory and
   include the contents of files found there.  Generally the files in
   this include directory are one line specifying the desired library path.
-  To add this capability run the following commands:</para>
+  To add this capability run the following commands:</para-->
+  <para>如果希望的话,动态加载器也可以搜索一个目录,并将其中的文件包含在
+	  <filename>ld.so.conf</filename> 中。
+	  通常包含文件目录中的文件只有一行,指定一个期望的库文件目录。
+	  如果需要这项功能,执行下列命令:</para>
 
 <screen role="nodump"><userinput>cat &gt;&gt; /etc/ld.so.conf &lt;&lt; "EOF"
 <literal># Add an include directory
@@ -493,8 +617,7 @@ mkdir -pv /etc/ld.so.conf.d</userinput></screen>
       <varlistentry id="catchsegv">
         <term><command>catchsegv</command></term>
         <listitem>
-          <para>Can be used to create a stack trace when a program
-          terminates with a segmentation fault</para>
+          <para>在程序因为段错误而终止时创建栈跟踪</para>
           <indexterm zone="ch-system-glibc catchsegv">
             <primary sortas="b-catchsegv">catchsegv</primary>
           </indexterm>
@@ -504,7 +627,7 @@ mkdir -pv /etc/ld.so.conf.d</userinput></screen>
       <varlistentry id="gencat">
         <term><command>gencat</command></term>
         <listitem>
-          <para>Generates message catalogues</para>
+          <para>生成消息目录</para>
           <indexterm zone="ch-system-glibc gencat">
             <primary sortas="b-gencat">gencat</primary>
           </indexterm>
@@ -514,8 +637,7 @@ mkdir -pv /etc/ld.so.conf.d</userinput></screen>
       <varlistentry id="getconf">
         <term><command>getconf</command></term>
         <listitem>
-          <para>Displays the system configuration values for file system
-          specific variables</para>
+          <para>显示文件系统指定的系统配置变量值</para>
           <indexterm zone="ch-system-glibc getconf">
             <primary sortas="b-getconf">getconf</primary>
           </indexterm>
@@ -525,7 +647,7 @@ mkdir -pv /etc/ld.so.conf.d</userinput></screen>
       <varlistentry id="getent">
         <term><command>getent</command></term>
         <listitem>
-          <para>Gets entries from an administrative database</para>
+          <para>从管理数据库取得条目</para>
           <indexterm zone="ch-system-glibc getent">
             <primary sortas="b-getent">getent</primary>
           </indexterm>
@@ -535,7 +657,7 @@ mkdir -pv /etc/ld.so.conf.d</userinput></screen>
       <varlistentry id="iconv">
         <term><command>iconv</command></term>
         <listitem>
-          <para>Performs character set conversion</para>
+          <para>转换给定文件的编码</para>
           <indexterm zone="ch-system-glibc iconv">
             <primary sortas="b-iconv">iconv</primary>
           </indexterm>
@@ -545,8 +667,7 @@ mkdir -pv /etc/ld.so.conf.d</userinput></screen>
       <varlistentry id="iconvconfig">
         <term><command>iconvconfig</command></term>
         <listitem>
-          <para>Creates fastloading <command>iconv</command> module configuration
-          files</para>
+          <para>创建快速装入 <command>iconv</command> 模块配置文件</para>
           <indexterm zone="ch-system-glibc iconvconfig">
             <primary sortas="b-iconvconfig">iconvconfig</primary>
           </indexterm>
@@ -556,7 +677,7 @@ mkdir -pv /etc/ld.so.conf.d</userinput></screen>
       <varlistentry id="ldconfig">
         <term><command>ldconfig</command></term>
         <listitem>
-          <para>Configures the dynamic linker runtime bindings</para>
+          <para>设置运行时动态链接</para>
           <indexterm zone="ch-system-glibc ldconfig">
             <primary sortas="b-ldconfig">ldconfig</primary>
           </indexterm>
@@ -566,8 +687,7 @@ mkdir -pv /etc/ld.so.conf.d</userinput></screen>
       <varlistentry id="ldd">
         <term><command>ldd</command></term>
         <listitem>
-          <para>Reports which shared libraries are required
-          by each given program or shared library</para>
+          <para>报告给定程序或共享库依赖于哪些共享库</para>
           <indexterm zone="ch-system-glibc ldd">
             <primary sortas="b-ldd">ldd</primary>
           </indexterm>
@@ -577,7 +697,7 @@ mkdir -pv /etc/ld.so.conf.d</userinput></screen>
       <varlistentry id="lddlibc4">
         <term><command>lddlibc4</command></term>
         <listitem>
-          <para>Assists <command>ldd</command> with object files</para>
+          <para>辅助 <command>ldd</command> 处理对象文件</para>
           <indexterm zone="ch-system-glibc lddlibc4">
             <primary sortas="b-lddlibc4">lddlibc4</primary>
           </indexterm>
@@ -587,7 +707,7 @@ mkdir -pv /etc/ld.so.conf.d</userinput></screen>
       <varlistentry id="locale">
         <term><command>locale</command></term>
         <listitem>
-          <para>Prints various information about the current locale</para>
+          <para>给出当前区域的一些信息</para>
           <indexterm zone="ch-system-glibc locale">
             <primary sortas="b-locale">locale</primary>
           </indexterm>
@@ -597,7 +717,7 @@ mkdir -pv /etc/ld.so.conf.d</userinput></screen>
       <varlistentry id="localedef">
         <term><command>localedef</command></term>
         <listitem>
-          <para>Compiles locale specifications</para>
+          <para>编译 locale 规范</para>
           <indexterm zone="ch-system-glibc localedef">
             <primary sortas="b-localedef">localedef</primary>
           </indexterm>
@@ -607,7 +727,7 @@ mkdir -pv /etc/ld.so.conf.d</userinput></screen>
       <varlistentry id="makedb">
         <term><command>makedb</command></term>
         <listitem>
-          <para>Creates a simple database from textual input</para>
+          <para>从文本输入创建简单的数据库</para>
           <indexterm zone="ch-system-glibc makedb">
             <primary sortas="b-makedb">makedb</primary>
           </indexterm>
@@ -617,8 +737,8 @@ mkdir -pv /etc/ld.so.conf.d</userinput></screen>
       <varlistentry id="mtrace">
         <term><command>mtrace</command></term>
         <listitem>
-          <para>Reads and interprets a memory trace file and displays a summary
-          in human-readable format</para>
+          <para>读取并解析内存跟踪文件,以人类可读的形式输出内存跟踪信息
+          </para>
           <indexterm zone="ch-system-glibc mtrace">
             <primary sortas="b-mtrace">mtrace</primary>
           </indexterm>
@@ -628,8 +748,7 @@ mkdir -pv /etc/ld.so.conf.d</userinput></screen>
       <varlistentry id="nscd">
         <term><command>nscd</command></term>
         <listitem>
-          <para>A daemon that provides a cache for the most common name
-          service requests</para>
+          <para>一个缓存最常见命名服务请求的守护进程</para>
           <indexterm zone="ch-system-glibc nscd">
             <primary sortas="b-nscd">nscd</primary>
           </indexterm>
@@ -639,7 +758,7 @@ mkdir -pv /etc/ld.so.conf.d</userinput></screen>
       <varlistentry id="pldd">
         <term><command>pldd</command></term>
         <listitem>
-          <para>Lists dynamic shared objects used by running processes</para>
+          <para>列出正在运行的进程使用的共享库</para>
           <indexterm zone="ch-system-glibc pldd">
             <primary sortas="b-pldd">pldd</primary>
           </indexterm>
@@ -649,7 +768,7 @@ mkdir -pv /etc/ld.so.conf.d</userinput></screen>
       <varlistentry id="sln">
         <term><command>sln</command></term>
         <listitem>
-          <para>A statically linked <command>ln</command> program</para>
+          <para>静态链接的 <command>ln</command> 程序</para>
           <indexterm zone="ch-system-glibc sln">
             <primary sortas="b-sln">sln</primary>
           </indexterm>
@@ -659,7 +778,7 @@ mkdir -pv /etc/ld.so.conf.d</userinput></screen>
       <varlistentry id="sotruss">
         <term><command>sotruss</command></term>
         <listitem>
-          <para>Traces shared library procedure calls of a specified command</para>
+          <para>跟踪特定命令对共享库中子程序的调用</para>
           <indexterm zone="ch-system-glibc sotruss">
             <primary sortas="b-sotruss">sotruss</primary>
           </indexterm>
@@ -669,7 +788,7 @@ mkdir -pv /etc/ld.so.conf.d</userinput></screen>
       <varlistentry id="sprof">
         <term><command>sprof</command></term>
         <listitem>
-          <para>Reads and displays shared object profiling data</para>
+          <para>读取并显示共享库性能剖析数据</para>
           <indexterm zone="ch-system-glibc sprof">
             <primary sortas="b-sprof">sprof</primary>
           </indexterm>
@@ -679,8 +798,7 @@ mkdir -pv /etc/ld.so.conf.d</userinput></screen>
       <varlistentry id="tzselect">
         <term><command>tzselect</command></term>
         <listitem>
-          <para>Asks the user about the location of the system and reports
-          the corresponding time zone description</para>
+          <para>询问用户系统所在的位置并报告对应的时区</para>
           <indexterm zone="ch-system-glibc tzselect">
             <primary sortas="b-tzselect">tzselect</primary>
           </indexterm>
@@ -690,8 +808,7 @@ mkdir -pv /etc/ld.so.conf.d</userinput></screen>
       <varlistentry id="xtrace">
         <term><command>xtrace</command></term>
         <listitem>
-          <para>Traces the execution of a program by printing the currently
-          executed function</para>
+          <para>显示正在执行的函数以跟踪程序执行</para>
           <indexterm zone="ch-system-glibc xtrace">
             <primary sortas="b-xtrace">xtrace</primary>
           </indexterm>
@@ -701,7 +818,7 @@ mkdir -pv /etc/ld.so.conf.d</userinput></screen>
       <varlistentry id="zdump">
         <term><command>zdump</command></term>
         <listitem>
-          <para>The time zone dumper</para>
+          <para>输出当前时间在多个时区中的表示</para>
           <indexterm zone="ch-system-glibc zdump">
             <primary sortas="b-zdump">zdump</primary>
           </indexterm>
@@ -711,7 +828,7 @@ mkdir -pv /etc/ld.so.conf.d</userinput></screen>
       <varlistentry id="zic">
         <term><command>zic</command></term>
         <listitem>
-          <para>The time zone compiler</para>
+          <para>时区编译器</para>
           <indexterm zone="ch-system-glibc zic">
             <primary sortas="b-zic">zic</primary>
           </indexterm>
@@ -721,7 +838,7 @@ mkdir -pv /etc/ld.so.conf.d</userinput></screen>
       <varlistentry id="ld.so">
         <term><filename class="libraryfile">ld-&glibc-version;.so</filename></term>
         <listitem>
-          <para>The helper program for shared library executables</para>
+		  <para>动态链接器/加载器</para>
           <indexterm zone="ch-system-glibc ld.so">
             <primary sortas="c-ld.so">ld-&glibc-version;.so</primary>
           </indexterm>
@@ -731,10 +848,10 @@ mkdir -pv /etc/ld.so.conf.d</userinput></screen>
       <varlistentry id="libBrokenLocale">
         <term><filename class="libraryfile">libBrokenLocale</filename></term>
         <listitem>
-          <para>Used internally by Glibc as a gross hack to get broken programs
-          (e.g., some Motif applications) running. See comments in
-          <filename>glibc-&glibc-version;/locale/broken_cur_max.c</filename>
-          for more information</para>
+		  <para>被 Glibc 内部用作使某些不正确的程序(例如某些 Motif 程序)
+		  	  正常运行的粗糙手段,参阅
+			  <filename>glibc-&glibc-version;/locale/broken_cur_max.c</filename>
+			  中的注释了解更多信息</para>
           <indexterm zone="ch-system-glibc libBrokenLocale">
             <primary sortas="c-libBrokenLocale">libBrokenLocale</primary>
           </indexterm>
@@ -744,8 +861,8 @@ mkdir -pv /etc/ld.so.conf.d</userinput></screen>
       <varlistentry id="libSegFault">
         <term><filename class="libraryfile">libSegFault</filename></term>
         <listitem>
-          <para>The segmentation fault signal handler, used by
-          <command>catchsegv</command></para>
+		  <para><command>catchsegv</command> 使用的段错误信号处理程序
+		  </para>
           <indexterm zone="ch-system-glibc libSegFault">
             <primary sortas="c-libSegFault">libSegFault</primary>
           </indexterm>
@@ -755,7 +872,7 @@ mkdir -pv /etc/ld.so.conf.d</userinput></screen>
       <varlistentry id="libanl">
         <term><filename class="libraryfile">libanl</filename></term>
         <listitem>
-          <para>An asynchronous name lookup library</para>
+          <para>异步的命名查找库</para>
           <indexterm zone="ch-system-glibc libanl">
             <primary sortas="c-libanl">libanl</primary>
           </indexterm>
@@ -765,7 +882,7 @@ mkdir -pv /etc/ld.so.conf.d</userinput></screen>
       <varlistentry id="libc">
         <term><filename class="libraryfile">libc</filename></term>
         <listitem>
-          <para>The main C library</para>
+          <para>主要的 C 运行库</para>
           <indexterm zone="ch-system-glibc libc">
             <primary sortas="c-libc">libc</primary>
           </indexterm>
@@ -775,8 +892,8 @@ mkdir -pv /etc/ld.so.conf.d</userinput></screen>
       <varlistentry id="libcidn">
         <term><filename class="libraryfile">libcidn</filename></term>
         <listitem>
-          <para>Used internally by Glibc for handling internationalized domain
-          names in the <function>getaddrinfo()</function> function</para>
+		  <para>被 Glibc 内部的 <function>getaddrinfo</function> 函数
+		      用于处理国际化域名</para>
           <indexterm zone="ch-system-glibc libcidn">
             <primary sortas="c-libcidn">libcidn</primary>
           </indexterm>
@@ -786,7 +903,7 @@ mkdir -pv /etc/ld.so.conf.d</userinput></screen>
       <varlistentry id="libcrypt">
         <term><filename class="libraryfile">libcrypt</filename></term>
         <listitem>
-          <para>The cryptography library</para>
+          <para>密码学库</para>
           <indexterm zone="ch-system-glibc libcrypt">
             <primary sortas="c-libcrypt">libcrypt</primary>
           </indexterm>
@@ -796,7 +913,7 @@ mkdir -pv /etc/ld.so.conf.d</userinput></screen>
       <varlistentry id="libdl">
         <term><filename class="libraryfile">libdl</filename></term>
         <listitem>
-          <para>The dynamic linking interface library</para>
+          <para>动态链接接口库</para>
           <indexterm zone="ch-system-glibc libdl">
             <primary sortas="c-libdl">libdl</primary>
           </indexterm>
@@ -806,8 +923,8 @@ mkdir -pv /etc/ld.so.conf.d</userinput></screen>
       <varlistentry id="libg">
         <term><filename class="libraryfile">libg</filename></term>
         <listitem>
-          <para>Dummy library containing no functions. Previously was a runtime
-          library for <command>g++</command></para>
+		  <para>没有功能的空库,曾经是 <command>g++</command> 的运行库。
+		  </para>
           <indexterm zone="ch-system-glibc libg">
             <primary sortas="c-libg">libg</primary>
           </indexterm>
@@ -817,9 +934,12 @@ mkdir -pv /etc/ld.so.conf.d</userinput></screen>
       <varlistentry id="libieee">
         <term><filename class="libraryfile">libieee</filename></term>
         <listitem>
-          <para>Linking in this module forces error handling rules for math
+          <!--para>Linking in this module forces error handling rules for math
           functions as defined by the Institute of Electrical and Electronic
-          Engineers (IEEE). The default is POSIX.1 error handling</para>
+          Engineers (IEEE). The default is POSIX.1 error handling</para-->
+	      <para>链接该库以使用国际电气电子工程师学会(IEEE)
+			  定义的数学函数错误处理规则,而不是默认的 POSIX.1 错误处理。
+		  </para>
           <indexterm zone="ch-system-glibc libieee">
             <primary sortas="c-libieee">libieee</primary>
           </indexterm>
@@ -829,7 +949,7 @@ mkdir -pv /etc/ld.so.conf.d</userinput></screen>
       <varlistentry id="libm">
         <term><filename class="libraryfile">libm</filename></term>
         <listitem>
-          <para>The mathematical library</para>
+		  <para>数学库</para>
           <indexterm zone="ch-system-glibc libm">
             <primary sortas="c-libm">libm</primary>
           </indexterm>
@@ -839,7 +959,7 @@ mkdir -pv /etc/ld.so.conf.d</userinput></screen>
       <varlistentry id="libmcheck">
         <term><filename class="libraryfile">libmcheck</filename></term>
         <listitem>
-          <para>Turns on memory allocation checking when linked to</para>
+          <para>链接到该库时启用内存分配检查</para>
           <indexterm zone="ch-system-glibc libmcheck">
             <primary sortas="c-libmcheck">libmcheck</primary>
           </indexterm>
@@ -849,8 +969,8 @@ mkdir -pv /etc/ld.so.conf.d</userinput></screen>
       <varlistentry id="libmemusage">
         <term><filename class="libraryfile">libmemusage</filename></term>
         <listitem>
-          <para>Used by <command>memusage</command> to help collect
-          information about the memory usage of a program</para>
+          <para>被 <command>memusage</command> 用于收集程序内存使用信息
+          </para>
           <indexterm zone="ch-system-glibc libmemusage">
             <primary sortas="c-libmemusage">libmemusage</primary>
           </indexterm>
@@ -860,7 +980,7 @@ mkdir -pv /etc/ld.so.conf.d</userinput></screen>
       <varlistentry id="libnsl">
         <term><filename class="libraryfile">libnsl</filename></term>
         <listitem>
-          <para>The network services library</para>
+          <para>网络服务库</para>
           <indexterm zone="ch-system-glibc libnsl">
             <primary sortas="c-libnsl">libnsl</primary>
           </indexterm>
@@ -870,9 +990,8 @@ mkdir -pv /etc/ld.so.conf.d</userinput></screen>
       <varlistentry id="libnss">
         <term><filename class="libraryfile">libnss</filename></term>
         <listitem>
-          <para>The Name Service Switch libraries, containing functions for
-          resolving host names, user names, group names, aliases, services,
-          protocols, etc.</para>
+		  <para>命名服务开关库,包含用于解析域名、用户名、组名、代号、
+			  服务、协议等的函数。</para>
           <indexterm zone="ch-system-glibc libnss">
             <primary sortas="c-libnss">libnss</primary>
           </indexterm>
@@ -882,7 +1001,7 @@ mkdir -pv /etc/ld.so.conf.d</userinput></screen>
       <varlistentry id="libpthread">
         <term><filename class="libraryfile">libpthread</filename></term>
         <listitem>
-          <para>The POSIX threads library</para>
+          <para>POSIX 线程库</para>
           <indexterm zone="ch-system-glibc libpthread">
             <primary sortas="c-libpthread">libpthread</primary>
           </indexterm>
@@ -892,8 +1011,7 @@ mkdir -pv /etc/ld.so.conf.d</userinput></screen>
       <varlistentry id="libresolv">
         <term><filename class="libraryfile">libresolv</filename></term>
         <listitem>
-          <para>Contains functions for creating, sending, and interpreting
-          packets to the Internet domain name servers</para>
+          <para>包含用于创建、发送和解析因特网域名服务数据包的函数。</para>
           <indexterm zone="ch-system-glibc libresolv">
             <primary sortas="c-libresolv">libresolv</primary>
           </indexterm>
@@ -903,7 +1021,7 @@ mkdir -pv /etc/ld.so.conf.d</userinput></screen>
       <varlistentry id="librpcsvc">
         <term><filename class="libraryfile">librpcsvc</filename></term>
         <listitem>
-          <para>Contains functions providing miscellaneous RPC services</para>
+          <para>包含一些 RPC 服务函数</para>
           <indexterm zone="ch-system-glibc librpcsvc">
             <primary sortas="c-librpcsvc">librpcsvc</primary>
           </indexterm>
@@ -913,8 +1031,7 @@ mkdir -pv /etc/ld.so.conf.d</userinput></screen>
       <varlistentry id="librt">
         <term><filename class="libraryfile">librt</filename></term>
         <listitem>
-          <para>Contains functions providing most of the interfaces specified
-          by the POSIX.1b Realtime Extension</para>
+          <para>包含 POSIX.1b 实时扩展要求的多数接口</para>
           <indexterm zone="ch-system-glibc librt">
             <primary sortas="c-librt">librt</primary>
           </indexterm>
@@ -924,8 +1041,7 @@ mkdir -pv /etc/ld.so.conf.d</userinput></screen>
       <varlistentry id="libthread_db">
         <term><filename class="libraryfile">libthread_db</filename></term>
         <listitem>
-          <para>Contains functions useful for building debuggers for
-          multi-threaded programs</para>
+          <para>包含用于构建多线程程序调试的函数器</para>
           <indexterm zone="ch-system-glibc libthread_db">
             <primary sortas="c-libthread_db">libthread_db</primary>
           </indexterm>
@@ -935,8 +1051,7 @@ mkdir -pv /etc/ld.so.conf.d</userinput></screen>
       <varlistentry id="libutil">
         <term><filename class="libraryfile">libutil</filename></term>
         <listitem>
-          <para>Contains code for <quote>standard</quote> functions used in
-          many different Unix utilities</para>
+          <para>包含许多 Unix 工具使用的 <quote>标准</quote> 函数</para>
           <indexterm zone="ch-system-glibc libutil">
             <primary sortas="c-libutil">libutil</primary>
           </indexterm>