Re: [Puppet Users] `require': cannot load such file -- puppet/util/command_line (LoadError)

5,220 views
Skip to first unread message

Felix Frank

unread,
Jul 20, 2012, 8:09:24 AM7/20/12
to puppet...@googlegroups.com
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 error

hmm, 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

ColinDNZ

unread,
Aug 5, 2012, 6:30:58 AM8/5/12
to puppet...@googlegroups.com
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...





ColinDNZ

unread,
Aug 6, 2012, 5:49:37 PM8/6/12
to puppet...@googlegroups.com
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

Reply all
Reply to author
Forward
0 new messages