我已經在Linux上安裝Grails和設置我GRAILS_HOME和JAVA_HOME路徑喜歡:Grails的路徑是不節能
[[email protected] ~]$ export JAVA_HOME=/usr/lib/jvm/java-1.6.0
[[email protected] ~]$ export PATH="$PATH:$JAVA_HOME/bin"
[[email protected] ~]$ export GRAILS_HOME=/home/Hbrock/Grails/grails-2.2.0.RC1
[[email protected] ~]$ export PATH="$PATH:$GRAILS_HOME/bin"
[[email protected] ~]$ javac -version
javac 1.6.0_24
[[email protected] ~]$ grails -version
Grails version: 2.2.0.RC1
但它似乎並沒有被保存此。我這是錯誤,下一次我打開終端寡婦並嘗試運行的Grails:
[[email protected] ~]$ grails -version
bash: grails: command not found
[[email protected] ~]$
我正在運行基於Redhat的Oracle Linux –