title: How to install ruby 1.8.7 on ubuntu 12.04 with rvm?
body: <p>I'm working with a legacy rails system. I need a copy of ruby 1.8.7
  I've just been given a new computer at work (finally) and it has ubuntu 12.04</p>
  
  <p>Unfortunately I've just discovered that the rvm-rubies available for my system do not contain 1.8.7 (see list below)</p>
  
  <p><strong>How can I install ruby 1.8.7?
  Is there another source that I can point to that will work?</strong></p>
  
  <p>Please note: I did not use apt-get to install rvm, that is not the problem</p>
  
  <p>This is the list of available rubies:</p>
  
  <pre><code># Rubies available for 'ubuntu/12.04/x86_64':
  
     ruby-1.9.3-p194
     ruby-1.9.3-p286
     ruby-1.9.3-p327
     ruby-1.9.3-p362
     ruby-1.9.3-p374
     ruby-1.9.3-p392
     ruby-1.9.3-p429
     ruby-1.9.3-p448
     ruby-2.0.0-p0
     ruby-2.0.0-p195
     ruby-2.0.0-p247
  </code></pre>
  
  <p><strong>Edit:</strong></p>
  
  <p>Just so you know, here's the output of some of the simpler rvm commands:</p>
  
  <pre><code>triton:[~]% rvm list  
  
  rvm rubies
  
  # No rvm rubies installed yet. Try 'rvm help install'.
  </code></pre>
  
  <p>And rvm install gives this message (which make sit clear there is no version of 1.8.7 in the standard repository).</p>
  
  <pre><code>triton:[~]% rvm install 1.8.7
  Searching for binary rubies, this might take some time.
  No binary rubies available for: ubuntu/12.04/x86_64/ruby-1.8.7-p374.
  Continuing with compilation. Please read 'rvm help mount' to get more information on binary rubies.
  You requested building with 'gcc-4.4' but it is not in your path.
  </code></pre>