phpize遇到的问题

今天想把php的pdo_mysql扩展打开,那知道执行phpize遇到下面的错误。

➜  pdo_mysql  sudo /usr/local/service/php-5.5.0/bin/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.

原来是没安装autoconf,安装的过程如下


➜  source  sudo curl -OL http://ftpmirror.gnu.org/autoconf/autoconf-latest.tar.gz    
➜  source  sudo tar zxvf autoconf-latest.tar.gz
➜  source  cd autoconf-2.69
➜  autoconf-2.69  sudo mkdir /usr/local/service/autoconf-2.69
➜  autoconf-2.69  sudo ./configure --prefix=/usr/local/service/autoconf-2.69
➜  autoconf-2.69  sudo make
sudo make install


我以为这样就ok了,结果还是报这个错

原来是需要做个连接过去就ok了

bin sudo ln -s /usr/local/service/autoconf-2.69/bin/autoconf /usr/bin/autoconf 
➜ bin sudo ln -s /usr/local/service/autoconf-2.69/bin/autoheader /usr/bin/autoheader

你可能感兴趣的:(phpize遇到的问题)