Swoole 安装
Release 安装
步骤
- 下载
https://github.com/swoole/swoole-src/releases
并解压 - 简单编译
cd swoole
phpize (ubuntu 没有安装phpize可执行命令:sudo apt-get install php-dev来安装phpize)
./configure
make
sudo make install
编译选项
https://wiki.swoole.com/wiki/page/437.html
可能遇到的问题
-
error: Cannot find php-config. Please use --with-php-config=PATH
需要指定
php-config
, 一般在/usr/local/php/bin/php-config
中:./configure
=>./configure --with-php-config=/usr/local/php/bin/php-config