直接点,上教程,不逼逼
安装php
首先安装PHP,这里不再阐述
安装swoole
git https://gitee.com/swoole/swoole.git //下载到本地
/usr/local/Cellar/php@7.1/7.1.16/bin/phpize
./configure --with-php-
config=/usr/local/Cellar/php@7.1/7.1.16/bin/php-config
make && make install
#最后
在/usr/local/Cellar/php71/7.1.2_13/lib/php/extensions/no-
debug-non-zts-20160303/目录下生成了swoole.so文件
#修改/usr/local/etc/php/7.1/conf.d/ext-swoole.ini如下
extension="swoole.so"
若出现 (使用 brew install autoconf)
Please check your autoconf installation and the
$PHP_AUTOCONF environment variable. Then, rerun this script.