• 欢迎访问搞代码网站,推荐使用最新版火狐浏览器和Chrome浏览器访问本网站!
  • 如果您觉得本站非常有看点,那么赶紧使用Ctrl+D 收藏搞代码吧

PHP动态编译出现Cannot find autoconf的解决方法_php技巧

php 搞代码 3年前 (2022-01-26) 36次浏览 已收录 0个评论

本文详细讲述了PHP动态编译出现Cannot find autoconf的解决方法。分享给大家供大家参考。具体方法如下:

在安装完PHP后,想动态编译PHP的memcache扩展库

cd memcache-2.2.5/<br />/usr/local/webserver/php/bin/phpize<br />./configure --with-php-config=/usr/local/webserver/php/bin/php-config

但是执行/usr/local/webserver/php/bin/phpize时出现错误:

Configuring for:<br />PHP Api Version:         20041225<br />Zend Module Api No:      20060613<br />Zend Extension Api No:   220060519<br />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<br /># tar -zvxf m4-1.4.9.tar.gz<br /># cd m4-1.4.9/<br /># ./configure && make && make install<br /># cd ../<br /># wget http://ftp.gnu.org/gnu/autoconf/autoconf-2.62.tar.gz<br /># tar -zvxf autoconf-2.62.tar.gz<br /># cd autoconf-2.62/<br /># ./configure && make && make install

如果是UBUNTU的话,可以更简单:

sudo apt-get install m4<br />sudo apt-get install autoconf

或者直接:

<i>本文@来#源gaodai$ma#com搞$$代**码网</i><strong>搞代gaodaima码</strong>sudo apt-get install autoconf

因为autoconf 依赖于m4,所以会自动下载解决这个依赖关系.

希望本文所述对大家的PHP程序设计有所帮助。


搞代码网(gaodaima.com)提供的所有资源部分来自互联网,如果有侵犯您的版权或其他权益,请说明详细缘由并提供版权或权益证明然后发送到邮箱[email protected],我们会在看到邮件的第一时间内为您处理,或直接联系QQ:872152909。本网站采用BY-NC-SA协议进行授权
转载请注明原文链接:PHP动态编译出现Cannot find autoconf的解决方法_php技巧

喜欢 (0)
[搞代码]
分享 (0)
发表我的评论
取消评论

表情 贴图 加粗 删除线 居中 斜体 签到

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址