解決MAC下缺乏必要的m4和autoconf包文件問題

今天在mac上編譯yaf擴展的時候,遇到這個報錯:php

:$ /usr/bin/phpize
Configuring for:
PHP Api Version: 20090626
Zend Module Api No: 20090626
Zend Extension Api No: 220090626
Cannot find autoconf. Please check your autoconf installation and the
$PHP_AUTOCONF environment variable. Then, rerun this script.this

 

緣由是由於缺乏m4和autoconf包,解決辦法:ip

下載這兩個包:io

http://ftp.gnu.org/gnu/m4/m4-1.4.9.tar.gz編譯

http://ftp.gnu.org/gnu/autoconf/autoconf-2.62.tar.gzftp

接下來就是編譯安裝擴展

# tar -zvxf m4-1.4.9.tar.gz 下載

# cd m4-1.4.9/ vi

# ./configure && make && make install make

# cd ../

 

# tar -zvxf autoconf-2.62.tar.gz

# cd autoconf-2.62/

# ./configure && make && make install

而後在執行phpize,成功。

相關文章
相關標籤/搜索