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官网 看了下

brew install 报错curl: (22) The requested URL returned error: 404 Not Found_第1张图片

我发现原来官网已经更新到 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

搞定

你可能感兴趣的:(大数据)