Did you manually install Grails 2.1.1 at some point?
The ~/.gvm/bin/gvm-init.sh
script is normally sourced in .bashrc
and configures the environment.
Verify the GVM environment is sourced properly in bashrc:
$ echo $GVM_AVAILABLE
true
Verify the GRAILS_HOME environment variable:
$ echo $GRAILS_HOME
~/.gvm/grails/current
Make sure there is no alias defined for grails:
$ alias grails
-bash: alias: grails: not found
Check the path order:
$ echo $PATH | awk 'BEGIN { RS=":" } { print NR, $0 }'
Verify the grails link:
$ ls -l ~/.gvm/grails/current
lrwxlrwxlrwx 1 user user 35 Feb 19 11:01 ~/.gvm/grails/current -> ~/.gvm/grails/2.2.1