如何在 Mac OS X 上启用 curl SSL? [英] How do I enable curl SSL on Mac OS X?
问题描述
我在 Mac OS X 10.11.2 上使用终端,但无法处理任何 https 请求.我总是收到这个错误:
I'm using Terminal on Mac OS X 10.11.2 and I can't process any https requests. I always get this error:
curl: (1) Protocol "https" not supported or disabled in libcurl
我试过了,但出现错误的目录"错误:
I tried this but I get a "wrong directory" error:
./configure --with-ssl=/usr/local/ssl
任何建议都会有所帮助.
Any advice would be helpful.
这是我尝试使用 ssl 安装时遇到的错误:
This is the error I get when trying to install with ssl:
configure: error: OpenSSL libs and/or directories were not found where specified!
解决方案:
对于 Mac OS X 10.6 或更高版本,使用它来启用 SSL:
For Mac OS X 10.6 or later use this to enable SSL:
./configure --with-darwinssl
推荐答案
Homebrew 团队最近删除了 cURL 公式的所有安装选项,这意味着您将无法执行 brew install curl --with-现在打开ssl
.相反,执行 brew install curl-openssl
.确保先使用 brew uninstall curl
卸载旧的.
The Homebrew team has recently removed all install options for the cURL formula, which means you will not be able to do brew install curl --with-openssl
now. Instead, do brew install curl-openssl
. Make sure to uninstall the old one with brew uninstall curl
first.
这篇关于如何在 Mac OS X 上启用 curl SSL?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!