Swoole源码安装

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

©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容