TL DR
You cannot at least not use ruby-install . Ruby 1.8.7 is the end of life , and its support has been removed using the Postmodern Ruby installation installer.
Ruby 1.8.7 is not supported
Console error messages may vary depending on installed libraries and compilers, but unmodified Ruby 1.8.7 is unlikely to compile on later systems. For example, on Ubuntu 13.10:
$ ruby-install ruby 1.8.7
[lots of output elided]
math.c:37:13: error: missing binary operator before token "("
^
make: *** [math.o] Error 1
!!! Compiling ruby 1.8.7 failed!
Ruby 1.8.7
Ruby 1.8.7 Postmodern 9 2013 . Commit f013ed2 :
commit f013ed2476ecce82ea41ff63de413daf2231b82b
Author: Postmodern <postmodern.mod3@gmail.com>
Date: Mon Dec 9 16:09:30 2013 -0800
Drop support for Ruby 1.8.x since it has reached End-of-Life.
* CVE-2013-4164 affects Ruby 1.8.x and there is no official patch.
Enabling users to install and run 1.8.x at this point is irresponsible.
:
- Ruby, Ruby 2.1.0.
- Ruby, RVM, Ruby 1.8.6-p420 1.8. 7-P374.
- ruby-build ruby-install. chruby ruby-build README, , chruby Ruby.
- 1.8.7 -, chruby , chruby .