Closed sethvargo closed 4 years ago
Is there a way to force ruby-install to use curl instead of wget?
I removed wget
from my path and it worked successfully. It would be nice to be able to force curl
with a CLI flag or something. Also a --verbose or similar flag might have helped debug this more.
Maybe it is not the right response ... but I had similar issue then I updated the package wget and all worked...
Hi both, macOS Catalina doesn’t come with wget
. How did you installed your wget?
Hi @FranklinYu I installed it with brew:
brew install wget
More info about brew please visit https://brew.sh/
In my case, upgrading wget did the trick
brew upgrade wget
Can confirm that brew upgrade wget
solved it for me as well.
Mine looked similar to the initial errors shown above at first, but quite different when I looked at wget
itself. Upgrading with brew upgrade wget
fixed my broken install, and seems to work properly now.
In case it helps anyone else, wget output looked like this:
⇒ wget --version
dyld: Library not loaded: /usr/local/opt/openssl/lib/libssl.1.0.0.dylib
Referenced from: /usr/local/bin/wget
Reason: image not found
zsh: abort wget --version
Can't reproduce this anyone.
From reading all the reports above, the root cause seems like Homebrew messing up their wget from time to time. (My wget installed by MacPorts never hit this issue.) I guess it’s more useful to report the issue to them, given that the issue can be reproduced by a stand-alone wget command.
In my case, upgrading wget did the trick
brew upgrade wget
This worked for me too
I removed
wget
from my path and it worked successfully. It would be nice to be able to forcecurl
with a CLI flag or something. Also a --verbose or similar flag might have helped debug this more.
I had to use this tip to resolve my issue. I am on MacOS Monterey 12.6. installing wget or upgrade wget didn't help.
echo "check_certificate=off" >> ~/.wgetrc
(Very similar to https://github.com/postmodern/ruby-install/issues/261)
Both
curl
andwget
are installed from homebrew:Visiting in the browser works fine
Doing a regular
curl
works fine:Running the
curl
command in #261 works:Doing a regular
wget
fails:Running the
wget
command in #261 fails:Unlike #261, I'm on a Mac, Catalina 10.15.2 (19C57).
I also tried re-installing ruby-install from head and the same issue occurs.