hostreqs.po 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323
  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 ""
  61. "<emphasis role=\"strong\">Bison-2.7</emphasis> (/usr/bin/yacc 必须是到 bison "
  62. "的链接,或者是一个执行 bison 的小脚本)"
  63. #. type: Content of: <sect1><itemizedlist><listitem><para>
  64. msgid "<emphasis role=\"strong\">Coreutils-6.9</emphasis>"
  65. msgstr "<emphasis role=\"strong\">Coreutils-6.9</emphasis>"
  66. #. type: Content of: <sect1><itemizedlist><listitem><para>
  67. msgid "<emphasis role=\"strong\">Diffutils-2.8.1</emphasis>"
  68. msgstr "<emphasis role=\"strong\">Diffutils-2.8.1</emphasis>"
  69. #. type: Content of: <sect1><itemizedlist><listitem><para>
  70. msgid "<emphasis role=\"strong\">Findutils-4.2.31</emphasis>"
  71. msgstr "<emphasis role=\"strong\">Findutils-4.2.31</emphasis>"
  72. #. type: Content of: <sect1><itemizedlist><listitem><para>
  73. msgid ""
  74. "<emphasis role=\"strong\">Gawk-4.0.1</emphasis> (/usr/bin/awk should be a "
  75. "link to gawk)"
  76. msgstr ""
  77. "<emphasis role=\"strong\">Gawk-4.0.1</emphasis> (/usr/bin/awk 必须是到 gawk "
  78. "的链接)"
  79. #. type: Content of: <sect1><itemizedlist><listitem><para>
  80. msgid ""
  81. "<emphasis role=\"strong\">GCC-6.2</emphasis> including the C++ compiler, "
  82. "<command>g++</command> (Versions greater than &gcc-version; are not "
  83. "recommended as they have not been tested)"
  84. msgstr ""
  85. "<emphasis role=\"strong\">GCC-6.2</emphasis> 包括 C++ 编译器, <command>g++</"
  86. "command> (比 &gcc-version; 更新的版本未经测试,不推荐使用)"
  87. #. type: Content of: <sect1><itemizedlist><listitem><para>
  88. msgid ""
  89. "<emphasis role=\"strong\">Glibc-2.11</emphasis> (Versions greater than "
  90. "&glibc-version; are not recommended as they have not been tested)"
  91. msgstr ""
  92. "<emphasis role=\"strong\">Glibc-2.11</emphasis> (比 &glibc-version; 更新的版"
  93. "本未经测试,不推荐使用)"
  94. #. type: Content of: <sect1><itemizedlist><listitem><para>
  95. msgid "<emphasis role=\"strong\">Grep-2.5.1a</emphasis>"
  96. msgstr "<emphasis role=\"strong\">Grep-2.5.1a</emphasis>"
  97. #. type: Content of: <sect1><itemizedlist><listitem><para>
  98. msgid "<emphasis role=\"strong\">Gzip-1.3.12</emphasis>"
  99. msgstr "<emphasis role=\"strong\">Gzip-1.3.12</emphasis>"
  100. #. type: Content of: <sect1><itemizedlist><listitem><para>
  101. msgid "<emphasis role=\"strong\">Linux Kernel-&min-kernel;</emphasis>"
  102. msgstr "<emphasis role=\"strong\">Linux Kernel-&min-kernel;</emphasis>"
  103. #. type: Content of: <sect1><itemizedlist><listitem><para>
  104. msgid ""
  105. "The reason for the kernel version requirement is that we specify that "
  106. "version when building <application>glibc</application> in Chapter&nbsp;6 at "
  107. "the recommendation of the developers. It is also required by udev."
  108. msgstr ""
  109. "内核版本的要求是为了符合第 6 章中编译 <application>glibc</application> 时开发"
  110. "者推荐的配置选项。udev 也要求一定的内核版本。"
  111. #. type: Content of: <sect1><itemizedlist><listitem><para>
  112. msgid ""
  113. "If the host kernel is earlier than &min-kernel; you will need to replace the "
  114. "kernel with a more up to date version. There are two ways you can go about "
  115. "this. First, see if your Linux vendor provides a &min-kernel; or later "
  116. "kernel package. If so, you may wish to install it. If your vendor doesn't "
  117. "offer an acceptable kernel package, or you would prefer not to install it, "
  118. "you can compile a kernel yourself. Instructions for compiling the kernel and "
  119. "configuring the boot loader (assuming the host uses GRUB) are located in "
  120. "<xref linkend=\"chapter-bootable\"/>."
  121. msgstr ""
  122. "如果宿主内核比 &min-kernel; 更早,您需要将内核升级到较新的版本。升级内核有两"
  123. "种方法,如果您的发行版供应商提供了 &min-kernel; 或更新的内核软件包,您可以直"
  124. "接安装它。如果供应商没有提供一个足够新的内核包,或者您不想安装它,您可以自己"
  125. "编译内核。编译内核和配置启动引导器 (假设宿主使用 GRUB) 的步骤在<xref "
  126. "linkend=\"chapter-bootable\"/>中。"
  127. #. type: Content of: <sect1><itemizedlist><listitem><para>
  128. msgid "<emphasis role=\"strong\">M4-1.4.10</emphasis>"
  129. msgstr "<emphasis role=\"strong\">M4-1.4.10</emphasis>"
  130. #. type: Content of: <sect1><itemizedlist><listitem><para>
  131. msgid "<emphasis role=\"strong\">Make-4.0</emphasis>"
  132. msgstr "<emphasis role=\"strong\">Make-4.0</emphasis>"
  133. #. type: Content of: <sect1><itemizedlist><listitem><para>
  134. msgid "<emphasis role=\"strong\">Patch-2.5.4</emphasis>"
  135. msgstr "<emphasis role=\"strong\">Patch-2.5.4</emphasis>"
  136. #. type: Content of: <sect1><itemizedlist><listitem><para>
  137. msgid "<emphasis role=\"strong\">Perl-5.8.8</emphasis>"
  138. msgstr "<emphasis role=\"strong\">Perl-5.8.8</emphasis>"
  139. #. type: Content of: <sect1><itemizedlist><listitem><para>
  140. msgid "<emphasis role=\"strong\">Python-3.4</emphasis>"
  141. msgstr "<emphasis role=\"strong\">Python-3.4</emphasis>"
  142. #. type: Content of: <sect1><itemizedlist><listitem><para>
  143. msgid "<emphasis role=\"strong\">Sed-4.1.5</emphasis>"
  144. msgstr "<emphasis role=\"strong\">Sed-4.1.5</emphasis>"
  145. #. type: Content of: <sect1><itemizedlist><listitem><para>
  146. msgid "<emphasis role=\"strong\">Tar-1.22</emphasis>"
  147. msgstr "<emphasis role=\"strong\">Tar-1.22</emphasis>"
  148. #. type: Content of: <sect1><itemizedlist><listitem><para>
  149. msgid "<emphasis role=\"strong\">Texinfo-4.7</emphasis>"
  150. msgstr "<emphasis role=\"strong\">Texinfo-4.7</emphasis>"
  151. #. type: Content of: <sect1><itemizedlist><listitem><para>
  152. msgid "<emphasis role=\"strong\">Xz-5.0.0</emphasis>"
  153. msgstr "<emphasis role=\"strong\">Xz-5.0.0</emphasis>"
  154. #. type: Content of: <sect1><important><para>
  155. msgid ""
  156. "Note that the symlinks mentioned above are required to build an LFS system "
  157. "using the instructions contained within this book. Symlinks that point to "
  158. "other software (such as dash, mawk, etc.) may work, but are not tested or "
  159. "supported by the LFS development team, and may require either deviation from "
  160. "the instructions or additional patches to some packages."
  161. msgstr ""
  162. "上面要求的符号链接是根据本书构建 LFS 的充分条件,不是必要条件。链接指向其他软"
  163. "件 (如 dash 或 mawk 等) 可能不会引发问题,但 LFS 开发团队没有尝试过这种做法,"
  164. "也无法提供帮助。对于一些软件包来说,您可能需要修改本书中的指令或者使用额外的"
  165. "补丁,才能在这类宿主环境成功构建。"
  166. #. type: Content of: <sect1><para>
  167. msgid ""
  168. "To see whether your host system has all the appropriate versions, and the "
  169. "ability to compile programs, run the following:"
  170. msgstr ""
  171. "为了确定您的宿主系统拥有每个软件的合适版本,且能够编译程序,请运行下列脚本。"
  172. #. type: Content of: <sect1><screen>
  173. #, no-wrap
  174. msgid ""
  175. "<userinput>cat &gt; version-check.sh &lt;&lt; \"EOF\"\n"
  176. "<literal>#!/bin/bash\n"
  177. "# Simple script to list version numbers of critical development tools\n"
  178. "export LC_ALL=C\n"
  179. "bash --version | head -n1 | cut -d\" \" -f2-4\n"
  180. "MYSH=$(readlink -f /bin/sh)\n"
  181. "echo \"/bin/sh -&gt; $MYSH\"\n"
  182. "echo $MYSH | grep -q bash || echo \"ERROR: /bin/sh does not point to bash\"\n"
  183. "unset MYSH\n"
  184. "\n"
  185. "echo -n \"Binutils: \"; ld --version | head -n1 | cut -d\" \" -f3-\n"
  186. "bison --version | head -n1\n"
  187. "\n"
  188. "if [ -h /usr/bin/yacc ]; then\n"
  189. " echo \"/usr/bin/yacc -> `readlink -f /usr/bin/yacc`\";\n"
  190. "elif [ -x /usr/bin/yacc ]; then\n"
  191. " echo yacc is `/usr/bin/yacc --version | head -n1`\n"
  192. "else\n"
  193. " echo \"yacc not found\" \n"
  194. "fi\n"
  195. "\n"
  196. "bzip2 --version 2&gt;&amp;1 &lt; /dev/null | head -n1 | cut -d\" \" -f1,6-\n"
  197. "echo -n \"Coreutils: \"; chown --version | head -n1 | cut -d\")\" -f2\n"
  198. "diff --version | head -n1\n"
  199. "find --version | head -n1\n"
  200. "gawk --version | head -n1\n"
  201. "\n"
  202. "if [ -h /usr/bin/awk ]; then\n"
  203. " echo \"/usr/bin/awk -&gt; `readlink -f /usr/bin/awk`\";\n"
  204. "elif [ -x /usr/bin/awk ]; then\n"
  205. " echo awk is `/usr/bin/awk --version | head -n1`\n"
  206. "else \n"
  207. " echo \"awk not found\" \n"
  208. "fi\n"
  209. "\n"
  210. "gcc --version | head -n1\n"
  211. "g++ --version | head -n1\n"
  212. "ldd --version | head -n1 | cut -d\" \" -f2- # glibc version\n"
  213. "grep --version | head -n1\n"
  214. "gzip --version | head -n1\n"
  215. "cat /proc/version\n"
  216. "m4 --version | head -n1\n"
  217. "make --version | head -n1\n"
  218. "patch --version | head -n1\n"
  219. "echo Perl `perl -V:version`\n"
  220. "python3 --version\n"
  221. "sed --version | head -n1\n"
  222. "tar --version | head -n1\n"
  223. "makeinfo --version | head -n1 # texinfo version\n"
  224. "xz --version | head -n1\n"
  225. "\n"
  226. "echo 'int main(){}' &gt; dummy.c &amp;&amp; g++ -o dummy dummy.c\n"
  227. "if [ -x dummy ]\n"
  228. " then echo \"g++ compilation OK\";\n"
  229. " else echo \"g++ compilation failed\"; fi\n"
  230. "rm -f dummy.c dummy</literal>\n"
  231. "EOF\n"
  232. "\n"
  233. "bash version-check.sh</userinput>"
  234. msgstr ""
  235. "<userinput>cat &gt; version-check.sh &lt;&lt; \"EOF\"\n"
  236. "<literal>#!/bin/bash\n"
  237. "# Simple script to list version numbers of critical development tools\n"
  238. "export LC_ALL=C\n"
  239. "bash --version | head -n1 | cut -d\" \" -f2-4\n"
  240. "MYSH=$(readlink -f /bin/sh)\n"
  241. "echo \"/bin/sh -&gt; $MYSH\"\n"
  242. "echo $MYSH | grep -q bash || echo \"ERROR: /bin/sh does not point to bash\"\n"
  243. "unset MYSH\n"
  244. "\n"
  245. "echo -n \"Binutils: \"; ld --version | head -n1 | cut -d\" \" -f3-\n"
  246. "bison --version | head -n1\n"
  247. "\n"
  248. "if [ -h /usr/bin/yacc ]; then\n"
  249. " echo \"/usr/bin/yacc -> `readlink -f /usr/bin/yacc`\";\n"
  250. "elif [ -x /usr/bin/yacc ]; then\n"
  251. " echo yacc is `/usr/bin/yacc --version | head -n1`\n"
  252. "else\n"
  253. " echo \"yacc not found\" \n"
  254. "fi\n"
  255. "\n"
  256. "bzip2 --version 2&gt;&amp;1 &lt; /dev/null | head -n1 | cut -d\" \" -f1,6-\n"
  257. "echo -n \"Coreutils: \"; chown --version | head -n1 | cut -d\")\" -f2\n"
  258. "diff --version | head -n1\n"
  259. "find --version | head -n1\n"
  260. "gawk --version | head -n1\n"
  261. "\n"
  262. "if [ -h /usr/bin/awk ]; then\n"
  263. " echo \"/usr/bin/awk -&gt; `readlink -f /usr/bin/awk`\";\n"
  264. "elif [ -x /usr/bin/awk ]; then\n"
  265. " echo awk is `/usr/bin/awk --version | head -n1`\n"
  266. "else \n"
  267. " echo \"awk not found\" \n"
  268. "fi\n"
  269. "\n"
  270. "gcc --version | head -n1\n"
  271. "g++ --version | head -n1\n"
  272. "ldd --version | head -n1 | cut -d\" \" -f2- # glibc version\n"
  273. "grep --version | head -n1\n"
  274. "gzip --version | head -n1\n"
  275. "cat /proc/version\n"
  276. "m4 --version | head -n1\n"
  277. "make --version | head -n1\n"
  278. "patch --version | head -n1\n"
  279. "echo Perl `perl -V:version`\n"
  280. "python3 --version\n"
  281. "sed --version | head -n1\n"
  282. "tar --version | head -n1\n"
  283. "makeinfo --version | head -n1 # texinfo version\n"
  284. "xz --version | head -n1\n"
  285. "\n"
  286. "echo 'int main(){}' &gt; dummy.c &amp;&amp; g++ -o dummy dummy.c\n"
  287. "if [ -x dummy ]\n"
  288. " then echo \"g++ compilation OK\";\n"
  289. " else echo \"g++ compilation failed\"; fi\n"
  290. "rm -f dummy.c dummy</literal>\n"
  291. "EOF\n"
  292. "\n"
  293. "bash version-check.sh</userinput>"