title: Installing Rubies in system wide RVM 1.5.2 install problem
body: <p>Following <a href="https://stackoverflow.com/questions/5412589/errors-installing-rvm/5414184#5414184">this advice for installing RVM 1.5.2</a>, I used these commands to install RVM 1.5.2 system wide (into /usr/local/rvm):</p>
  
  <pre><code>curl http://rvm.beginrescueend.com/releases/rvm-install-head &gt; rvm-install-head
  sudo bash rvm-install-head
  </code></pre>
  
  <p>That, in itself, worked.  I added the appropriate source statements in my .bashrc file:</p>
  
  <pre><code>[[ -s "/usr/local/rvm/scripts/rvm" ]] &amp;&amp; source "/usr/local/rvm/scripts/rvm"
  </code></pre>
  
  <p>and proceeded to attempt to install Ruby 1.9.2 with this command:</p>
  
  <pre><code>sudo rvm install 1.9.2-head
  </code></pre>
  
  <p>However, I get "rvm: command not found".   If I try it without sudo, I don't have appropriate permissions to create the necessary directories and so forth, as would be expected.  The problem seems to be that the shell function rvm is defined for my user, but when running sudo, it doesn't seem to be available.  </p>
  
  <p>My question: What is the correct way to install rubies in a system wide RVM 1.5.2 install?</p>
  
  <p>I'm running Ubuntu 10.04.</p>