phpize 时 Cannot find autoconf 解决方法

admin 建站教程评论497字数 678阅读模式

运行/usr/local/webserver/php/bin/phpize时出现:

  1. Configuring for:  
  2. PHP Api Version:         20041225  
  3. Zend Module Api No:      20060613  
  4. Zend Extension Api No:   220060519  
  5. Cannot find autoconf. Please check your autoconf installation and the  
  6. $PHP_AUTOCONF environment variable. Then, rerun this script.  

根据网上的解决办法是:

  1. # cd /usr/src  
  2. # wget http://ftp.gnu.org/gnu/m4/m4-1.4.9.tar.gz  
  3. # tar -zvxf m4-1.4.9.tar.gz  
  4. # cd m4-1.4.9/  
  5. # ./configure && make && make install  
  6. # cd ../  
  7. # wget http://ftp.gnu.org/gnu/autoconf/autoconf-2.62.tar.gz  
  8. # tar -zvxf autoconf-2.62.tar.gz  
  9. # cd autoconf-2.62/  
  10. # ./configure && make && make install  

yum让我更容易把没安装的包安装好

  1. yum install m4  
  2. yum install autoconf  

版权声明:文章图片资源来源于网络,如有侵权,请留言删除!!!
admin
  • 本文由 发表于 2021年9月25日 18:57:48
  • 转载请务必保留本文链接:https://www.58pxe.com/7684.html
匿名

发表评论

匿名网友 填写信息

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen: