brew install 報錯curl: (22) The requested URL returned error: 404 Not Found

今天在安裝 zookeeper 時,報瞭如下錯誤

brew install zookeeper

Updating Homebrew...
==> Downloading https://mirrors.aliyun.com/homebrew/homebrew-bottles/bottles/zookeeper-3.4.13.mojave.bottle.tar.gz
######################################################################## 100.0
curl: (22) The requested URL returned error: 416
Error: Failed to download resource "zookeeper"
curl: (22) The requested URL returned error: 404 Not Found
Trying a mirror...
==> Downloading https://www-eu.apache.org/dist/zookeeper/zookeeper-3.4.13/zookeeper-3.4.13.tar.gz

curl: (22) The requested URL returned error: 404 Not Found
Error: An exception occurred within a child process:
  DownloadError: Failed to download resource "zookeeper"
Download failed: https://www-us.apache.org/dist/zookeeper/zookeeper-3.4.13/zookeeper-3.4.13.tar.gz

看到這個報錯,便去 zookeeper官網 看了下

我發現原來官網已經更新到 3.4.14版本了,而 brew還是去下載的 3.4.13版本,所以會導致上述的問題,網上查閱資料發現,可以這麼操作,直接使用官網的下載地址

brew install https://www-us.apache.org/dist/zookeeper/zookeeper-3.4.14/zookeeper-3.4.14.tar.gz

經驗證,該方法不管用~

需要更新下git

brew install git

然後

brew install zookeeper

搞定

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章