美文网首页
groovy安装

groovy安装

作者: 耗纸锅 | 来源:发表于2018-05-24 21:43 被阅读0次

    1、下载

    groovy下载

    网址:http://groovy.codehaus.org/Download

    这里下载 :

    Download zip: Binary Releasegroovy-binary-2.3.6.zip

    Download documentation: JavaDoc and zipped online documentationgroovy-docs-2.3.6.zip

    2、解压
    unzip *.zip

    3、将groovy加入到环境变量
    vi /etc/profile
    export GROOVY_HOME=/Users/yihaowen/workspace/groovy/groovy-2.4.15
    export PATH=$GROOVY_HOME/bin:$PATH:.
    export GROOVY_HOME
    export PATH

    附:
    -----如果Can't open file for writing
    则,查看文件权限ls -l | grep 文件名
    -----如果Mac OS X 下 su 命令提示 sorry
    打开终端,依次输入命令:
    1) sudo su 提示输入密码,输入当前用户登录密码后回车
    左边变成了 sh-x.x(我这儿是 sh-3.2,可能不一样)
    2)接着输入passwd root
    提示 Changing password for root.
    3)New password: 输入新密码
    4)Retype new password: 再次输入新密码
    回车后完成 root 用户的密码修改
    5)正常vi

    4、更新环境变量source /etc/profile

    5、验证是否成功
    groovy -version

    可参考:https://www.cnblogs.com/amosli/p/3970810.html

    相关文章

      网友评论

          本文标题:groovy安装

          本文链接:https://www.haomeiwen.com/subject/bplejftx.html