-
-
Notifications
You must be signed in to change notification settings - Fork 12.7k
Upgrading to Ruby 2.4.1_1 breaks gem command. #11636
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
maybe
|
@ilovezfs Thanks for the suggestion, but it still didn't resolve the issue, throwing the same error. |
what command are you running |
I followed your steps for removing and installing Ruby, and I tried any |
looks fine here starting from clean install: https://gist.github.com/ilovezfs/48a77d39c08220f34d9e8ead7d51656b so not sure what to tell you |
Strange. I tried with ruby@2.3, and it is working without any problem. But as soon as I upgrade it to 2.4.1, the problem pops up again. |
what's output for |
|
Im having the exact same problem. I tried to reinstall both libyaml and ruby, but the error stays the same. I checked if psych is there on my system. Everything seems to be there. But /usr/local/opt/ruby/lib/libruby.2.4.0.dylib from the error message is not there. |
Please try It is most likely a different version of psych is installed by users. However, that version is incorrectly linked to wrong lib file, which should be caused by the incorrect abi_version in #11474 |
This time following psych was referenced:
|
@dorpen What is the error message? Is it a different gem reporting the error? A dramatical solution would be:
However, this would remove all installed rubygems. |
@dorapen Oh, you could remove that file as well. |
@xu-cheng Here's the error message:
|
Oh hey! That solved it! So both:
and
seems to do the trick! Thanks!! |
@Bufallo does that take care of it for you too? |
Yes! |
Perfect. Thanks for the speedy help here @xu-cheng. It's much appreciated. |
Thank you so much for the solution. :) |
Worked for me too! rm -rf /usr/local/lib/ruby/gems/
brew uninstall ruby --ignore-dependencies
brew install ruby |
Thanks so much for this!!! |
@dorapen's solution above worked, thank you so much! |
I've been dealing with the same error and @dorapen's solution worked for me: rm -rf /usr/local/lib/ruby/gems/2.4.0/gems/psych-2.2.4
rm -rf /usr/local/lib/ruby/gems/2.4.0/extensions/x86_64-darwin-16/2.4.0/psych-2.2.4 Thank you!!! |
brew update
and retried your prior step?brew doctor
, fixed as many issues as possible and retried your prior step?After upgrading Ruby to latest 2.4.1_1 formula, gem command no longer works and gives the following error:
I tried both
and
but none of them resolved the issue.
Could anyone help me fix this?
Many thanks.
The text was updated successfully, but these errors were encountered: