postmodern / chruby

Changes the current Ruby
MIT License
2.85k stars 190 forks source link

Cannot install latest ruby through chruby on Mac M2 Apple Chip #483

Closed Waterkin closed 1 year ago

Waterkin commented 1 year ago

Description

Cannot install latest ruby through chruby on Mac M2 Apple Chip

Steps To Reproduce

Steps to reproduce the bug:

  1. brew install chruby ruby-install xz
  2. ruby-install ruby

Actual Behavior

>>> Updating ruby versions ...
!!! Failed to download https://raw.githubusercontent.com/postmodern/ruby-versions/master/ruby/versions.txt to /Users/ppwang/.cache/ruby-install/ruby/versions.txt!
!!! Failed to download ruby versions!

Environment

$ chruby --version
chruby: 0.3.9
postmodern commented 1 year ago

This does not appear to be a chruby issue, but could be a network or SSL related issue, or maybe related to ruby-install. Have you tried to manually download the file with curl or wge to test whether it is a networking or SSL related issue?

If your system has curl installed:

$ curl -f -L -C - -o /Users/ppwang/.cache/ruby-install/ruby/versions.txt https://raw.githubusercontent.com/postmodern/ruby-versions/master/ruby/versions.txt

If your system has wget installed:

$ wget -c -O /Users/ppwang/.cache/ruby-install/ruby/versions.txt https://raw.githubusercontent.com/postmodern/ruby-versions/master/ruby/versions.txt

If you get an error message from the curl/wget command, then the problem is related to the network, SSL, or possibly disk space. If the command works, and the problem persists with ruby-install, then please report it to ruby-install.