Robert Logan
2013-Oct-07 15:27 UTC
[Puppet Users] Puppet fails on aws instance using ruby19 yum install
I''ve been trying to use the ruby19 and rubygems19 packages from amazons yum repo but cant get around this issue: [root@ip-10-234-225-44 ~]# puppetd --test /usr/share/rubygems1.9/rubygems/custom_require.rb:36:in `require'': cannot load such file -- puppet/application/agent (LoadError) from /usr/share/rubygems1.9/rubygems/custom_require.rb:36:in `require'' from /usr/sbin/puppetd:3:in `<main>'' The above occurs using the amazon repo puppet install (2.7.23) at time of writing, and the puppetlabs yum repo below is the same .. [root@ip-10-234-225-44 ~]# puppet agent --test /usr/share/rubygems1.9/rubygems/custom_require.rb:36:in `require'': cannot load such file -- puppet/util/command_line (LoadError) from /usr/share/rubygems1.9/rubygems/custom_require.rb:36:in `require'' from /usr/bin/puppet:3:in `<main>'' [root@ip-10-234-225-44 ~]# ruby --version ruby 1.9.3p448 (2013-06-27 revision 41675) [x86_64-linux] [root@ip-10-234-225-44 ~]# ruby -e ''puts $:'' /usr/local/share/ruby19/site_ruby /usr/local/lib64/ruby19/site_ruby /usr/share/ruby/1.9/vendor_ruby /usr/lib64/ruby/1.9/vendor_ruby /usr/share/rubygems1.9 /usr/share/ruby/1.9 /usr/lib64/ruby/1.9 Does anyone have any ideas on this? -- ---------------------------------------------------------------------------------- The information in this email is confidential and may be legally privileged. It is intended solely for the addressee. Access to this email by anyone else is unauthorised. If you are not the intended recipient, any disclosure, copying, distribution or any action taken or omitted to be taken in reliance on it, is prohibited and may be unlawful. Policy Expert is a trading name of QMetric Group Limited who is authorised and regulated by the Financial Services Authority. The registered company address of QMetric Group Limited is: 32-38 Dukes Place, London, EC3A 7LP and its company registration number is 07151701. -- 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 puppet-users+unsubscribe@googlegroups.com. To post to this group, send email to puppet-users@googlegroups.com. Visit this group at http://groups.google.com/group/puppet-users. For more options, visit https://groups.google.com/groups/opt_out.
Glenn Poston
2013-Dec-04 21:01 UTC
[Puppet Users] Re: Puppet fails on aws instance using ruby19 yum install
I''m having the exact same issue. Anyone had success with puppet 3 ruby19 and Amazon linux? Any help? On Monday, October 7, 2013 11:27:41 AM UTC-4, Robert Logan wrote:> > > I''ve been trying to use the ruby19 and rubygems19 packages from amazons > yum repo but cant get around this issue: > > [root@ip-10-234-225-44 ~]# puppetd --test > /usr/share/rubygems1.9/rubygems/custom_require.rb:36:in `require'': cannot > load such file -- puppet/application/agent (LoadError) > from /usr/share/rubygems1.9/rubygems/custom_require.rb:36:in > `require'' > from /usr/sbin/puppetd:3:in `<main>'' > > The above occurs using the amazon repo puppet install (2.7.23) at time of > writing, and the puppetlabs yum repo below is the same .. > > [root@ip-10-234-225-44 ~]# puppet agent --test > /usr/share/rubygems1.9/rubygems/custom_require.rb:36:in `require'': cannot > load such file -- puppet/util/command_line (LoadError) > from /usr/share/rubygems1.9/rubygems/custom_require.rb:36:in > `require'' > from /usr/bin/puppet:3:in `<main>'' > > > [root@ip-10-234-225-44 ~]# ruby --version > ruby 1.9.3p448 (2013-06-27 revision 41675) [x86_64-linux] > [root@ip-10-234-225-44 ~]# ruby -e ''puts $:'' > /usr/local/share/ruby19/site_ruby > /usr/local/lib64/ruby19/site_ruby > /usr/share/ruby/1.9/vendor_ruby > /usr/lib64/ruby/1.9/vendor_ruby > /usr/share/rubygems1.9 > /usr/share/ruby/1.9 > /usr/lib64/ruby/1.9 > > Does anyone have any ideas on this? > > > ---------------------------------------------------------------------------------- > > The information in this email is confidential and may be legally > privileged. It is intended solely for the addressee. Access to this email > by anyone else is unauthorised. If you are not the intended recipient, any > disclosure, copying, distribution or any action taken or omitted to be > taken in reliance on it, is prohibited and may be unlawful. > > Policy Expert is a trading name of QMetric Group Limited who is authorised > and regulated by the Financial Services Authority. The registered company > address of QMetric Group Limited is: 32-38 Dukes Place, London, EC3A 7LP > and its company registration number is 07151701. > >-- 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 puppet-users+unsubscribe@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/0d7b5592-015c-4fb9-ac48-dd6ed86c00b5%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Alexander Gray II
2013-Dec-04 21:29 UTC
[Puppet Users] Re: Puppet fails on aws instance using ruby19 yum install
> > same here. if anyone has an update, please post here. Thanks. >> >-- 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 puppet-users+unsubscribe@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/b8f68f56-16ed-42f5-ab4c-06cbc5359cf3%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Josh Miller
2013-Dec-19 01:01 UTC
[Puppet Users] Re: Puppet fails on aws instance using ruby19 yum install
On Wednesday, December 4, 2013 1:29:25 PM UTC-8, Alexander Gray II wrote:> > same here. if anyone has an update, please post here. Thanks. >>> >>It looks like Amazon recently started providing ruby 1.9 vs 1.8 and puppet is expecting 1.8. I have installed puppet 3.3.2 via the puppetlabs yum repository: # rpm -q puppet puppet-3.3.2-1.el6.noarch # rpm -ql puppet | egrep -i command /usr/lib/ruby/site_ruby/1.8/puppet/provider/command.rb /usr/lib/ruby/site_ruby/1.8/puppet/type/nagios_command.rb /usr/lib/ruby/site_ruby/1.8/puppet/util/command_line /usr/lib/ruby/site_ruby/1.8/puppet/util/command_line.rb /usr/lib/ruby/site_ruby/1.8/puppet/util/command_line/puppet_option_parser.rb /usr/lib/ruby/site_ruby/1.8/puppet/util/command_line/trollop.rb I am working around this temorarily by editing /usr/bin/puppet and changing the first line to: #!/usr/bin/ruby1.8 ...of course, this requires that you have ruby-1.8 installed. -- 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 puppet-users+unsubscribe@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/10f3160f-aeab-47e7-86d9-3f9d069ea28c%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.