PHP >= 7.4 におけるインストール手順

libxml 拡張モジュールはデフォルトで有効となりますが、 --without-libxml で無効になっている可能性もあります。

PHP は libxml2 向けの正しいライブラリファイルやヘッダファイル、 コンパイルフラグを選ぶために pkg-config を使います。 configure スクリプトを実行する前に、 望ましいバージョンの libxml2 が選ばれるようにするために、 pkg-config の検索パスを制御する目的で 以下のようにして環境変数 PKG_CONFIG_PATH が使えます:

PKG_CONFIG_PATH="/path/to/libxml2/prefix/lib/pkgconfig:/lib/pkgconfig"

add a note add a note

User Contributed Notes 1 note

up
-44
fred5 at no dot spam dot co dot za
9 years ago
(I tried to enter a bug but the PHP version selection drop down isn't working so I have entered here)

This documentation is very confusing as it refers to xml2-config as a directory and file interchangeably (it is a file) ...so I'm not clear whether to use the containing directory or the actual file in the switch
To Top