ColinDNZ
2012-Jul-19 02:01 UTC
[Puppet Users] `require'': cannot load such file -- puppet/util/command_line (LoadError)
Hi all in a VM running openSUSE 12.1 (x86_64) trying to play with puppet produces this error # ruby --version ruby 1.9.3p0 (2011-10-30 revision 33570) [x86_64-linux] # puppet --version /usr/local/lib64/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'': cannot load such file -- puppet/util/command_line (LoadError) from /usr/local/lib64/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'' from /usr/bin/puppet:3:in `<main>'' don''t know what (or how I''ve stuffed up) but I cannot find the "puppet/application" dir anywhere tried zypper remove puppet ( & puppet-server) and reinstalling, but still produces same error any thoughts, ideas, pointers would be helpful... have googled for this error in google groups newbie with ruby & puppet relative newbie with linux very comp literate otherwise TiA ColinDNZ -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To view this discussion on the web visit https://groups.google.com/d/msg/puppet-users/-/mezImEFmjysJ. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Felix Frank
2012-Jul-20 12:09 UTC
Re: [Puppet Users] `require'': cannot load such file -- puppet/util/command_line (LoadError)
Hi, On 07/19/2012 04:01 AM, ColinDNZ wrote:> # puppet --version > /usr/local/lib64/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'': > cannot load such file -- puppet/util/command_line (LoadError) > from > /usr/local/lib64/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'' > from /usr/bin/puppet:3:in `<main>'' > > don''t know what (or how I''ve stuffed up) > but I cannot find the "puppet/application" dir anywhere > tried zypper remove puppet ( & puppet-server) > and reinstalling, > but still produces same errorhmm, I''m neither really familiar with opensuse nor am I very knowledgeable about ruby, but it strikes me as odd that custom_require.rb is being used from a rubygems location, even though puppet is not installed as a gem but via zypper instead. Make sure there are no gem issues with your ruby installation. If this does not help, I''d scrutinize environment variables that pertain to ruby, such as RUBYLIB. Try the manpages and look through the various lib locations in your system. HTH, Felix -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
ColinDNZ
2012-Aug-05 10:30 UTC
Re: [Puppet Users] `require'': cannot load such file -- puppet/util/command_line (LoadError)
Ok, I found /usr/src/puppet/lib/puppet/util/ so how does puppet "know" where to look for .../util/? can I just "move" .../util/ down two levels alongside the .../lib/ dir? its obviously NOT finding it now...>-- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To view this discussion on the web visit https://groups.google.com/d/msg/puppet-users/-/bCJ1Iv4HSI4J. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Gerard Kok
2012-Aug-05 11:13 UTC
Re: [Puppet Users] `require'': cannot load such file -- puppet/util/command_line (LoadError)
I debugged the same error on OS X two weeks ago, so let me try to apply the knowledge I gained to Opensuse. The file puppet cannot find is /usr/lib64/ruby/vendor_ruby/1.8/puppet/util/command_line.rb, which I was able to fix by setting RUBYLIB (I''m Ruby newbie too, but in this case I suppose ''/usr/lib64/ruby/vendor_ruby/1.8'' would be a good value). That said, it looks like puppet is installed for Ruby 1.8, and you''re running Ruby 1.9, so I''m not sure if you can mix Ruby versions like this. If it doesn''t work, you might try to remove Ruby 1.9 and install Ruby 1.8 (it should be in the base 12.1 distribution). -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To view this discussion on the web visit https://groups.google.com/d/msg/puppet-users/-/XVmOIvN0DJMJ. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
ColinDNZ
2012-Aug-06 21:49 UTC
Re: [Puppet Users] `require'': cannot load such file -- puppet/util/command_line (LoadError)
from my reading of the doco or source code It appears puppet tries to replace the custom_require file from ruby, with one of its own, which is what it can''t find, the one in the puppet/util/command_line dir from my inexperience, I can''t tell weither ( or how ) I should tell puppet or ruby where to find it... logic should tell me which one but I just don''t know enuff about how either works to ask the right question to make that decision, yet... any pointers would be helpful TiA ColinDNZ -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To view this discussion on the web visit https://groups.google.com/d/msg/puppet-users/-/jU9AeDJtUPIJ. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
dvalverdenieto@danielcastelao.org
2013-May-13 10:46 UTC
[Puppet Users] Re: `require'': cannot load such file -- puppet/util/command_line (LoadError)
I know this thread is kinda old, but i had the same issue and maybe someone still getting it, so i found a way to still working. As Gerard said, this comes when puppet is installed for ruby 1.8 and you are running 1.9. I tried to update-alternatives and set it to 1.8, but it still crashing, reinstall whole ruby, install only 1.8, and still crashing, so i directly went to /usr/bin/puppet, and in the first lane: - #!/usr/bin/ruby1.9.1 + #!/usr/bin/ruby1.8 Apparently, it works fine, i didn''t get further problems with this. Sorry if i wrote something wrong. Cheers -- 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?hl=en. For more options, visit https://groups.google.com/groups/opt_out.