运行groovy给出命令未找到错误

时间:2019-04-11 18:26:03

标签: macos groovy homebrew

我使用带有brew install groovy的自制软件安装了Groovy。 当我在某些文件上运行groovy命令时,得到以下信息:

groovy afile.groovy 
/usr/local/bin/../Cellar/groovy/2.5.6/bin/../libexec/bin/startGroovy: line 293: 127.0.0.1: command not found
/usr/local/bin/../Cellar/groovy/2.5.6/bin/../libexec/bin/startGroovy: line 293: 169.254.169.254: command not found
/usr/local/bin/../Cellar/groovy/2.5.6/bin/../libexec/bin/startGroovy: line 293: 127.0.0.1: command not found
/usr/local/bin/../Cellar/groovy/2.5.6/bin/../libexec/bin/startGroovy: line 293: 169.254.169.254: command not found
/usr/local/bin/../Cellar/groovy/2.5.6/bin/../libexec/bin/startGroovy: line 293: 127.0.0.1: command not found
/usr/local/bin/../Cellar/groovy/2.5.6/bin/../libexec/bin/startGroovy: line 293: 169.254.169.254: command not found

我运行brew upgrade groovy时说groovy 2.5.6 already installed。为什么会发生这种情况的任何想法?

0 个答案:

没有答案
相关问题