Mac OS下最简单安装ant方法

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/Story51314/article/details/73187582

1.终端下安装 Homebrew

$ /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

2.终端下使用Homebrew安装ant

$ brew install ant

3.如果遇到link错误,如下

Error: The brew link step did not complete successfully
The formula built, but is not symlinked into /usr/local
Could not symlink .
/usr/local/opt is not writable.

You can try again using:
brew link ant

使用chown命令解决权限问题后使用link命令链接ant

$ sudo chown -R "$USER":admin /usr/local
$ brew link ant
展开阅读全文

没有更多推荐了,返回首页