postmodern / ruby-install

Installs Ruby, JRuby, TruffleRuby, or mruby
MIT License
1.91k stars 252 forks source link

Keep getting "!!! Unknown ruby" when trying to install the latest version #358

Closed AstonJ closed 4 years ago

AstonJ commented 4 years ago

I'm not sure if this is a bug or whether it's my Mac (I recently updated to Catalina).

On trying to ruby-install --latest 2.6.5 I keep getting that it is unknown.

On doing ruby-install --latest it says:

>>> Downloading latest ruby versions ...
>>> Downloading latest jruby versions ...
>>> Downloading latest rbx versions ...
>>> Downloading latest maglev versions ...
!!! Failed to download https://raw.githubusercontent.com/postmodern/ruby-versions/master/maglev/versions.txt to /Users/Aston/.cache/ruby-install/maglev/versions.txt!
>>> Downloading latest mruby versions ...

However I manually copied the file, but still get unknown Ruby when trying to install any of the latest Rubies.

Am I doing something wrong?

(Sorry to be nuisance!)

on ruby-install I get:

>>> Downloading latest maglev versions ...
!!! Failed to download https://raw.githubusercontent.com/postmodern/ruby-versions/master/maglev/versions.txt to /Users/Aston/.cache/ruby-install/maglev/versions.txt!
Stable ruby versions:
  ruby:
    2.4.9
    2.5.7
    2.6.5
  jruby:
    9.2.9.0
  rbx:
    4.5
  maglev:
    1.8.5-p115
    1.8.6-p114
    1.8.6-p383
    1.8.6-p388
    1.8.6-p398
    1.8.6-p399
    1.8.6-p420
    1.8.7-p174
    1.8.7-p248
    1.8.7-p249
    1.8.7-p299
    1.8.7-p302
    1.8.7-p330
    1.8.7-p334
    1.8.7-p352
    1.8.7-p357
    1.8.7-p358
    1.8.7-p370
    1.8.7-p371
    1.8.7-p374
    1.9.0-0
    1.9.1-p0
    1.9.1-p129
    1.9.1-p243
    1.9.1-p376
    1.9.1-p378
    1.9.1-p429
    1.9.1-p430
    1.9.1-p431
    1.9.1-preview1
    1.9.1-preview2
    1.9.1-rc1
    1.9.1-rc2
    1.9.2-p0
    1.9.2-p136
    1.9.2-p180
    1.9.2-p290
    1.9.2-p318
    1.9.2-p320
    1.9.2-p330
    1.9.2-preview1
    1.9.2-preview3
    1.9.2-rc1
    1.9.2-rc2
    1.9.3-p0
    1.9.3-p105
    1.9.3-p125
    1.9.3-p194
    1.9.3-p286
    1.9.3-p327
    1.9.3-p362
    1.9.3-p374
    1.9.3-p385
    1.9.3-p392
    1.9.3-p426
    1.9.3-p429
    1.9.3-p448
    1.9.3-p484
    1.9.3-p545
    1.9.3-p547
    1.9.3-p550
    1.9.3-p551
    1.9.3-preview1
    1.9.3-rc1
    2.0.0-p0
    2.0.0-p195
    2.0.0-p247
    2.0.0-p353
    2.0.0-p451
    2.0.0-p481
    2.0.0-p576
    2.0.0-p594
    2.0.0-p598
    2.0.0-p643
    2.0.0-p645
    2.0.0-p647
    2.0.0-p648
    2.0.0-preview1
    2.0.0-preview2
    2.0.0-rc1
    2.0.0-rc2
    2.1.0
    2.1.0-preview1
    2.1.0-preview2
    2.1.0-rc1
    2.1.1
    2.1.2
    2.1.3
    2.1.4
    2.1.5
    2.1.6
    2.1.7
    2.1.8
    2.1.9
    2.1.10
    2.2.0
    2.2.0-preview1
    2.2.0-preview2
    2.2.0-rc1
    2.2.1
    2.2.2
    2.2.3
    2.2.4
    2.2.5
    2.2.6
    2.2.7
    2.2.8
    2.2.9
    2.2.10
    2.3.0-preview1
    2.3.0-preview2
    2.3.0
    2.3.1
    2.3.2
    2.3.3
    2.3.4
    2.3.5
    2.3.6
    2.3.7
    2.3.8
    2.4.0-preview1
    2.4.0-preview2
    2.4.0-preview3
    2.4.0-rc1
    2.4.0
    2.4.1
    2.4.2
    2.4.3
    2.4.4
    2.4.5
    2.4.6
    2.4.7
    2.4.8
    2.4.9
    2.5.0-preview1
    2.5.0-rc1
    2.5.0
    2.5.1
    2.5.2
    2.5.3
    2.5.4
    2.5.5
    2.5.6
    2.5.7
    2.6.0-preview1
    2.6.0-preview2
    2.6.0-preview3
    2.6.0-rc1
    2.6.0-rc2
    2.6.0
    2.6.1
    2.6.2
    2.6.3
    2.6.4
    2.6.5
    2.7.0-preview1
    2.7.0-preview2
  mruby:
    1.4.1
    2.0.1
havenwood commented 4 years ago

Thank you for filing the issue!

We removed MagLev support from ruby-install a while back, since it's no longer maintained, and eventually deleted it from ruby-versions.

One issue with your install command is that it doesn't specify the Ruby engine. Could you show the output from:

ruby-install --latest ruby 2.6.5
AstonJ commented 4 years ago

I feel dumb now Shannon ☺️ adding the ruby engine worked!

Thank you for your help and sorry to have been a nuisance.