hostreqs.po 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321
  1. msgid ""
  2. msgstr ""
  3. "X-Pootle-Revision: 9999999\n"
  4. "X-Pootle-Path: /zh_CN/lfs/chapter02/hostreqs.po\n"
  5. "Project-Id-Version: PACKAGE VERSION\n"
  6. "POT-Creation-Date: 2020-08-08 19:28+0800\n"
  7. "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
  8. "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
  9. "Language-Team: LANGUAGE <LL@li.org>\n"
  10. "Language: zh_CN\n"
  11. "MIME-Version: 1.0\n"
  12. "Content-Type: text/plain; charset=UTF-8\n"
  13. "Content-Transfer-Encoding: 8bit\n"
  14. "X-Generator: Translate Toolkit 2.2.5\n"
  15. #. type: Content of: <sect1><title>
  16. msgid "Host System Requirements"
  17. msgstr "宿主系统需求"
  18. #. type: Content of: <sect1><para>
  19. msgid ""
  20. "Your host system should have the following software with the minimum "
  21. "versions indicated. This should not be an issue for most modern Linux "
  22. "distributions. Also note that many distributions will place software headers "
  23. "into separate packages, often in the form of <quote>&lt;package-name&gt;-"
  24. "devel</quote> or <quote>&lt;package-name&gt;-dev</quote>. Be sure to install "
  25. "those if your distribution provides them."
  26. msgstr ""
  27. "您的宿主系统必须拥有下列软件,且版本不能低于我们给出的最低版本。对于大多数现"
  28. "代 Linux 发行版来说这不成问题。要注意的是,很多发行版会把软件的头文件放在单独"
  29. "的软件包中,这些软件包的名称往往是 <quote>&lt;软件包名&gt;-devel</quote> 或"
  30. "者 <quote>&lt;软件包名&gt;-dev</quote>。如果您的发行版为下列软件提供了这类软"
  31. "件包,一定要安装它们。"
  32. #. type: Content of: <sect1><para>
  33. msgid ""
  34. "Earlier versions of the listed software packages may work, but have not been "
  35. "tested."
  36. msgstr "比下列最低版本更古老的版本可能正常工作,但作者没有进行测试。"
  37. #. type: Content of: <sect1><itemizedlist><listitem><para>
  38. msgid ""
  39. "<emphasis role=\"strong\">Bash-3.2</emphasis> (/bin/sh should be a symbolic "
  40. "or hard link to bash)"
  41. msgstr ""
  42. "<emphasis role=\"strong\">Bash-3.2</emphasis> (/bin/sh 必须是到 bash 的符号链"
  43. "接或硬连接)"
  44. #. type: Content of: <sect1><itemizedlist><listitem><para>
  45. msgid ""
  46. "<emphasis role=\"strong\">Binutils-2.25</emphasis> (Versions greater than "
  47. "&binutils-version; are not recommended as they have not been tested)"
  48. msgstr ""
  49. "<emphasis role=\"strong\">Binutils-2.25</emphasis> (比 &binutils-version; 更"
  50. "新的版本未经测试,不推荐使用)"
  51. #. type: Content of: <sect1><itemizedlist><listitem><para>
  52. msgid ""
  53. "<emphasis role=\"strong\">Bison-2.7</emphasis> (/usr/bin/yacc should be a "
  54. "link to bison or small script that executes bison)"
  55. msgstr ""
  56. "<emphasis role=\"strong\">Bison-2.7</emphasis> (/usr/bin/yacc 必须是到 bison "
  57. "的链接,或者是一个执行 bison 的小脚本)"
  58. #. type: Content of: <sect1><itemizedlist><listitem><para>
  59. msgid "<emphasis role=\"strong\">Bzip2-1.0.4</emphasis>"
  60. msgstr "<emphasis role=\"strong\">Bzip2-1.0.4</emphasis>"
  61. #. type: Content of: <sect1><itemizedlist><listitem><para>
  62. msgid "<emphasis role=\"strong\">Coreutils-6.9</emphasis>"
  63. msgstr "<emphasis role=\"strong\">Coreutils-6.9</emphasis>"
  64. #. type: Content of: <sect1><itemizedlist><listitem><para>
  65. msgid "<emphasis role=\"strong\">Diffutils-2.8.1</emphasis>"
  66. msgstr "<emphasis role=\"strong\">Diffutils-2.8.1</emphasis>"
  67. #. type: Content of: <sect1><itemizedlist><listitem><para>
  68. msgid "<emphasis role=\"strong\">Findutils-4.2.31</emphasis>"
  69. msgstr "<emphasis role=\"strong\">Findutils-4.2.31</emphasis>"
  70. #. type: Content of: <sect1><itemizedlist><listitem><para>
  71. msgid ""
  72. "<emphasis role=\"strong\">Gawk-4.0.1</emphasis> (/usr/bin/awk should be a "
  73. "link to gawk)"
  74. msgstr ""
  75. "<emphasis role=\"strong\">Gawk-4.0.1</emphasis> (/usr/bin/awk 必须是到 gawk "
  76. "的链接)"
  77. #. type: Content of: <sect1><itemizedlist><listitem><para>
  78. msgid ""
  79. "<emphasis role=\"strong\">GCC-6.2</emphasis> including the C++ compiler, "
  80. "<command>g++</command> (Versions greater than &gcc-version; are not "
  81. "recommended as they have not been tested)"
  82. msgstr ""
  83. "<emphasis role=\"strong\">GCC-6.2</emphasis> 包括 C++ 编译器, <command>g++</"
  84. "command> (比 &gcc-version; 更新的版本未经测试,不推荐使用)"
  85. #. type: Content of: <sect1><itemizedlist><listitem><para>
  86. msgid ""
  87. "<emphasis role=\"strong\">Glibc-2.11</emphasis> (Versions greater than "
  88. "&glibc-version; are not recommended as they have not been tested)"
  89. msgstr ""
  90. "<emphasis role=\"strong\">Glibc-2.11</emphasis> (比 &glibc-version; 更新的版"
  91. "本未经测试,不推荐使用)"
  92. #. type: Content of: <sect1><itemizedlist><listitem><para>
  93. msgid "<emphasis role=\"strong\">Grep-2.5.1a</emphasis>"
  94. msgstr "<emphasis role=\"strong\">Grep-2.5.1a</emphasis>"
  95. #. type: Content of: <sect1><itemizedlist><listitem><para>
  96. msgid "<emphasis role=\"strong\">Gzip-1.3.12</emphasis>"
  97. msgstr "<emphasis role=\"strong\">Gzip-1.3.12</emphasis>"
  98. #. type: Content of: <sect1><itemizedlist><listitem><para>
  99. msgid "<emphasis role=\"strong\">Linux Kernel-&min-kernel;</emphasis>"
  100. msgstr "<emphasis role=\"strong\">Linux Kernel-&min-kernel;</emphasis>"
  101. #. type: Content of: <sect1><itemizedlist><listitem><para>
  102. msgid ""
  103. "The reason for the kernel version requirement is that we specify that "
  104. "version when building <application>glibc</application> in Chapter&nbsp;6 at "
  105. "the recommendation of the developers. It is also required by udev."
  106. msgstr ""
  107. "内核版本的要求是为了符合第 6 章中编译 <application>glibc</application> 时开发"
  108. "者推荐的配置选项。udev 也要求一定的内核版本。"
  109. #. type: Content of: <sect1><itemizedlist><listitem><para>
  110. msgid ""
  111. "If the host kernel is earlier than &min-kernel; you will need to replace the "
  112. "kernel with a more up to date version. There are two ways you can go about "
  113. "this. First, see if your Linux vendor provides a &min-kernel; or later "
  114. "kernel package. If so, you may wish to install it. If your vendor doesn't "
  115. "offer an acceptable kernel package, or you would prefer not to install it, "
  116. "you can compile a kernel yourself. Instructions for compiling the kernel and "
  117. "configuring the boot loader (assuming the host uses GRUB) are located in "
  118. "<xref linkend=\"chapter-bootable\"/>."
  119. msgstr ""
  120. "如果宿主内核比 &min-kernel; 更早,您需要将内核升级到较新的版本。升级内核有两"
  121. "种方法,如果您的发行版供应商提供了 &min-kernel; 或更新的内核软件包,您可以直"
  122. "接安装它。如果供应商没有提供一个足够新的内核包,或者您不想安装它,您可以自己"
  123. "编译内核。编译内核和配置启动引导器 (假设宿主使用 GRUB) 的步骤在<xref "
  124. "linkend=\"chapter-bootable\"/>中。"
  125. #. type: Content of: <sect1><itemizedlist><listitem><para>
  126. msgid "<emphasis role=\"strong\">M4-1.4.10</emphasis>"
  127. msgstr "<emphasis role=\"strong\">M4-1.4.10</emphasis>"
  128. #. type: Content of: <sect1><itemizedlist><listitem><para>
  129. msgid "<emphasis role=\"strong\">Make-4.0</emphasis>"
  130. msgstr "<emphasis role=\"strong\">Make-4.0</emphasis>"
  131. #. type: Content of: <sect1><itemizedlist><listitem><para>
  132. msgid "<emphasis role=\"strong\">Patch-2.5.4</emphasis>"
  133. msgstr "<emphasis role=\"strong\">Patch-2.5.4</emphasis>"
  134. #. type: Content of: <sect1><itemizedlist><listitem><para>
  135. msgid "<emphasis role=\"strong\">Perl-5.8.8</emphasis>"
  136. msgstr "<emphasis role=\"strong\">Perl-5.8.8</emphasis>"
  137. #. type: Content of: <sect1><itemizedlist><listitem><para>
  138. msgid "<emphasis role=\"strong\">Python-3.4</emphasis>"
  139. msgstr "<emphasis role=\"strong\">Python-3.4</emphasis>"
  140. #. type: Content of: <sect1><itemizedlist><listitem><para>
  141. msgid "<emphasis role=\"strong\">Sed-4.1.5</emphasis>"
  142. msgstr "<emphasis role=\"strong\">Sed-4.1.5</emphasis>"
  143. #. type: Content of: <sect1><itemizedlist><listitem><para>
  144. msgid "<emphasis role=\"strong\">Tar-1.22</emphasis>"
  145. msgstr "<emphasis role=\"strong\">Tar-1.22</emphasis>"
  146. #. type: Content of: <sect1><itemizedlist><listitem><para>
  147. msgid "<emphasis role=\"strong\">Texinfo-4.7</emphasis>"
  148. msgstr "<emphasis role=\"strong\">Texinfo-4.7</emphasis>"
  149. #. type: Content of: <sect1><itemizedlist><listitem><para>
  150. msgid "<emphasis role=\"strong\">Xz-5.0.0</emphasis>"
  151. msgstr "<emphasis role=\"strong\">Xz-5.0.0</emphasis>"
  152. #. type: Content of: <sect1><important><para>
  153. msgid ""
  154. "Note that the symlinks mentioned above are required to build an LFS system "
  155. "using the instructions contained within this book. Symlinks that point to "
  156. "other software (such as dash, mawk, etc.) may work, but are not tested or "
  157. "supported by the LFS development team, and may require either deviation from "
  158. "the instructions or additional patches to some packages."
  159. msgstr ""
  160. "上面要求的符号链接是根据本书构建 LFS 的充分条件,不是必要条件。链接指向其他软"
  161. "件 (如 dash 或 mawk 等) 可能不会引发问题,但 LFS 开发团队没有尝试过这种做法,"
  162. "也无法提供帮助。对于一些软件包来说,您可能需要修改本书中的指令或者使用额外的"
  163. "补丁,才能在这类宿主环境成功构建。"
  164. #. type: Content of: <sect1><para>
  165. msgid ""
  166. "To see whether your host system has all the appropriate versions, and the "
  167. "ability to compile programs, run the following:"
  168. msgstr ""
  169. "为了确定您的宿主系统拥有每个软件的合适版本,且能够编译程序,请运行下列脚本。"
  170. #. type: Content of: <sect1><screen>
  171. #, no-wrap
  172. msgid ""
  173. "<userinput>cat &gt; version-check.sh &lt;&lt; \"EOF\"\n"
  174. "<literal>#!/bin/bash\n"
  175. "# Simple script to list version numbers of critical development tools\n"
  176. "export LC_ALL=C\n"
  177. "bash --version | head -n1 | cut -d\" \" -f2-4\n"
  178. "MYSH=$(readlink -f /bin/sh)\n"
  179. "echo \"/bin/sh -&gt; $MYSH\"\n"
  180. "echo $MYSH | grep -q bash || echo \"ERROR: /bin/sh does not point to bash\"\n"
  181. "unset MYSH\n"
  182. "\n"
  183. "echo -n \"Binutils: \"; ld --version | head -n1 | cut -d\" \" -f3-\n"
  184. "bison --version | head -n1\n"
  185. "\n"
  186. "if [ -h /usr/bin/yacc ]; then\n"
  187. " echo \"/usr/bin/yacc -> `readlink -f /usr/bin/yacc`\";\n"
  188. "elif [ -x /usr/bin/yacc ]; then\n"
  189. " echo yacc is `/usr/bin/yacc --version | head -n1`\n"
  190. "else\n"
  191. " echo \"yacc not found\" \n"
  192. "fi\n"
  193. "\n"
  194. "bzip2 --version 2&gt;&amp;1 &lt; /dev/null | head -n1 | cut -d\" \" -f1,6-\n"
  195. "echo -n \"Coreutils: \"; chown --version | head -n1 | cut -d\")\" -f2\n"
  196. "diff --version | head -n1\n"
  197. "find --version | head -n1\n"
  198. "gawk --version | head -n1\n"
  199. "\n"
  200. "if [ -h /usr/bin/awk ]; then\n"
  201. " echo \"/usr/bin/awk -&gt; `readlink -f /usr/bin/awk`\";\n"
  202. "elif [ -x /usr/bin/awk ]; then\n"
  203. " echo awk is `/usr/bin/awk --version | head -n1`\n"
  204. "else \n"
  205. " echo \"awk not found\" \n"
  206. "fi\n"
  207. "\n"
  208. "gcc --version | head -n1\n"
  209. "g++ --version | head -n1\n"
  210. "ldd --version | head -n1 | cut -d\" \" -f2- # glibc version\n"
  211. "grep --version | head -n1\n"
  212. "gzip --version | head -n1\n"
  213. "cat /proc/version\n"
  214. "m4 --version | head -n1\n"
  215. "make --version | head -n1\n"
  216. "patch --version | head -n1\n"
  217. "echo Perl `perl -V:version`\n"
  218. "python3 --version\n"
  219. "sed --version | head -n1\n"
  220. "tar --version | head -n1\n"
  221. "makeinfo --version | head -n1 # texinfo version\n"
  222. "xz --version | head -n1\n"
  223. "\n"
  224. "echo 'int main(){}' &gt; dummy.c &amp;&amp; g++ -o dummy dummy.c\n"
  225. "if [ -x dummy ]\n"
  226. " then echo \"g++ compilation OK\";\n"
  227. " else echo \"g++ compilation failed\"; fi\n"
  228. "rm -f dummy.c dummy</literal>\n"
  229. "EOF\n"
  230. "\n"
  231. "bash version-check.sh</userinput>"
  232. msgstr ""
  233. "<userinput>cat &gt; version-check.sh &lt;&lt; \"EOF\"\n"
  234. "<literal>#!/bin/bash\n"
  235. "# Simple script to list version numbers of critical development tools\n"
  236. "export LC_ALL=C\n"
  237. "bash --version | head -n1 | cut -d\" \" -f2-4\n"
  238. "MYSH=$(readlink -f /bin/sh)\n"
  239. "echo \"/bin/sh -&gt; $MYSH\"\n"
  240. "echo $MYSH | grep -q bash || echo \"ERROR: /bin/sh does not point to bash\"\n"
  241. "unset MYSH\n"
  242. "\n"
  243. "echo -n \"Binutils: \"; ld --version | head -n1 | cut -d\" \" -f3-\n"
  244. "bison --version | head -n1\n"
  245. "\n"
  246. "if [ -h /usr/bin/yacc ]; then\n"
  247. " echo \"/usr/bin/yacc -> `readlink -f /usr/bin/yacc`\";\n"
  248. "elif [ -x /usr/bin/yacc ]; then\n"
  249. " echo yacc is `/usr/bin/yacc --version | head -n1`\n"
  250. "else\n"
  251. " echo \"yacc not found\" \n"
  252. "fi\n"
  253. "\n"
  254. "bzip2 --version 2&gt;&amp;1 &lt; /dev/null | head -n1 | cut -d\" \" -f1,6-\n"
  255. "echo -n \"Coreutils: \"; chown --version | head -n1 | cut -d\")\" -f2\n"
  256. "diff --version | head -n1\n"
  257. "find --version | head -n1\n"
  258. "gawk --version | head -n1\n"
  259. "\n"
  260. "if [ -h /usr/bin/awk ]; then\n"
  261. " echo \"/usr/bin/awk -&gt; `readlink -f /usr/bin/awk`\";\n"
  262. "elif [ -x /usr/bin/awk ]; then\n"
  263. " echo awk is `/usr/bin/awk --version | head -n1`\n"
  264. "else \n"
  265. " echo \"awk not found\" \n"
  266. "fi\n"
  267. "\n"
  268. "gcc --version | head -n1\n"
  269. "g++ --version | head -n1\n"
  270. "ldd --version | head -n1 | cut -d\" \" -f2- # glibc version\n"
  271. "grep --version | head -n1\n"
  272. "gzip --version | head -n1\n"
  273. "cat /proc/version\n"
  274. "m4 --version | head -n1\n"
  275. "make --version | head -n1\n"
  276. "patch --version | head -n1\n"
  277. "echo Perl `perl -V:version`\n"
  278. "python3 --version\n"
  279. "sed --version | head -n1\n"
  280. "tar --version | head -n1\n"
  281. "makeinfo --version | head -n1 # texinfo version\n"
  282. "xz --version | head -n1\n"
  283. "\n"
  284. "echo 'int main(){}' &gt; dummy.c &amp;&amp; g++ -o dummy dummy.c\n"
  285. "if [ -x dummy ]\n"
  286. " then echo \"g++ compilation OK\";\n"
  287. " else echo \"g++ compilation failed\"; fi\n"
  288. "rm -f dummy.c dummy</literal>\n"
  289. "EOF\n"
  290. "\n"
  291. "bash version-check.sh</userinput>"