Closed veganstraightedge closed 1 year ago
I'm curious if this is reproducible, and whether it's caused by a local network issue or a GitHub infrastructure issue, or if it's really caused by how ruby-install
is invoking curl
or wget
?
Also, what are the versions of curl
and/or wget
(it might be installed, and is preferred over curl
). ruby-install
could be using wget
instead and there could be a CA bundle issue with macOS which is causing the command to fail. I should probably change the curl
vs. wget
detection code to prefer curl
on macOS.
ruby-install 0.9.1 will have a --debug
option once it's released that will make debugging these failures a bit easier.
FWIW I had to upgrade wget
(1.21.3 -> 1.21.3_1
) to get past this error.
For reference: had a similar issue today on Pop!_OS 20.04 LTS, so I doubt it's a macOS-specific thing.
$ wget --version
GNU Wget 1.20.3 built on linux-gnu.
$ ruby-install --version
ruby-install: 0.8.2
$ openssl version
OpenSSL 1.1.1f 31 Mar 2020
$ cc --version
cc (Ubuntu 9.4.0-1ubuntu1~20.04.1) 9.4.0
Manual curl
responds ok for me as well.
@robinetmiller can you try downloading the versions URL (https://raw.githubusercontent.com/postmodern/ruby-versions/master/ruby/versions.txt
) using wget
and see if it returns an error?
Huh.
It fetches okay and now ruby-install --latest
completes successfully, too. AFAIK the only thing changed was a general system APT update (none of the versions listed above are different).
Maybe it's a github service issue or TLS CA cert update?
I'm curious if this is reproducible, and whether it's caused by a local network issue or a GitHub infrastructure issue, or if it's really caused by how
ruby-install
is invokingcurl
orwget
?
I'm experiencing this issue locally on my own laptop, not in an Actions workflow.
Also, what are the versions of
curl
and/orwget
(it might be installed, and is preferred overcurl
).ruby-install
could be usingwget
instead and there could be a CA bundle issue with macOS which is causing the command to fail. I should probably change thecurl
vs.wget
detection code to prefercurl
on macOS.
$ which wget
/opt/homebrew/bin/wget
$ wget --version
dyld[1015]: Library not loaded: /opt/homebrew/opt/libunistring/lib/libunistring.2.dylib
Referenced from: <2D949429-D7EF-376D-B220-6B8E58EE1C13> /opt/homebrew/Cellar/wget/1.21.2/bin/wget
Reason: tried: '/opt/homebrew/opt/libunistring/lib/libunistring.2.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/opt/homebrew/opt/libunistring/lib/libunistring.2.dylib' (no such file), '/opt/homebrew/opt/libunistring/lib/libunistring.2.dylib' (no such file), '/usr/local/lib/libunistring.2.dylib' (no such file), '/usr/lib/libunistring.2.dylib' (no such file, not in dyld cache), '/opt/homebrew/Cellar/libunistring/1.1/lib/libunistring.2.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/opt/homebrew/Cellar/libunistring/1.1/lib/libunistring.2.dylib' (no such file), '/opt/homebrew/Cellar/libunistring/1.1/lib/libunistring.2.dylib' (no such file), '/usr/local/lib/libunistring.2.dylib' (no such file), '/usr/lib/libunistring.2.dylib' (no such file, not in dyld cache)
Abort trap: 6
That brew
installed wget
situation looks Not Good™.
$ which curl
/usr/bin/curl
$ curl --version
curl 7.86.0 (x86_64-apple-darwin22.0) libcurl/7.86.0 (SecureTransport) LibreSSL/3.3.6 zlib/1.2.11 nghttp2/1.47.0
Release-Date: 2022-10-26
Protocols: dict file ftp ftps gopher gophers http https imap imaps ldap ldaps mqtt pop3 pop3s rtsp smb smbs smtp smtps telnet tftp
Features: alt-svc AsynchDNS GSS-API HSTS HTTP2 HTTPS-proxy IPv6 Kerberos Largefile libz MultiSSL NTLM NTLM_WB SPNEGO SSL threadsafe UnixSockets
ruby-install 0.9.1 will have a
--debug
option once it's released that will make debugging these failures a bit easier.
🎉
Uninstalling and re-installing wget
(both via brew
) fixed my ruby-install
error.
brew uninstall wget
brew install wget
Speculation: maybe ruby-install
was looking to see if wget
is installed, saw that it was on my machine, tried to use it, but my install of wget
was borked somehow, so ruby-install
failed, but swallowed the error in a way that made it seem like ruby-install
's fault instead of my wget
's fault?
This should now be fixed in ruby-install 0.9.1.
Double Check
brew upgrade ruby-install
)gcc
/clang
,libopenssl
, etc.gcc
/clang
,libopenssl
, etc. Double check the ruby's requirements.Try to Reproduce without ruby-install
Description
When I run
ruby-install ruby 3.2.2
,ruby-install
fails to downloadversions.txt
.Steps To Reproduce
Steps to reproduce the bug:
$ ruby-install ruby 3.2.2
Expected Behavior
Install Ruby 3.2.2.
Actual Behavior
Environment