I\'m trying to install rubyrep on CentOS, and when executing sudo gem install rubyrep I get the error sudo: gem: command not found. Sudo and gem a
sudo gem install rubyrep
sudo: gem: command not found
sudo env PATH=$PATH gem install rails
It works for me.