Download the "Binary Release" from this website: http://groovy-lang.org/install.html
# wget https://bintray.com/artifact/download/groovy/maven/apache-groovy-binary-2.4.8.zip
Extract the package:
# unzip apache-groovy-binary-2.4.8.zip
Move package to "/usr/local"
# mkdir /usr/local/groovy # mv groovy-2.4.8 /usr/local/groovy # cd /usr/local/groovy # ln -s groovy-2.4.8 ./latest
Update bash profile:
# vim .bash_profile Add # Add Groovy PATH export GROOVY_HOME=/usr/local/groovy/latest export PATH=$PATH:$GROOVY_HOME/bin # . .bash_profile # groovy groovy error: neither -e or filename provided usage: groovy [options] [args] options: -a,--autosplit <splitPattern> split lines using splitPattern (default '\s') using implicit 'split' variable -b,--basescript <class> Base class name for scripts (must derive from Script) -c,--encoding <charset> specify the encoding of the files -classpath <path> Specify where to find the class files - must be first argument .....
No comments:
Post a Comment