mirror of
https://github.com/php/doc-zh.git
synced 2026-03-24 15:12:20 +01:00
60 lines
2.1 KiB
XML
60 lines
2.1 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
||
<!-- $Revision$ -->
|
||
<!-- EN-Revision: 57c7669a1f5336cb17413e0b46540c52c77ee84f Maintainer: mowangjuanzi Status: ready -->
|
||
<!-- CREDITS: Luffy -->
|
||
<chapter xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xml:id="parallel.setup">
|
||
<title>安装</title>
|
||
|
||
<simplesect xml:id="parallel.requirements">
|
||
&reftitle.required;
|
||
<simpara>
|
||
parallel 要求启用 ZTS(Zend 线程安全)PHP 编译(<option role="configure">--enable-zts</option>,或者 PHP 8.0.0 之前的非 Windows
|
||
系统是 <option role="configure">--enable-maintainer-zts</option>)
|
||
</simpara>
|
||
<caution>
|
||
<simpara>
|
||
Zend 线程安全在编译后无法启用,因为他是编译时的配置项。
|
||
</simpara>
|
||
</caution>
|
||
<simpara>
|
||
parallel 应该在任何有有效的 Posix Thread 头文件(pthread.h)和 PHP ZTS 的地方编译,包含 Windows(使用 redhat 的 pthread-w32 项目)。
|
||
</simpara>
|
||
</simplesect>
|
||
|
||
<simplesect xml:id="parallel.installation">
|
||
&reftitle.install;
|
||
<simpara>
|
||
parallel 版本由 PECL 托管,源代码由
|
||
<link xlink:href="&url.git.hub;krakjoe/parallel">github</link> 托管,最简单的安装办法是使用 PECL 安装 <link xlink:href="&url.pecl.package;parallel">&url.pecl.package;parallel</link>.
|
||
</simpara>
|
||
<simpara>
|
||
Windows 用户可以从 <link xlink:href="&url.pecl.package;parallel">PECL</link> 网站下载预编译的已发布的二进制文件。
|
||
</simpara>
|
||
<caution>
|
||
<simpara>
|
||
Windows 用户需要采取额外的步骤,将 <filename>pthreadVC<replaceable>?</replaceable>.dll</filename>(随 Windows 一起发布)添加到 <envar>PATH</envar> 中。
|
||
</simpara>
|
||
</caution>
|
||
</simplesect>
|
||
</chapter>
|
||
<!-- Keep this comment at the end of the file
|
||
Local variables:
|
||
mode: sgml
|
||
sgml-omittag:t
|
||
sgml-shorttag:t
|
||
sgml-minimize-attributes:nil
|
||
sgml-always-quote-attributes:t
|
||
sgml-indent-step:1
|
||
sgml-indent-data:t
|
||
indent-tabs-mode:nil
|
||
sgml-parent-document:nil
|
||
sgml-default-dtd-file:"~/.phpdoc/manual.ced"
|
||
sgml-exposed-tags:nil
|
||
sgml-local-catalogs:nil
|
||
sgml-local-ecat-files:nil
|
||
End:
|
||
vim600: syn=xml fen fdm=syntax fdl=2 si
|
||
vim: et tw=78 syn=sgml
|
||
vi: ts=1 sw=1
|
||
-->
|