- PHP
-
2015-12-16 - 更新:2016-01-04
phpizeを使えば、PHPを再コンパイルすることなく拡張モジュールをビルドすることができます。
例としてPHP5.3.29の環境にzlibモジュールを追加してみます。
ソースの場所に移動
cd /usr/local/src/php-5.3.29/ext/zlib
phpizeを実行
phpize
以下のようなエラー発生することがあります。
Cannot find config.m4 Make sure that you run '/usr/local/bin/phpize' in the top level source directory of the module
![](https://k-sugi.sakura.ne.jp/wp-content/themes/chic_grid3/images/icon-tag.png)