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