What Does "No Binary Rubies Available" Mean

What does No binary rubies available mean?

When installing new Rubies, RVM first tries to use a pre-compiled version it downloads from https://rvm_io.global.ssl.fastly.net/binaries/. This significantly speeds up the installation of Rubies.

Only if RVM doesn't find a matching version (or you have specified additional compile options), RVM downlaods the source code of the respective version of Ruby and compiles it on your computer.

The message you got there just informs you that RVM couldn't find a precompiled version of your desired Ruby for your operating system and that RVM will compile it from source. This is not an error. The resulting Ruby will work exactly the same as if it would have been downloaded in precompiled form. It just takes a bit longer to install.

What's the right string to use when installing Ruby 3.1 through RVM on Mac OS Big Sur?

> rvm list known
# MRI Rubies
[ruby-]1.8.6[-p420]
[ruby-]1.8.7[-head] # security released on head
[ruby-]1.9.1[-p431]
[ruby-]1.9.2[-p330]
[ruby-]1.9.3[-p551]
[ruby-]2.0.0[-p648]
[ruby-]2.1[.10]
[ruby-]2.2[.10]
[ruby-]2.3[.8]
[ruby-]2.4[.10]
[ruby-]2.5[.8]
[ruby-]2.6[.6]
[ruby-]2.7[.2]
[ruby-]3[.0.0]
ruby-head

3.1 doesn't seem to be on the list, but to install it you would use:

> rvm install ruby-3.1.0

or

> rvm install 3.1.0

But again, doesn't seem available, at least in rvm stable or latest. Looking at GitHub, they have merged patches to add 3.1 support but the latest releases don't list it: https://github.com/rvm/rvm/releases.

Error installing Ruby 2.3.8 in OSX 10.15.2 Catalina using RVM; OpenSSL not found

I tried everything and came to conclusion that there is problem with the binary of ruby 2.3.8 RVM has. The I removed RVM from my system and start using rbenv.

With Homebrew

$ brew install rbenv
$ rbenv init
# Do as it says
$ rbenv install 2.3.8

also make sure you the use the bundler specified in your legacy code's Gemfile.lock

How to install rvm install 2.1.1 on ubuntu 19.04

At this moment, it is no longer possible to install old rubies on recent Ubuntu. If you need to run old rubies, I recommend you stick with Ubuntu 18.04 LTS, on which you can still install any ruby you want.

2.1.x, 2.2.x and 2.3.x no longer installs on 19.04

We would need a custom openssl 1.1 patch, I'm not sure if someone will work on this. Most of the ruby community is ready to move forward.

For production environment you should stick to LTS releases for sure.

When 20.04 LTS comes out, ruby 2.4 will be unsupported by the ruby-core team itself.

https://www.ruby-lang.org/en/news/2019/03/31/support-of-ruby-2-3-has-ended/

From Ubuntu 19.04 and onward, rvm install 2.4.6 is your oldest option,
rvm install 2.6.3 is the current recommended release

On my Ubuntu 18.04 I have

ubuntu@ip-w-x-y-z:~$ rvm list 
ruby-2.0.0-p648 [ x86_64 ]
ruby-2.1.8 [ x86_64 ]
ruby-2.2.10 [ x86_64 ]
ruby-2.2.4 [ x86_64 ]
ruby-2.3.8 [ x86_64 ]
ruby-2.4.6 [ x86_64 ]
=* ruby-2.6.3 [ x86_64 ]

On my 19.04 laptop I have

ubuntu@ip-w-x-y-z:~$ rvm list 
=> ruby-2.4.6 [ x86_64 ]
ruby-2.5.5 [ x86_64 ]
* ruby-2.6.3 [ x86_64 ]
ruby-2.7.0-preview1 [ x86_64 ]

Update for Ubuntu 22.04 -- I could install all rubies from 1.9.3 to 3.1.2

For ruby 2.4.x -> 3.0.4, I used openssl 1.1.1g. You also have the option to compile without SSL and later install the openssl gem, which is automatically compiled with OpenSSL 3.0.

For ruby 1.9.3 -> 2.3.8, I used openssl 1.0.2u. You need to build with the option -fPIC otherwise, it won't build.

Download from there
https://www.openssl.org/source/old/

Extract and build like this.

./config --prefix=~/.openssl/openssl-1.0.2u -fPIC
make && make install
rvm install 2.1.10 --movable --with-openssl-dir=$HOME/.openssl/openssl-1.0.2u
mathieu:openssl-1.0.2u :-) (lifebook-wu2) $ cat /etc/issue.net 
Ubuntu 22.04 LTS
mathieu:openssl-1.0.2u :-) (lifebook-wu2) $ rvm list
ruby-1.9.3-p551 [ x86_64 ]
=> ruby-2.0.0-p648 [ x86_64 ]
ruby-2.1.10 [ x86_64 ]
ruby-2.2.10 [ x86_64 ]
ruby-2.3.8 [ x86_64 ]
ruby-2.4.10 [ x86_64 ]
ruby-2.5.9 [ x86_64 ]
ruby-2.6.10 [ x86_64 ]
ruby-2.6.9 [ x86_64 ]
ruby-2.7.5 [ x86_64 ]
ruby-2.7.6 [ x86_64 ]
ruby-3.0.3 [ x86_64 ]
ruby-3.0.4 [ x86_64 ]
* ruby-3.1.2 [ x86_64 ]

# => - current
# =* - current && default
# * - default

mathieu:openssl-1.0.2u :-) (lifebook-wu2) $


Related Topics



Leave a reply



Submit