使用brew出错了在macos上安装ant?

时间:2013-12-31 17:35:12

标签: macos ant install homebrew

nma-2:test nikolaialeksandrenko$ brew install ant
==> Downloading http://www.apache.org/dyn/closer.cgi?path=ant/binaries/apache-ant-1.9.0-bin.tar.gz
==> Best Mirror http://apache.igor.onlinedirect.bg/ant/binaries/apache-ant-1.9.0-bin.tar.gz

curl: (22) The requested URL returned error: 404 Not Found
Error: Download failed: http://www.apache.org/dyn/closer.cgi?path=ant/binaries/apache-ant-1.9.0-bin.tar.gz

我正在尝试使用brew在我的mac上安装ant ... 我做错了什么?

1 个答案:

答案 0 :(得分:17)

您应首先尝试更新brew:

brew update

如果这不起作用,请查看此处的替代安装:https://superuser.com/questions/610157/how-do-i-install-ant-on-os-x-mavericks