美文网首页
Mac 源码安装Swoole

Mac 源码安装Swoole

作者: 程序员祝融 | 来源:发表于2018-05-30 16:17 被阅读185次

直接点,上教程,不逼逼

安装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.

image.png

相关文章

网友评论

      本文标题:Mac 源码安装Swoole

      本文链接:https://www.haomeiwen.com/subject/ekqxsftx.html