/
setup.xml
61 lines (57 loc) · 2.06 KB
/
setup.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
<!-- EN-Revision: 91da56315cff97da3020dd2934040e5035a6d1c6 Maintainer: mowangjuanzi Status: ready -->
<chapter xml:id="parallel.setup" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
<title>安装</title>
<simplesect xml:id="parallel.requirements">
&reftitle.required;
<para>
parallel 要求启用 ZTS(Zend 线程安全)PHP 编译(<option role="configure">--enable-zts</option>,或者 PHP 8.0.0 之前的非 Windows
系统是 <option role="configure">--enable-maintainer-zts</option>)
</para>
<caution>
<para>
Zend 线程安全在编译后无法启用,因为他是编译时的配置项。
</para>
</caution>
<para>
parallel 应该在任何有有效的 Posix Thread 头文件(pthread.h)和 PHP ZTS 的地方编译,包含 Windows(使用 redhat 的 pthread-w32 项目)。
</para>
</simplesect>
<simplesect xml:id="parallel.installation">
&reftitle.install;
<para>
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>.
</para>
<para>
Windows 用户可以从 <link xlink:href="&url.pecl.windows.releases;parallel">PECL</link> 网站下载预编译的已发布的二进制文件。
</para>
<caution>
<para>
Windows 用户需要采取额外的步骤,将 pthreadVC2.dll(随 Windows 一起发布)添加到 <envar>PATH</envar> 中。
</para>
</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
-->