ZSH许可在设定Grails 2.5.6和Groovy 2.4.Q0时拒绝拒绝
./zshrc文件:
export JAVA_HOME=$(/usr/libexec/java_home -v 12)
export GROOVY_HOME=$($HOME/groovy-2.4.10)
export PATH=$PATH:$GROOVY_HOME/bin
终端中的错误:
/.zshrc:3: permission denied: /$HOME/groovy-2.4.10
我也无法安装任何
./zshrc file:
export JAVA_HOME=$(/usr/libexec/java_home -v 12)
export GROOVY_HOME=$($HOME/groovy-2.4.10)
export PATH=$PATH:$GROOVY_HOME/bin
error in terminal:
/.zshrc:3: permission denied: /$HOME/groovy-2.4.10
also i am not able to install any
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您有一个额外的
$(...)
:应该是
$(...)
试图在Parens中执行代码并返回其输出。但是,您想将groovy_home
指向文件夹,而不是执行文件夹(您不能,因此错误)。对于设置JAVA_HOME
您确实需要$(...)
导致您运行/usr/usr/libexec/java_home
命令并将其输出分配给Java_home
。You have an extra
$(...)
:should be
$(...)
tries to execute the code in the parens and return its output. But you want to pointGROOVY_HOME
to a folder, not execute the folder (which you can't, hence the error). For settingJAVA_HOME
you do need the$(...)
cause you run the/usr/libexec/java_home
command and assign its output toJAVA_HOME
.