Julian Simpson <[email protected]> writes:
> Specifically, trying to run 'rake spec' I get this error:
>
>> dan...@krosp:~/software/puppet/puppet$ rake spec (in
>> /home/daniel/software/puppet/puppet) /usr/lib/ruby/1.8/rubygems.rb:777:in
>> report_activate_error': Could not find RubyGem rspec (= 1.2.9)
>> (Gem::LoadError)        from /usr/lib/ruby/1.8/rubygems.rb:211:in `activate'
>>        from /usr/lib/ruby/1.8/rubygems.rb:1056:in `gem'        from
>> ./spec/unit/../spec_helper.rb:21 [...]         from /usr/bin/spec:3
>> 
>> I do have rspec 1.2.9 installed, through the Debian package, but this
>> doesn't seem to help any.  Suggestions would be appreciated, ideally without
>> needing to install a second copy of rspec from a gem. :/
>> 
>
> Does spec_helper.rb make any reference to Rubygems?  Seems like it's
> actively looking for a rubygem rather than something on the Ruby load path.

That is part of puppet, and yes:

,----[ puppet/spec/spec_helper.rb ]
| require 'puppettest'
| require 'puppettest/runnable_test'
| require 'mocha'
| gem 'rspec', '=1.2.9'
| require 'spec/autorun'
`----

I thought that Debian had "fixed" the gem stuff to work sensibly when you
installed distribution packages, though.  Perhaps not?

        Daniel
-- 
✣ Daniel Pittman            ✉ [email protected]            ☎ +61 401 155 707
               ♽ made with 100 percent post-consumer electrons

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Developers" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/puppet-dev?hl=en.

Reply via email to