如何在linux环境下安装yaf
生活随笔
收集整理的這篇文章主要介紹了
如何在linux环境下安装yaf
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
我本機的環境配置
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-configmakemake 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/
總結
以上是生活随笔為你收集整理的如何在linux环境下安装yaf的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 图片轮播,纯js+css
- 下一篇: linux 其他常用命令