gpt4 book ai didi

swoole - 如何在 ubuntu 中安装 Swoole

转载 作者:行者123 更新时间:2023-12-03 23:29:17 24 4
gpt4 key购买 nike

我的问题就是如何在 中安装 Swoole Ubuntu 14.04 LTS

我试过了

sudo pecl install swoole

我收到了一些错误,已经发布 here

有没有其他方法可以安装相同的...

最佳答案

Swoole 安装替代方式

1.从源码安装

sudo apt-get install php7-dev
git clone https://github.com/swoole/swoole-src.git
cd swoole-src
phpize
./configure
make && make install

2. 静态编译示例
git clone -b PHP-7.2 --depth 1 https://github.com/php/php-src.git
cd php-src/
git clone -b master --depth 1 https://github.com/swoole/swoole-src.git ext/swoole
./buildconf --force
./configure --prefix=/usr/local/php7 --disable-all --enable-cli --disable-cgi --disable-fpm --disable-phpdbg --enable-bcmath --enable-hash --enable-json --enable-mbstring --enable-mbregex --enable-mbregex-backtrack --enable-sockets --enable-pdo --with-sodium --with-password-argon2 --with-sqlite3 --with-pdo-sqlite --with-pcre-regex --with-zlib --with-openssl-dir --enable-swoole-static --enable-openssl --with-swoole
time make -j `cat /proc/cpuinfo | grep processor | wc -l`
sudo make install

关于swoole - 如何在 ubuntu 中安装 Swoole,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52441078/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com