簡體   English   中英

無法在Mac 10.7.5上安裝curl

[英]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&amp;dcr=0&amp;ei=-A2MWpicIumBtge67a34Bw">here</A>.
</BODY></HTML>

Google正在重定向您。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM