doufa5001 2019-01-24 04:16
浏览 556

pecl安装总是失败“无法连接到第183行的Proxy.php中的ssl://pecl.php.net:443(未知错误)”

qiulangs-MacBook-Pro:extensions qiulang$ pecl -vvv install debug

Warning: fsockopen(): SSL: Handshake timed out in Proxy.php on line 183

Warning: fsockopen(): Failed to enable crypto in Proxy.php on line 183

Warning: fsockopen(): unable to connect to ssl://pecl.php.net:443 (Unknown error) in Proxy.php on line 183
No releases available for package "pecl.php.net/debug"
Cannot initialize 'channel://pecl.php.net/debug', invalid or missing package file
Package "channel://pecl.php.net/debug" is not valid
install failed

I used brew to install php 7.2 and 7.3 and tried both pecl with them, but I got the same error.

While my colleague can use pecl (also using brew install php@7.2) without any problem. So it must be something wrong with my setting.

qiulangs-MacBook-Pro:sbin qiulang$ php -r "print_r(openssl_get_cert_locations());"
Array
(
    [default_cert_file] => /usr/local/libressl-2.2/etc/ssl/cert.pem
    [default_cert_file_env] => SSL_CERT_FILE
    [default_cert_dir] => /usr/local/libressl-2.2/etc/ssl/certs
    [default_cert_dir_env] => SSL_CERT_DIR
    [default_private_dir] => /usr/local/libressl-2.2/etc/ssl/private
    [default_default_cert_area] => /usr/local/libressl-2.2/etc/ssl
    [ini_cafile] =>
    [ini_capath] =>
)
  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥30 求一段fortran代码用IVF编译运行的结果
    • ¥15 深度学习根据CNN网络模型,搭建BP模型并训练MNIST数据集
    • ¥15 lammps拉伸应力应变曲线分析
    • ¥15 C++ 头文件/宏冲突问题解决
    • ¥15 用comsol模拟大气湍流通过底部加热(温度不同)的腔体
    • ¥50 安卓adb backup备份子用户应用数据失败
    • ¥20 有人能用聚类分析帮我分析一下文本内容嘛
    • ¥15 请问Lammps做复合材料拉伸模拟,应力应变曲线问题
    • ¥30 python代码,帮调试,帮帮忙吧
    • ¥15 #MATLAB仿真#车辆换道路径规划