CakeFest 2024: The Official CakePHP Conference

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

User Contributed Notes 2 notes

up
1
mansourjabin at gmail dot com
4 months ago
Critical Note: In PHP 7.4, an issue presents itself when interfacing with libxml version 2.10.2. If you're deploying PHP 7.4 and wish to maintain operational stability, ensure that libxml is aligned to version 2.9.10. This version has been verified to work seamlessly with PHP 7.4, thereby preventing potential conflicts.
up
0
KiralyCraft
1 year ago
Please note that this option does not seem to work for PHP 8.1.10 anymore.
To Top