-
Notifications
You must be signed in to change notification settings - Fork 82
Expand file tree
/
Copy pathsetup.xml
More file actions
100 lines (94 loc) · 3.63 KB
/
setup.xml
File metadata and controls
100 lines (94 loc) · 3.63 KB
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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
<!-- EN-Revision: b8cefce03356afc96a205de76dac5c9770e78a9d Maintainer: takagi Status: ready -->
<!-- CREDITS: hirokawa -->
<chapter xml:id="libxml.setup" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
&reftitle.setup;
<!-- {{{ Requirements -->
<section xml:id="libxml.requirements">
&reftitle.required;
<para>
この拡張モジュールは、PHP 8.4.0 以降では <link xlink:href="&url.libxml;">libxml</link> >=
2.9.4 が、PHP 8.4.0 より前のバージョンでは、libxml >= 2.9.0 が、PHP 8.0.0 より前のバージョンでは libxml >= 2.6.0 が必要です。
</para>
</section>
<!-- }}} -->
<!-- {{{ Installation PHP >= 7.4 -->
<section xml:id="libxml.installation">
<title>PHP >= 7.4 におけるインストール手順</title>
<para>
libxml 拡張モジュールはデフォルトで有効となりますが、
<option role="configure">--without-libxml</option>
で無効になっている可能性もあります。
</para>
<para>
PHP は libxml2 向けの正しいライブラリファイルやヘッダファイル、
コンパイルフラグを選ぶために <literal>pkg-config</literal> を使います。
configure スクリプトを実行する前に、
望ましいバージョンの libxml2 が選ばれるようにするために、
<literal>pkg-config</literal> の検索パスを制御する目的で
以下のようにして環境変数 <envar>PKG_CONFIG_PATH</envar> が使えます:
<![CDATA[PKG_CONFIG_PATH="/path/to/libxml2/prefix/lib/pkgconfig:/lib/pkgconfig"]]>
</para>
</section>
<!-- }}} -->
<!-- {{{ Installation PHP < 7.4 -->
<section xml:id="libxml.installation_old">
<title>PHP < 7.4 におけるインストール手順</title>
<para>
libxml 拡張モジュールはデフォルトで有効となりますが、
<option role="configure">--disable-libxml</option>
で無効になっている可能性もあります。
</para>
<para>
オプションの <option role="configure">--with-libxml-dir</option>
ディレクティブを使って、PHP をコンパイルするシステム上での
<literal>libxml</literal> の位置を指定することができます。
指定しなければ、デフォルトの場所のみを探します。<literal>configure</literal> の際に libxml
(具体的には <literal>xml2-config</literal>) を探す順序は次のとおりです。
</para>
<orderedlist>
<listitem>
<para>
<option role="configure">--with-libxml-dir</option> で指定した ([DIR]) 場所
([DIR]=<filename>/bin/xml2-config</filename>)
</para>
</listitem>
<listitem>
<para>
<filename>/usr/local/bin/xml2-config</filename>
</para>
</listitem>
<listitem>
<para>
<filename>/usr/bin/xml2-config</filename>
</para>
</listitem>
</orderedlist>
<para>
<literal>configure</literal> 時に <option role="configure">--with-libxml-dir</option> で指定したディレクトリで
<filename>xml2-config</filename> が見つからない場合は、デフォルトの場所を探します。
</para>
</section>
<!-- }}} -->
</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
-->