Hi,
You will need to check if you have got multiple Ruby interpreters installed, either using the rvm method or any other method. In case that is true, you will need to ensure that the right interpreter is active. You can look at the following to verify that:
which ruby which rake ruby -e 'puts $:' # To show the LOAD_PATH for gems