This is a common problem when you first time install a new version of ruby. To fix this problem please follow below steps:
Step one:
Set up the PATH variable for the installed ruby executable
(Suppose the installed ruby is ruby-2.1.5):
Step two:
PATH=$PATH:$HOME/.rvm/gems/ruby-2.1.5/bin
Step three:
gem install bundler
(if bundler is not installed)
Final Step:
rvm use ruby-2.1.5 --default
(–default is optional).
This will fix your problem.
Hope it helps 🙂