Groovy in Linux(redhat/CentOs/Debian)

来源:互联网 发布:软件系统详细设计方案 编辑:程序博客网 时间:2024/06/07 20:21

There are RPM source in the groovy official website.

 

But I meet some erorr.

So I recommand you use Zip

 

Download link as below:

 

#wget -S http://dist.groovy.codehaus.org/distributions/groovy-binary-1.6.1.zip

 

Unzip it:

#unzip groovy-binary-1.6.1.zip

 

set the environment:

 

vi /etc/profile

 

export GROOVY_HOME=/etc/groovy/groovy-1.6.1

export PATH=$GROOVY_HOME/bin:$PATH:.

 

By the Way, JAVA HAVE TO INSTALL FIREST

 

JAVA_HOME=/usr/java (depend on your locate)

export JAVA_HOME

export PATH=$JAVA_HOME/bin:$PATH:.

 

#source /etc/profile

#java -version

#groovy -version

 

my info like this

 

[root@www]# java -version

java version "1.6.0_12"

Java(TM) SE Runtime Environment (build 1.6.0_12-b04)

Java HotSpot(TM) 64-Bit Server VM (build 11.2-b01, mixed mode)

[root@www]# groovy -version

Groovy Version: 1.6.1 JVM: 1.6.0_12

 

Ok

 

原创粉丝点击