【发布时间】:2012-08-01 19:10:35
【问题描述】:
我最近升级到 OS X Mountain Lion,当我运行 curl-config --ca 时,我得到一个空行。关于 curl 的详细信息:
curl 7.24.0 (x86_64-apple-darwin12.0) libcurl/7.24.0 OpenSSL/0.9.8r zlib/1.2.5
Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 pop3s rtsp smtp smtps telnet tftp
Features: AsynchDNS GSS-Negotiate IPv6 Largefile NTLM NTLM_WB SSL libz
问题是我无法运行brew update,除非我更新证书,因为我收到以下错误:
Initialized empty Git repository in /usr/local/.git/
error: SSL certificate problem, verify that the CA cert is OK. Details:
error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed while accessing https://github.com/mxcl/homebrew.git/info/refs
fatal: HTTP request failed
Error: Failure while executing: git fetch origin
自制软件帮助论坛说我需要更新证书。但是,除非我能找到 curl 存储证书的位置,否则我无法更新它。
编辑: HeatfanJohn 提出的解决方案如下:
我刚刚注意到有一个用于 curl-ca-bundle 的 Macport。很抱歉这个可能很简单的问题,但是您是安装 curl 还是预装了它?您可能需要考虑安装 MacPorts,然后使用 MacPorts 安装 curl-ca-bundle,尽管快速查看 Portfile,此 MacPort 似乎只是将包放入 /usr/share,您也可以手动执行。
从 MacPorts 安装的命令是 port install curl。从 MacPorts 安装可解决此问题。
【问题讨论】:
标签: homebrew osx-mountain-lion