PHP动态编译出现Cannot find autoconf的解决方法
来源:互联网 发布:特战旅php 编辑:程序博客网 时间:2024/04/28 19:07
本文详细讲述了PHP动态编译出现Cannot find autoconf的解决方法。分享给大家供大家参考。具体方法如下:
在安装完PHP后,想动态编译PHP的memcache扩展库
复制代码代码如下:
cd memcache-2.2.5/
/usr/local/webserver/php/bin/phpize
./configure --with-php-config=/usr/local/webserver/php/bin/php-config
/usr/local/webserver/php/bin/phpize
./configure --with-php-config=/usr/local/webserver/php/bin/php-config
但是执行/usr/local/webserver/php/bin/phpize时出现错误:
复制代码代码如下:
Configuring for:
PHP Api Version: 20041225
Zend Module Api No: 20060613
Zend Extension Api No: 220060519
Cannot find autoconf. Please check your autoconf installation and the $PHP_AUTOCONF environment variable is set correctly and then rerun this script.
PHP Api Version: 20041225
Zend Module Api No: 20060613
Zend Extension Api No: 220060519
Cannot find autoconf. Please check your autoconf installation and the $PHP_AUTOCONF environment variable is set correctly and then rerun this script.
在网上搜索一通,发现这个问题提的人还挺多,摘了一段下来:
复制代码代码如下:
# wget http://ftp.gnu.org/gnu/m4/m4-1.4.9.tar.gz
# tar -zvxf m4-1.4.9.tar.gz
# cd m4-1.4.9/
# ./configure && make && make install
# cd ../
# wget http://ftp.gnu.org/gnu/autoconf/autoconf-2.62.tar.gz
# tar -zvxf autoconf-2.62.tar.gz
# cd autoconf-2.62/
# ./configure && make && make install
# tar -zvxf m4-1.4.9.tar.gz
# cd m4-1.4.9/
# ./configure && make && make install
# cd ../
# wget http://ftp.gnu.org/gnu/autoconf/autoconf-2.62.tar.gz
# tar -zvxf autoconf-2.62.tar.gz
# cd autoconf-2.62/
# ./configure && make && make install
如果是UBUNTU的话,可以更简单:
复制代码代码如下:
sudo apt-get install m4
sudo apt-get install autoconf
sudo apt-get install autoconf
或者直接:
复制代码代码如下:
sudo apt-get install autoconf
因为autoconf 依赖于m4,所以会自动下载解决这个依赖关系.
原文地址:http://www.jb51.net/article/57139.htm
阅读全文
0 0
- PHP动态编译出现Cannot find autoconf的解决方法
- PHP动态编译出现Cannot find autoconf
- PHP动态编译出现Cannot find autoconf
- PHP动态编译出现Cannot find autoconf 动态编译PHP的memcache扩展库
- phpize 编译安装php扩展的时候出现Cannot find autoconf的解决方法
- phpize动态编译报错Cannot find autoconf
- PHP动态编译出现错误的解决方法
- phpize 时 Cannot find autoconf 解决方法
- PHPIZE时出现Cannot find autoconf错误
- 运行phpize时出现:Cannot find autoconf
- 编译的时候出现cannot find -llzo2
- 编译Qt时出现 cannot find -lGL解决方法
- make编译Qt原码时出现 /usr/bin/ld: cannot find -lXrender 问题的解决方法
- make编译Qt原码时出现 /usr/bin/ld: cannot find -lXrender 问题的解决方法
- Cannot find autoconf
- Cannot find autoconf
- linux cannot find autoconf
- 编译php扩展出现错误:Cannot find config.m4
- linux 内核参数优化
- Spring源码流出解析
- JsonArrayUtil(base on lambda and Stream)
- PKCS 发布的15 个标准
- setinterval和settimeout使用注意
- PHP动态编译出现Cannot find autoconf的解决方法
- php fseek读取文件(从后往前读取)
- 微信小程序开发笔记(随时更新)
- GsouUtil
- linux下TCP/IP及内核参数优化调优(转)
- word embedding的模型与测试
- freopen()函数的用法[转]
- 浏览器内核
- Django模型