一、下载gvmtool

curl -s get.gvmtool.net | bash

命令运行后提示最后几句如下:

Please open a new terminal, or run the following in the existing one:

source "/Users/zz/.gvm/bin/gvm-init.sh"

Then issue the following command:

   gvm help

Enjoy!!!


二、初始化gvmtool运行环境

source "/Users/zz/.gvm/bin/gvm-init.sh"

三、安装groovy

gvm install groovy

四、安装grails

gvm install grails

安装后的groovy、grails文件位置为:

        /Users/zz/.gvm/





五、参考资料: