postmodern / ruby-install

Installs Ruby, JRuby, TruffleRuby, or mruby
MIT License
1.89k stars 250 forks source link

Wrong file extension? #479

Closed ut closed 6 months ago

ut commented 6 months ago

Description

I wanted to install a newer Ruby version with ruby-install --latest and then picking the latest 3.2 with ruby-install ruby-3.2.3

This returns an error:

Downloading https://cache.ruby-lang.org/pub/ruby/3.2/ruby-3.2.3.tar.bz2 into /usr/local/src ... --2024-02-13 17:08:13-- https://cache.ruby-lang.org/pub/ruby/3.2/ruby-3.2.3.tar.bz2 Resolving cache.ruby-lang.org (cache.ruby-lang.org)... 151.101.1.178, 151.101.65.178, 151.101.129.178, ... Connecting to cache.ruby-lang.org (cache.ruby-lang.org)|151.101.1.178|:443... connected. HTTP request sent, awaiting response... 404 Not Found 2024-02-13 17:08:13 ERROR 404: Not Found. !!! Download of https://cache.ruby-lang.org/pub/ruby/3.2/ruby-3.2.3.tar.bz2 failed!

While using a different format ...

$ wget https://cache.ruby-lang.org/pub/ruby/3.2/ruby-3.2.3.tar.gz

... succeeds.

On https://cache.ruby-lang.org/pub/ruby/3.2/ are no archives with bz2 format, but with tar.gz, tar.gz, zip

Seems that there are no more bz2 archive generated by ruby-lang.org

Steps To Reproduce

Steps to reproduce the bug:

  1. ruby-install --latest
  2. ruby-install ruby-3.2.3

Workaround

I followed the installation instruction for a manual install at https://github.com/postmodern/chruby/wiki/Ruby#installation

Environment

$ bash --version

GNU bash, version 5.1.4(1)-release (x86_64-pc-linux-gnu)

$ chruby --version

chruby: 0.3.9
postmodern commented 6 months ago

@ut what version of ruby-install are you using? Newer versions switched to preferring the new .tar.xz archives.

ut commented 6 months ago

0.7. After a quick update to 0.93, it works.

I thought ruby-install comes with Chruby and I only checked if Chruby is up to date, pardon my sloppiness.