title: Rails "no such file to load -- rubygems (LoadError)"
body: <p>I just switched from Heroku to Amazon Web Services.  Previously I ran all of my Rails command line commands using my Command Prompt with Ruby (from my Windows PC).  However, after I logged into my Amazon Linux EC2 instance, and then went into the directory of my app I receive this error: </p>
  
  <pre><code>/usr/bin/rails:9:in `require': no such file to load -- rubygems (LoadError)
      from /usr/bin/rails:9
  </code></pre>
  
  <p>when I try to run any commands like <code>rails console</code>.</p>
  
  <p>I reviewed <a href="https://stackoverflow.com/questions/2896485/no-such-file-to-load-rubygems-loaderror">this question</a>, but it doesn't seem like multiple Ruby libraries apply to me because </p>
  
  <p><code>which -a ruby</code></p>
  
  <p>only yields one location:</p>
  
  <p><code>/usr/bin/ruby</code></p>
  
  <p>Also, <a href="https://stackoverflow.com/questions/9933217/rails-error-require-no-such-file-to-load-rubygems-loaderror?lq=1">this question</a> didn't seem to help as I haven't.  When I tried typing in </p>
  
  <p><code>rvm use 1.9.3</code></p>
  
  <p>I receive this message:</p>
  
  <p><code>-bash: rvm: command not found</code></p>
  
  <p>It's my first time seeing a Linux environment, so any help would be appreciated.  Thank you!</p>