Created
June 11, 2019 21:09
-
-
Save RoUS/3c4ca47a971ed0bd4d2b86d501eb1dbf to your computer and use it in GitHub Desktop.
Fedora 29, ruby-2.5.5 - gem command fails
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Fedora 29 | |
# rpm -q ruby rubygems | |
ruby-2.5.5-101.fc29.x86_64 | |
rubygems-2.7.6.2-101.fc29.noarch | |
# which gem | |
/usr/bin/gem | |
[root@Helium etc]# gem | |
/usr/share/ruby/yaml.rb:5: warning: It seems your ruby installation is missing psych (for YAML output). | |
To eliminate this warning, please install libyaml and reinstall your ruby. | |
Traceback (most recent call last): | |
16: from /usr/bin/gem:21:in `<main>' | |
15: from /usr/share/rubygems/rubygems/gem_runner.rb:44:in `run' | |
14: from /usr/share/rubygems/rubygems/gem_runner.rb:79:in `do_configuration' | |
13: from /usr/share/rubygems/rubygems/gem_runner.rb:79:in `new' | |
12: from /usr/share/rubygems/rubygems/config_file.rb:202:in `initialize' | |
11: from /usr/share/rubygems/rubygems/config_file.rb:349:in `load_file' | |
10: from /usr/share/rubygems/rubygems.rb:709:in `load_yaml' | |
9: from /usr/share/rubygems/rubygems/core_ext/kernel_require.rb:59:in `require' | |
8: from /usr/share/rubygems/rubygems/core_ext/kernel_require.rb:59:in `require' | |
7: from /usr/share/ruby/yaml.rb:6:in `<top (required)>' | |
6: from /usr/share/rubygems/rubygems/core_ext/kernel_require.rb:59:in `require' | |
5: from /usr/share/rubygems/rubygems/core_ext/kernel_require.rb:59:in `require' | |
4: from /usr/local/share/gems/gems/psych-3.1.0/lib/psych.rb:13:in `<top (required)>' | |
3: from /usr/local/share/gems/gems/psych-3.1.0/lib/psych.rb:16:in `rescue in <top (required)>' | |
2: from /usr/share/rubygems/rubygems/core_ext/kernel_require.rb:39:in `require' | |
1: from /usr/share/rubygems/rubygems/core_ext/kernel_require.rb:135:in `rescue in require' | |
/usr/share/rubygems/rubygems/core_ext/kernel_require.rb:135:in `require': libruby.so.2.4: cannot open shared object file: No such file or directory - /usr/local/lib64/gems/ruby/psych-3.1.0/psych.so (LoadError) | |
I have re-installed libyaml, ruby, rubygems, and ruby-libs, with no change in behaviour. | |
File libruby.so.2.4 doesn't exist anywhere. No Fedora package seems to provide it, nor does any provide /usr/local/lib64/gems/ruby/psych-3.1.0/psych.so. | |
And with `gem` not working, I seem to be Catch-22ed. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment