Have you installed ruby through RVM and gem or bundler aren't working? Most likely you have forgotten to run source ~/.rvm/scripts/rvm. If that doesn't work, try source /etc/profile.d/rvm.sh and restart the terminal. Hope I helped :)