[英]can't install curl on mac 10.7.5
在終端上運行以下命令時
brew install curl
我得到的錯誤是:
Updating Homebrew...
==> Downloading https://curl.haxx.se/download/curl-7.58.0.tar.bz2
curl: (35) error:1407742E:SSL routines:SSL23_GET_SERVER_HELLO:tlsv1 alert protocol version
Trying a mirror...
我下載了curl-7.58.0.tar.bz2並按照建議將其放在library / cache / homebrew中
[ https://github.com/mistydemeo/tigerbrew/issues/506]
可以識別出文件已下載但未下載。 但是如果我在終端輸入
curl --version
我收到的消息是:
curl 7.21.4 (universal-apple-darwin11.0) libcurl/7.21.4 OpenSSL/0.9.8z zlib/1.2.5
Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 pop3s rtsp smtp smtps telnet tftp
以上消息是否表示curl已正確安裝使用? 我希望這是有道理的。 謝謝
是。 嘗試curl www.google.com
。 您應該得到如下響應:
<HTML><HEAD><meta http-equiv="content-type" content="text/html;charset=utf-8">
<TITLE>302 Moved</TITLE></HEAD><BODY>
<H1>302 Moved</H1>
The document has moved
<A HREF="http://www.google.co.uk/?gfe_rd=cr&dcr=0&ei=-A2MWpicIumBtge67a34Bw">here</A>.
</BODY></HTML>
Google正在重定向您。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.