警告:通道“pecl.php.net”已更新其协议,请使用“pecl通道更新pecl.php net”进行更新 无法从“”下载https://pecl.php.net/get/swoole-6.0.2.tgz“,无法下载”pecl/swoole“(连接到`ssl://pecl.php.net:443'失败:找不到套接字传输“ssl”-配置PHP时是否忘记启用它?)
pecl install swoole
WARNING: channel "pecl.php.net" has updated its protocols, use "pecl channel-update pecl.php.net" to update
Could not download from "https://pecl.php.net/get/swoole-6.0.2.tgz", cannot download "pecl/swoole" (Connection to `ssl://pecl.php.net:443' failed: Unable to find the socket transport "ssl" - did you forget to enable it when you configured PHP?)
Error: cannot download "pecl/swoole"
Download failed
install failed
问题详情如上:
原因分析:协议不是最新的
解决方案:使用最新版本的协议进行通讯
pecl channel-update pecl.php.net
pecl search swoole 查看swoole及支持的版本
问题如下:
WARNING: php_bin D:\system\php\php-8.1.32-nts-win32-vs16-x64\php.exe appears to have a suffix .exe, but config variable php_suffix does not match
ERROR: The DSP swoole.dsp does not exist.
问题分析:警告:php_bin D:\system\php\php-8.1.32-nts-win32-vs16-x64 \php.exe似乎有后缀.exe,但配置变量php_suffix不匹配
错误:DSP swoole.DSP不存在。
修复方法:修正环境变量中的内容,去掉末尾的php.exe