Hi,
I rebuilt the ruby-2.0.0.0-6 packages on CentOS 6 (requiring a couple of slight modifications to the spec file) and ran into some trouble:
[pete@centos railstest]$ ./script/rails c
/usr/share/ruby/yaml.rb:6:in `<top (required)>': It seems your ruby installation is missing psych (for YAML output). To eliminate this warning, please install libyaml and reinstall your ruby. /usr/share/ruby/yaml.rb:7:in `require': cannot load such file -- psych (LoadError) from /usr/share/ruby/yaml.rb:7:in `<top (required)>' <snip>
I have all of the relevant packages installed - rubygem-psych, libyaml (from EPEL).
If I run an irb session, it loads correctly:
[pete@centos ~]$ irb irb(main):001:0> require 'yaml' => true
I'm not sure where to look. The load path is identical in both situations (puts $:)
/usr/local/share/ruby/site_ruby /usr/local/lib64/ruby/site_ruby /usr/share/ruby/vendor_ruby /usr/lib64/ruby/vendor_ruby /usr/share/rubygems /usr/share/ruby /usr/lib64/ruby/
Can anyone confirm if this also occurs on the Fedora-built packages, and have any idea as to why this is happening?
Thanks!
Pete
-- Pete Deffendol pete@deffendol.org
Dne 27.3.2013 00:28, Peter Deffendol napsal(a):
Hi,
I rebuilt the ruby-2.0.0.0-6 packages on CentOS 6 (requiring a couple of slight modifications to the spec file) and ran into some trouble:
[pete@centos railstest]$ ./script/rails c
/usr/share/ruby/yaml.rb:6:in `<top (required)>': It seems your ruby installation is missing psych (for YAML output). To eliminate this warning, please install libyaml and reinstall your ruby. /usr/share/ruby/yaml.rb:7:in `require': cannot load such file -- psych (LoadError) from /usr/share/ruby/yaml.rb:7:in `<top (required)>'
<snip>
I have all of the relevant packages installed - rubygem-psych, libyaml (from EPEL).
If I run an irb session, it loads correctly:
[pete@centos ~]$ irb irb(main):001:0> require 'yaml' => true
I'm not sure where to look. The load path is identical in both situations (puts $:)
/usr/local/share/ruby/site_ruby /usr/local/lib64/ruby/site_ruby /usr/share/ruby/vendor_ruby /usr/lib64/ruby/vendor_ruby /usr/share/rubygems /usr/share/ruby /usr/lib64/ruby/
Can anyone confirm if this also occurs on the Fedora-built packages, and have any idea as to why this is happening?
This seems to be Bundler issue IMO. You should add Psych into your Gemfile.
Vít.
On Mar 27, 2013, at 2:10 AM, Vít Ondruch vondruch@redhat.com wrote:
This seems to be Bundler issue IMO. You should add Psych into your Gemfile.
Thanks Vit - I had that thought as well. However, I get a slightly different message after adding "gem 'psych'" to the Gemfile, running "bundle install", and then trying the Rails console:
[pete@centos yamltest]$ ./script/rails c /usr/share/ruby/yaml.rb:6:in `<top (required)>': It seems your ruby installation is missing psych (for YAML output). To eliminate this warning, please install libyaml and reinstall your ruby. /usr/share/gems/gems/psych-2.0.0/lib/psych.rb:1:in `require': cannot load such file -- psych.so (LoadError)
Pete
-- Pete Deffendol pete@deffendol.org
Dne 27.3.2013 14:35, Peter Deffendol napsal(a):
On Mar 27, 2013, at 2:10 AM, Vít Ondruch <vondruch@redhat.com mailto:vondruch@redhat.com> wrote:
This seems to be Bundler issue IMO. You should add Psych into your Gemfile.
Thanks Vit - I had that thought as well. However, I get a slightly different message after adding "gem 'psych'" to the Gemfile, running "bundle install", and then trying the Rails console:
[pete@centos yamltest]$ ./script/rails c /usr/share/ruby/yaml.rb:6:in `<top (required)>': It seems your ruby installation is missing psych (for YAML output). To eliminate this warning, please install libyaml and reinstall your ruby. /usr/share/gems/gems/psych-2.0.0/lib/psych.rb:1:in `require': cannot load such file -- psych.so (LoadError)
You must use Fedora's Bundler. It is due to filesystem layout.
Vít
Pete
-- Pete Deffendol pete@deffendol.org mailto:pete@deffendol.org
ruby-sig mailing list ruby-sig@lists.fedoraproject.org https://admin.fedoraproject.org/mailman/listinfo/ruby-sig
On Mar 27, 2013, at 8:07 AM, Vít Ondruch vondruch@redhat.com wrote:
Dne 27.3.2013 14:35, Peter Deffendol napsal(a):
[pete@centos yamltest]$ ./script/rails c /usr/share/ruby/yaml.rb:6:in `<top (required)>': It seems your ruby installation is missing psych (for YAML output). To eliminate this warning, please install libyaml and reinstall your ruby. /usr/share/gems/gems/psych-2.0.0/lib/psych.rb:1:in `require': cannot load such file -- psych.so (LoadError)
You must use Fedora's Bundler. It is due to filesystem layout.
OK, I tried the patch in the Fedora bundler package. That takes care of it.
Pete
-- Pete Deffendol pete@deffendol.org
Dne 27.3.2013 16:22, Peter Deffendol napsal(a):
On Mar 27, 2013, at 8:07 AM, Vít Ondruch <vondruch@redhat.com mailto:vondruch@redhat.com> wrote:
Dne 27.3.2013 14:35, Peter Deffendol napsal(a):
[pete@centos yamltest]$ ./script/rails c /usr/share/ruby/yaml.rb:6:in `<top (required)>': It seems your ruby installation is missing psych (for YAML output). To eliminate this warning, please install libyaml and reinstall your ruby. /usr/share/gems/gems/psych-2.0.0/lib/psych.rb:1:in `require': cannot load such file -- psych.so (LoadError)
You must use Fedora's Bundler. It is due to filesystem layout.
OK, I tried the patch in the Fedora bundler package. That takes care of it.
Yes, that is another possibility :)
Vít
ruby-sig@lists.fedoraproject.org