[chef] Re: Re: Re: Re: Ruby search path?


Chronological Thread 
  • From: "Mark J. Reed" < >
  • To:
  • Subject: [chef] Re: Re: Re: Re: Ruby search path?
  • Date: Tue, 12 Jul 2011 12:46:08 -0400

On Mon, Jul 11, 2011 at 10:53 AM, ItsMikeE < "> > wrote:
When I start up the chef server I get the error message

"/opt/chef/local/lib/ruby/site_ruby/1.8/gems/gems/chef-server-api-0.10.0/config/init.rb:20:in
`require': no such file to load -- merb-assets (LoadError)"

I can change directory to the directory containing merb-assets
(/opt/chef/local/lib/ruby/site_ruby/1.8/gems/gems/merb-assets-1.1.3/lib/) and

gems/gems?  Is that a typo?
 
gem env shows the path to be
 - GEM PATHS:
    - /opt/chef/local/lib/ruby/site_ruby/1.8/gems
    - /opt/chef/local/lib/ruby/site_ruby/1.8/gems/bin

so why does it not pick up the location of merb-assets?

Assuming gems/gems was a typo, I don't know.

gem which merb-assets works fine

Even when you haven't changed directories first?

, giving me
/opt/chef/local/lib/ruby/site_ruby/1.8/gems/gems/merb-assets-1.1.3/lib/merb-assets

Surely that would be "merb-assets.rb", not just "merb-assets"?  And you have "gems/gems" again.

If you're copying and pasting, the extra 'gems' directory is probably your problem.  If you're not using copy/paste . . .  why aren't you using copy/paste?

--
Mark J. Reed < "> >




Archive powered by MHonArc 2.6.16.

§