执行:/usr/local/php/bin/phpize报错的解决方法

回复 收藏
Make sure that you run '/usr/local/php/bin/phpize' in the top level source directory of the module

进到php安装目录

[root@localhost  ~]#cd  /usr/local/src/php-5.3.27

[root@localhost php-5.3.27]# cd  /ext/curl
[root@localhost curl]# phpize
Configuring for:
PHP Api Version:         20090626
Zend Module Api No:      20090626
Zend Extension Api No:   220090626
Cannot find autoconf. Please check your autoconf installation and the
$PHP_AUTOCONF environment variable. Then, rerun this script.


上面 错误提示的解决方法:
#yum install m4
# yum install autoconf

[root@localhost curl]# phpize
Configuring for:
PHP Api Version:         20090626
Zend Module Api No:      20090626
Zend Extension Api No:   220090626

phpize提示找不到,其实命令在/usr/local/php/bin/目标下,这个目录下执行也可以,没有试过。

OK!!

2014-01-20 01:23 举报
已邀请:
0

雷老师 管理员

赞同来自:

嗯,应该就是这么执行/usr/local/php/bin/phpize ,写绝对路径

回复帖子,请先登录注册

退出全屏模式 全屏模式 回复
评分
可选评分理由: