[英]Grails installation on Virtual Machine Ubuntu
I've installed Ubuntu on my VM and I've got a problem with Grails installation. 我已经在我的VM上安装了Ubuntu,并且Grails安装出现问题。 I've installed JDK, Groovy and downloaded package with Grails.
我已经安装了JDK,Groovy,并通过Grails下载了软件包。 I've added path for java, Groovy and Grails in files /etc/bash.bashrc and ~/.profile.
我在文件/etc/bash.bashrc和〜/ .profile中添加了Java,Groovy和Grails的路径。
When I run command 'grails' it gives an error "no command grails found". 当我运行命令“ grails”时,出现错误“找不到命令grails”。 How can I check what is wrong?
如何检查出什么问题了?
Thanks in advance! 提前致谢!
@Dave hinted the answer in a comment but explicitly the answer is to add $GRAILS_HOME/bin to your PATH in the ~/.profile file. @Dave在注释中提示了答案,但明确的答案是将$ GRAILS_HOME / bin添加到〜/ .profile文件中的PATH中。 $GRAILS_HOME should of course be replaced with the actual location of the Grails installation.
当然,应将$ GRAILS_HOME替换为Grails安装的实际位置。
You may also need to chmod +x $GRAILS_HOME\\bin\\grails
. 您可能还需要
chmod +x $GRAILS_HOME\\bin\\grails
。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.