Chruby installs Ruby 1.8.7

I use chruby for version control and clone a project, unfortunately in Ruby 1.8.7. Is it possible to install Ruby 1.8.7 with chruby? I am having trouble finding resources for this process.

+3
source share
6 answers

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 "("
 #elif define(ERANGE)
             ^
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 .
+3

1.8.x 0.4.0. , ruby ​​1.8.7 ( GCC, openssl ..), . 1.8.7 GCC, openssl .. 1.8.7, RVM 1.8.7 --patch; . , RedHat Debian - ruby ​​1.8.7 .

+3

ruby-build, 1.8.7.

1.8.7, :

ruby-build 1.8.7-p375 /opt/rubies/1.8.7-p375
+1

, ruby ​​ apt-get

apt-get install ruby

chruby, ruby.

chruby system

ruby ​​

echo 'system' > .ruby-version
0

Unfortunately, it chrubyno longer supports 1.8.7. I managed to get it to work / work by installing 1.8.7 using rvm and linking it to ~/.rubies, for example:

\curl -sSL https://get.rvm.io | bash
rvm install 1.8.7-head
ln -s ~/.rvm/rubies/ruby-1.8.7-head ~/.rubies/ruby-1.8.7
0
source

If you are on OS X (10.11, El Capitan), you can install Ruby 1.8.7 using ruby-build so that chruby can use it:

brew install ruby-build
brew install openssl libyaml libffi
brew install apple-gcc42
brew install openssl098

mkdir -p ~/.rubies

brew link openssl098 --force

ruby-build 1.8.7-p375 ~/.rubies/ruby-1.8.7

brew unlink openssl098

chruby 1.8.7

Link: http://pawelgoscicki.com/archives/2015/12/installing-ruby-1-8-7-head-for-chruby-using-ruby-build-on-os-x-10-11-el- capitan /

0
source

All Articles