brew install php56 --with-cgi curl 错误

标签 curl homebrew

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

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

最佳答案

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

echo insecure >> ~/.curlrc

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

最后别忘了安全返回(delete the last line from ~./curlrc)。

关于brew install php56 --with-cgi curl 错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30814246/

相关文章:

php - 无法让 cURL 在 Windows Apache 上的 PHP 中加载

没有 cURL 的 PHP4 HTTP 发布

powershell - 将 Gitlab CI Trigger Curl 转换为 Powershell Invoke-RestMethod

python - virtualenv 和 virtualenv-3.4 之间的区别

shell - 从 Homebrew 软件安装后无法让 ffmpeg 工作

php - Symfony2 和 Paypal - cURL 错误 :14077410:SSL (sslv3 alert handshake failure)

PHP cURL 同步和异步

configuration - 在系统范围内安装 OPAM?

homebrew - Brew 列表并安装特定版本的 Formula

curl - 无法使用 brew 安装任何东西,错误 : Failed to download resource "git--html"