1. Swoole 安装

1.1. Release 安装

1.1.1. 步骤

  1. 下载 https://github.com/swoole/swoole-src/releases并解压
  2. 简单编译
cd swoole
phpize (ubuntu 没有安装phpize可执行命令:sudo apt-get install php-dev来安装phpize)
./configure
make 
sudo make install

1.1.2. 编译选项

  • https://wiki.swoole.com/wiki/page/437.html

1.1.3. 可能遇到的问题

  • 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

results matching ""

    No results matching ""