我使用带有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
。为什么会发生这种情况的任何想法?