首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >brew安装php56 --具有-cgi的curl错误

brew安装php56 --具有-cgi的curl错误
EN

Stack Overflow用户
提问于 2015-06-13 01:26:55
回答 1查看 1.1K关注 0票数 3

运行以下命令后,在OSX上会出现一个curl错误。我可以在其他人中使用brew,但不能用于php56。我可以从https://www.php.net/get/php-5.6.10.tar.bz2/from/this/mirror下载,但不能通过curl下载。我怎样才能解决这个问题?

代码语言:javascript
复制
brew tap homebrew/dupes
brew tap homebrew/versions
brew tap homebrew/homebrew-php
brew options php56
brew install --with-cgi php56

==> Installing php56 from homebrew/homebrew-php
==> Downloading https://www.php.net/get/php-5.6.10.tar.bz2/from/this/mirror

curl: (60) SSL certificate problem: Invalid certificate chain
More details here: http://curl.haxx.se/docs/sslcerts.html

curl performs SSL certificate verification by default, using a "bundle"
 of Certificate Authority (CA) public keys (CA certs). If the default
 bundle file isn't adequate, you can specify an alternate file
 using the --cacert option.
If this HTTPS server uses a certificate signed by a CA represented in
 the bundle, the certificate verification probably failed due to a
 problem with the certificate (it might be expired, or the name might
 not match the domain name in the URL).
If you'd like to turn off curl's verification of the certificate, use
 the -k (or --insecure) option.
Error: Failed to download resource "php56"
Download failed: https://www.php.net/get/php-5.6.10.tar.bz2/from/this/mirror
EN

回答 1

Stack Overflow用户

发布于 2016-02-16 12:47:22

最后我做的是暂时的disabling certificate verification for all curl requests

代码语言:javascript
复制
echo insecure >> ~/.curlrc

然后运行我信任的brew install然后..。

不要忘记在 (~./curlrc)的最后回到安全的地方。

票数 2
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/30814246

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档