title: Error sudo: gem: command not found
body: <p>I'm trying to install rubyrep on CentOS, and when executing <code>sudo gem install rubyrep</code> I get the error <code>sudo: gem: command not found</code>.  Sudo and gem are both installed and working, just not when combined.</p>
  
  <p>My setting:</p>
  
  <pre><code>[rubyrep]# which sudo
  /usr/bin/sudo
  [rubyrep]# which gem
  /usr/local/rvm/rubies/ruby-2.1.2/bin/gem
  [rubyrep]# which ruby
  /usr/local/rvm/rubies/ruby-2.1.2/bin/ruby
  [rubyrep]# $PATH
  -bash: /usr/local/rvm/gems/ruby-2.1.2/bin:/usr/local/rvm/gems/ruby-2.1.2@global/bin:/usr/local/rvm/rubies/ruby-2.1.2/bin:/usr/local/rvm/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin: No such file or directory
  </code></pre>