zoukankan      html  css  js  c++  java
  • phpize报cannot find autoconf

    突然想往php种增加个模块,可是又不想重新编译php,因为真的比较费时间。

    phpize就可以解决这个问题。

    遇到的问题:

    Configuring for:
    PHP Api Version: 20121113
    Zend Module Api No: 20121212
    Zend Extension Api No: 220121212
    
    Cannot find autoconf. Please check your autoconf installation and the
    
    $PHP_AUTOCONF environment variable. Then, rerun this script.

    google了下,解决方法如下:安装autoconf

    sudo yum install autoconfig

    解决方法:

    cd到php的源代码目录

    比如需要追加swoole模块,进入swoole目录。

    tar -zxvf swoole-1.7.19-stable.tar.gz #解压
    cd swoole-src-swoole-1.7.19-stable/ #进入目录
    
    phpize #执行phpize(/server/php/bin/phpize)

    再次执行phpize没有报错。

    [vagrant@rs-1 mysqli]$ phpize

    Configuring for:

    PHP Api Version:         20121113

    Zend Module Api No:      20121212

    Zend Extension Api No:   220121212

    发现在当前目录下生成了 configure文件。

  • 相关阅读:
    Design Patterns
    Interview
    ListView Optimization
    android onclick onLongClick ontouch dispatchTouchEvent onInterceptTouchEvent
    java hashcode equals
    Android res/raw vs assets
    HttpClient -- 血的教训
    How Android Draws Views
    元数据 metadata
    Git-2
  • 原文地址:https://www.cnblogs.com/joshua317/p/4965856.html
Copyright © 2011-2022 走看看