忽然想往php種增長個模塊,但是又不想從新編譯php,由於真的比較費時間。php
phpize就能夠解決這個問題。mysql
遇到的問題:sql
Configuring for: PHP Api Version: 20121113 Zend Module Api No: 20121212 Zend Extension Api No: 220121212 Cannot find autoconf. Please check your autoconf installation and the $PHP_AUTOCONF environment variable. Then, rerun this script.
google了下,解決方法以下:安裝autoconfswoole
sudo yum install autoconfigthis
解決方法:google
cd到php的源代碼目錄spa
好比須要追加swoole模塊,進入swoole目錄。vagrant
tar -zxvf swoole-1.7.19-stable.tar.gz #解壓 cd swoole-src-swoole-1.7.19-stable/ #進入目錄 phpize #執行phpize(/server/php/bin/phpize)
再次執行phpize沒有報錯。code
[vagrant@rs-1 mysqli]$ phpizeserver
Configuring for:
PHP Api Version: 20121113
Zend Module Api No: 20121212
Zend Extension Api No: 220121212
發如今當前目錄下生成了 configure文件。