ubuntu 安装 swoole 和mac 安装swoole 扩展

ubuntu php 安装swoole 比较容易

1. 从git下载源码

2. 下载pcre http://sourceforge.net/projects/pcre/files/pcre/8.36/

 ./configure

  make &make install

3. 进入swoole 源码

phpize 

./cofigure 

make &make install

编辑php.ini 添加extension = swoole.so

重启apache 生效

mac 安装swoole

我的mac 安装的是XAMPP

http://blog.csdn.net/olivor/article/details/47829393

http://blog.csdn.net/rsp19801226/article/details/44590803

sudo brew install autoconfcd swoole

phpize  
注意xampp 需要执行 /Applications/XAMPP/bin/phpize ./configure
xampp 请执行
./configure --with-php-config=/Applications/XAMPP/bin/php-config
make sudo make install



   

原文地址:https://www.cnblogs.com/likwo/p/4946657.html