$cd /usr/local $sudo unzip ~/gradle-2.2.1-all.zip .
export GRADLE_HOME=/usr/local/gradle-2.2.1 export PATH=${JAVA_HOME}/bin:${JRE_HOME}/bin:${GRADLE_HOME}/bin:${JAVA_HOME}:${PATH}在PATH语句后面追加${GRADLE_HOME}/bin,让系统能够找到可执行文件的路径。
$ gradle -version ------------------------------------------------------------ Gradle 2.2.1 ------------------------------------------------------------ Build time: 2014-11-24 09:45:35 UTC Build number: none Revision: 6fcb59c06f43a4e6b1bcb401f7686a8601a1fb4a Groovy: 2.3.6 Ant: Apache Ant(TM) version 1.9.3 compiled on December 23 2013 JVM: 1.8.0_25 (Oracle Corporation 25.25-b02) OS: Linux 2.6.32-431.11.2.el6.i686 i386
原文地址:http://blog.csdn.net/gaolu/article/details/42915521