postmodern / ruby-install

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

ruby-install list can't download file on v.0.81.0 #391

Closed mediafinger closed 3 years ago

mediafinger commented 3 years ago
$> ruby-install --version
  ruby-install: 0.8.1

$> ruby-install list
  >>> Updating list versions ...
  !!! Failed to download https://raw.githubusercontent.com/postmodern/ruby-versions/master/list/versions.txt to ...
  !!! Failed to download list versions!
ragaskar commented 3 years ago

See this issue: https://github.com/postmodern/ruby-install/issues/361

tl;dr: try brew upgrade wget

I had a similar issue and upgrading wget fixed it.

notjosh commented 2 years ago

For anyone stumbling on this issue later, the problem is the list command. Normally you'd run (for example) ruby-install jruby to install JRuby, so this command is looking for a list Ruby to try and install, hence the 404.

If you want to list versions available, simply use ruby-install without any trailing command.

tjoyal commented 2 years ago

RTFM (Read the manual), something I myself didn't do and ended up here...

wget as linked was an issue but is not what is happening here.

What you are looking for is "List the latest versions":

ruby-install --latest

The following commands try to install a Ruby of the associated type, which as one would expect do not exist.

ruby-install list
ruby-install update
ruby-install <anything>

Hopefully that helps people ending up reading this issue 😸