hostreqs.po 15 KB

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