mac os 系统上安装workman失败

回忆宇

在按照官网教程安装过程中,出现这种情况:
$ 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

新手,请教如何安装!!
[attach]495[/attach]

4271 2 0
2个回答

xiuwang

看样子像是没装php-devel包。

mac系统可以用brew安装这些包,也可以用brew安装所缺的扩展。
http://brew.sh/index_zh-cn.html

  • 回忆宇 2017-01-24

    好的 我试试

  • 回忆宇 2017-01-24

    大神,还是想问下brew如何安装php-devel或者pcntl扩展呢 ???

xiuwang

http://doc3.workerman.net/install/install.html

看到workerman手册也有这部分介绍,在 mac os 系统安装教程-通过brew命令安装php及对应扩展

  • 回忆宇 2017-01-24

    好的 我先试试

  • 回忆宇 2017-01-24

    使用官网的brew安装后 还是要pcntl扩展。

  • xiuwang 2017-01-24

    brew search pcntl 查找对应扩展,然后 brew install 看到的扩展名就好了

年代过于久远,无法发表回答
🔝