我在 Mac OS X 10.11.2 上使用终端,但无法处理任何 https 请求。我总是收到此错误:
curl: (1) Protocol "https" not supported or disabled in libcurl
我试过了,但出现“错误的目录”错误:
./configure --with-ssl=/usr/local/ssl
任何建议都会有所帮助。
编辑:
这是我尝试使用 ssl 安装时遇到的错误:
configure: error: OpenSSL libs and/or directories were not found where specified!
解决方案:
对于 Mac OS X 10.6 或更高版本,使用它来启用 SSL:
./configure --with-darwinssl
最佳答案
Homebrew 团队最近删除了 cURL 公式的所有安装选项,这意味着您现在将无法执行 brew install curl --with-openssl
。相反,执行 brew install curl-openssl
。确保首先使用 brew uninstall curl
卸载旧版本。
关于macos - 如何在 Mac OS X 上启用 curl SSL?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34914473/