我本機的環境配置
linuxMint17.1
php5.5
nginx1.4.6
下面開始安裝
下載最新的yaf包
http://pecl.php.net/package/yaf
我下載的最新版本為2.3.3
解壓
$PHP_BIN/phpize ./configure --with-php-config=$PHP_BIN/php-config make make install
我執行時報錯誤。
用whereis phpize 查看查看phpize,發現phpize為空,說明沒有安裝
執行這個命令
sudo apt-get install php-dev
執行完后,用whereis phpize
komiles@Aspire-v5 ~ $ whereis phpize phpize: /usr/bin/phpize /usr/bin/X11/phpize /usr/share/man/man1/phpize.1.gz
看到這個說明你已經安裝了phpize
然后執行這個(必須用root用戶執行,否則會報錯誤)
/usr/bin/phpize ./configure --with-php-config=/usr/bin/php-config
下面這個錯誤
Cannot find config.m4.
Make sure that you run '/usr/bin/phpize' in the top level source directory of the module
執行make命令時報這個錯誤
make: *** No targets specified and no makefile found. Stop.
需要安裝這個
sudo apt-get install libncurses5-dev
這樣執行
./configure make
php擴展放在:./usr/lib/php5/20121212/
