Swoole源码安装

2018-06-12  本文已影响0人  柠檬的眼泪是酸的

安装git  yum -y install git 

下载swoole   git clone https://gitee.com/swoole/swoole.git

phpize目录

执行phpize  /home/work/study/soft/php/bin/phpize

命令行提升Cannot find autoconf

安装autoconf   yum -y install autoconf

安装好autoconf后  执行phpize   /home/work/study/soft/php/bin/phpize 会生成configure文件

用于configure 编译需要gcc 安装gcc  yum install gcc-c++

执行configure  ./configure --with-php-config=/home/work/study/soft/php/bin/php-config

make

make install

修改php.ini 添加extension=swoole

查看swoole是否安装成功   php -m

上一篇 下一篇

猜你喜欢

热点阅读