@@ -283,7 +283,8 @@ ____________________________________________________________________________-->
283
283
</para>
284
284
____________________________________________________________________________-->
285
285
<para>
286
- 你可以在本地不安装DocBook XML和DocBook XSLT样式表的情况下开始工作,因为所需的文件将从Internet下载下来并且缓存在本地。如果你的操作系统包仅提供这些文件的旧版本,或者根本没有可用的包,则这实际上可能是首选解决方案。
286
+ 你可以在本地不安装DocBook XML和DocBook XSLT样式表的情况下开始工作,因为所需的文件将从Internet下载下来并且缓存在本地。
287
+ 如果你的操作系统包仅提供这些文件的旧版本,或者根本没有可用的包,则这实际上可能是首选解决方案。
287
288
如果你想在构建文档时阻止任何访问Internet的尝试,你需要将<option>--nonet</option>选项传递给<command>xmllint</command>和<command>xsltproc</command>;参见下面的示例。
288
289
</para>
289
290
@@ -448,29 +449,55 @@ checking for dbtoepub... dbtoepub
448
449
</para>
449
450
____________________________________________________________________________-->
450
451
<para>
451
- 在你能编译文档之前,你需要运行<filename>configure</filename>脚本,就像你在编译<productname>PostgreSQL</productname>程序本身时所作的那样。检查运行末尾附近的输出;它应该看起来像这样:
452
+ 在你能编译文档之前,你需要运行<filename>configure</filename>脚本,就像你在编译<productname>PostgreSQL</productname>程序本身时所作的那样。
453
+ 检查运行末尾附近的输出;它应该看起来像这样:
452
454
<screen>
453
455
checking for xmllint... xmllint
454
456
checking for xsltproc... xsltproc
455
457
checking for fop... fop
456
458
checking for dbtoepub... dbtoepub
457
459
</screen>
458
- 如果未找到 <filename>xmllint</filename>或 <filename>xsltproc</filename>,你将无法构建任何文档<filename>fop</filename>仅用于在中构建文档
459
- PDF格式 。
460
- <filename>dbtoepub</filename>仅用于以EPUB格式构建文档 。
460
+ 如果没有找到 <filename>xmllint</filename> 或 <filename>xsltproc</filename>,你将不能构建任何文档。
461
+ <filename>fop</filename>仅在构建PDF格式的文档时需要 。
462
+ <filename>dbtoepub</filename>仅在构建EPUB格式的文档时需要 。
461
463
</para>
462
464
463
465
<para>
464
466
如果需要,你可以告诉<filename>configure</filename>到哪里去找这些程序,例如
465
467
<screen>
466
468
./configure ... XMLLINT=/opt/local/bin/xmllint ...
467
469
</screen>
468
- 另外,如果你想确认 <filename>xmllint</filename>和<filename>xsltproc</filename>不会执行任何网络访问,你可以如下操作
470
+ 另外,如果你想确保 <filename>xmllint</filename>和<filename>xsltproc</filename>不会执行任何网络访问,你可以如下操作
469
471
<screen>
470
472
./configure ... XMLLINT="xmllint --nonet" XSLTPROC="xsltproc --nonet" ...
471
473
</screen>
472
474
</para>
473
475
476
+ <!--==========================orignal english content==========================
477
+ <para>
478
+ If necessary, you can tell <filename>configure</filename> where to find
479
+ these programs, for example
480
+ <screen>
481
+ ./configure ... XMLLINT=/opt/local/bin/xmllint ...
482
+ </screen>
483
+ Also, if you want to ensure that <filename>xmllint</filename>
484
+ and <filename>xsltproc</filename> will not perform any network access,
485
+ you can do something like
486
+ <screen>
487
+ ./configure ... XMLLINT="xmllint -−nonet" XSLTPROC="xsltproc -−nonet" ...
488
+ </screen>
489
+ </para>
490
+ ____________________________________________________________________________-->
491
+ <para>
492
+ 如果需要,你可以告知 <filename>configure</filename> 在哪里发现这些程序,例如
493
+ <screen>
494
+ ./configure ... XMLLINT=/opt/local/bin/xmllint ...
495
+ </screen>
496
+ 此外,如果你想要确保 <filename>xmllint</filename> 和 <filename>xsltproc</filename> 将不会执行任何网络访问,你可以像这样做
497
+ <screen>
498
+ ./configure ... XMLLINT="xmllint --nonet" XSLTPROC="xsltproc --nonet" ...
499
+ </screen>
500
+ </para>
474
501
</sect2>
475
502
</sect1>
476
503
0 commit comments