安装swoole提示No releases available for package
Mac
在mac上执行pecl search swoole安装swoole时提示:
No releases available for package "pecl.php.net/swoole" install failed
Shell
解决方法是只需使用root权限即可:
sudo pecl search swoole
Ubuntu
sudo pecl search swoole
[sudo] password for lixin:
WARNING: channel "pecl.php.net" has updated its protocols, use "pecl channel-update pecl.php.net" to update
Retrieving data...0%
.Matched packages, channel pecl.php.net:
=======================================
Package Stable/(Latest) Local
swoole 4.4.17 (stable) Event-driven asynchronous and concurrent networking engine with high performance for PHP.
swoole_serialize 0.1.1 (beta) the fastest and smallest serialize fucntion bound for php7
lixin@ubuntu:~/lnmp1.5$ sudo pecl channel-update pecl.php.net
Updating channel "pecl.php.net"
Update of Channel "pecl.php.net" succeeded
lixin@ubuntu:~/lnmp1.5$ sudo pecl install swoole
还没有评论,来说两句吧...