在按照官網(wǎng)教程安裝過程中,出現(xiàn)這種情況:
$ sudo phpize
grep: /usr/include/php/main/php.h: No such file or directory
grep: /usr/include/php/Zend/zend_modules.h: No such file or directory
grep: /usr/include/php/Zend/zend_extensions.h: No such file or directory
Configuring for:
PHP Api Version:
Zend Module Api No:
Zend Extension Api No:
Cannot find autoconf. Please check your autoconf installation and the
$PHP_AUTOCONF environment variable. Then, rerun this script
新手,請(qǐng)教如何安裝?。?br /> [attach]495[/attach]
看樣子像是沒裝php-devel包。
mac系統(tǒng)可以用brew安裝這些包,也可以用brew安裝所缺的擴(kuò)展。
http://brew.sh/index_zh-cn.html
http://doc3.workerman.net/install/install.html
看到workerman手冊(cè)也有這部分介紹,在 mac os 系統(tǒng)安裝教程-通過brew命令安裝php及對(duì)應(yīng)擴(kuò)展