首页 > 系统服务 > 详细

如何在linux环境下安装yaf

时间:2015-06-10 00:56:53      阅读:270      评论:0      收藏:0      [点我收藏+]

我本机的环境配置

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

 

如何在linux环境下安装yaf

原文:http://www.cnblogs.com/wangkongming/p/4564965.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!