postmodern / ruby-install

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

Installing Ruby 3.0.2 fails because there is only a .tar.gz archive #405

Closed indirect closed 3 years ago

indirect commented 3 years ago

Seems like MRI should probably be installable without having to hunt down the official archive URL, right?

$ ruby-install ruby 3.0.2
>>> Installing ruby 3.0.2 into /Users/andre/.rubies/ruby-3.0.2 ...
>>> Installing dependencies for ruby 3.0.2 ...
[...]
>>> Downloading https://cache.ruby-lang.org/pub/ruby/3.0/ruby-3.0.2.tar.bz2 into /Users/andre/src ...
--2021-07-23 11:59:55--  https://cache.ruby-lang.org/pub/ruby/3.0/ruby-3.0.2.tar.bz2
Resolving cache.ruby-lang.org (cache.ruby-lang.org)... 151.101.41.178, 2a04:4e42:a::434
Connecting to cache.ruby-lang.org (cache.ruby-lang.org)|151.101.41.178|:443... connected.
HTTP request sent, awaiting response... 404 Not Found
2021-07-23 11:59:55 ERROR 404: Not Found.
$ ruby-install ruby 3.0.2 -u https://cache.ruby-lang.org/pub/ruby/3.0/ruby-3.0.2.tar.gz            
>>> Installing ruby 3.0.2 into /Users/andre/.rubies/ruby-3.0.2 ...                                                                             
>>> Installing dependencies for ruby 3.0.2 ...     
[...]
>>> Downloading https://cache.ruby-lang.org/pub/ruby/3.0/ruby-3.0.2.tar.gz into /Users/andre/src ...                                           
--2021-07-23 12:04:55--  https://cache.ruby-lang.org/pub/ruby/3.0/ruby-3.0.2.tar.gz                                                            
Resolving cache.ruby-lang.org (cache.ruby-lang.org)... 151.101.41.178, 2a04:4e42:a::434                                                        
Connecting to cache.ruby-lang.org (cache.ruby-lang.org)|151.101.41.178|:443... connected.                                                      
HTTP request sent, awaiting response... 200 OK                                                                                                 
Length: 19941179 (19M) [application/x-tar]                                                                                                     
Saving to: ‘/Users/andre/src/ruby-3.0.2.tar.bz2.part’
/Users/andre/src/ruby-3.0.2.tar.bz2 100%[==================================================================>]  19.02M  73.3MB/s    in 0.3s                                                                                                                                              
2021-07-23 12:04:56 (73.3 MB/s) - ‘/Users/andre/src/ruby-3.0.2.tar.bz2.part’ saved [19941179/19941179]
>>> Verifying ruby-3.0.2.tar.bz2 ...
*** No md5 checksum for /Users/andre/src/ruby-3.0.2.tar.bz2
*** No sha1 checksum for /Users/andre/src/ruby-3.0.2.tar.bz2
*** No sha256 checksum for /Users/andre/src/ruby-3.0.2.tar.bz2
*** No sha512 checksum for /Users/andre/src/ruby-3.0.2.tar.bz2
>>> Extracting ruby-3.0.2.tar.bz2 to /Users/andre/src/ruby-3.0.2 ...
>>> Configuring ruby 3.0.2 ...
checking for ruby... /Users/andre/.rubies/ruby-2.6.5/bin/ruby
tool/config.guess already exists
[...]
postmodern commented 3 years ago

Support for .tar.xz was added back in ruby-install 0.8.0 and it became the default archive that's downloaded. Upgrading to ruby-install >= 0.8.0 should fix this.

indirect commented 3 years ago

Oof, now I’m embarrassed I wrote an entire ticket before upgrading to the latest. 🤦🏻‍♂️ Thanks!

postmodern commented 3 years ago

I keep getting this same bug report re-submitted, which tells me I probably didn't broadcast the release of 0.8.0 loud and far enough or people were holding off on installing ruby 3.x which dropped support for .tar.bz2 archives.