Amazon this week took ruby1.8 out of their Amazon Linux distro.

Only ruby2.0 is installed.

After installing the puppetlabs yum repo package, and then yum install
puppet, I have this error:

# puppet agent -t
/usr/share/ruby/vendor_ruby/2.0/rubygems/core_ext/kernel_require.rb:55:in
`require': cannot load such file -- puppet/util/command_line (LoadError)
        from
/usr/share/ruby/vendor_ruby/2.0/rubygems/core_ext/kernel_require.rb:55:in
`require'
        from /usr/bin/puppet:3:in `<main>'

If I install ruby18, I can get things working again, but puppet's web page
says ruby 2.0 is perfectly supported.

I note that the puppetlabs puppet RPM installs a TON of stuff in
/usr/lib/ruby/site_ruby/1.8 but there's no corresponding 'stuff' for 2.0.
Specifically, the 'command_line' bit certainly is only in the 1.8 path...

Any insights would be deeply appreciated.

(and yes, I could install 1.8, set alternatives to use 1.8, etc, but I'd
rather not bother)

System details:

# rpm -qa | grep puppet
puppetlabs-release-6-10.noarch
puppet-3.4.3-1.el6.noarch

# rpm -qa | grep ruby
rubygems20-2.0.14-1.14.amzn1.noarch
ruby-shadow-1.4.1-15.5.amzn1.x86_64
libselinux-ruby-2.1.10-3.17.amzn1.x86_64
ruby20-libs-2.0.0.451-1.14.amzn1.x86_64
ruby-rgen-0.6.5-2.el6.noarch
rubygem20-psych-2.0.0-1.14.amzn1.x86_64
rubygem20-rdoc-4.0.1-2.18.amzn1.noarch
ruby-2.0-0.3.amzn1.noarch
rubygem20-bigdecimal-1.2.0-1.14.amzn1.x86_64
ruby-augeas-0.4.1-1.6.amzn1.x86_64
rubygem20-json-1.7.7-101.27.amzn1.x86_64
ruby20-irb-2.0.0.451-1.14.amzn1.noarch
ruby20-2.0.0.451-1.14.amzn1.x86_64
ruby18-libs-1.8.7.374-2.42.3.amzn1.x86_64
rubygem-json-2.0-0.3.amzn1.noarch

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/CAChvjRAzPFqP%3D05YOXj1sgpeEiPr_4ee%3DUi%2BV_sqZG4SRQzxvw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to