Skip to content

Instantly share code, notes, and snippets.

@citizensmarket
Created February 8, 2011 15:41
Show Gist options
  • Save citizensmarket/816608 to your computer and use it in GitHub Desktop.
Save citizensmarket/816608 to your computer and use it in GitHub Desktop.
sudo chef-client can't find chef gem, and yet there it is!
ruby-1.9.2-p136 ~/code/chef-repo master
sudo chef-client
Password:
/Users/chris/.rvm/rubies/ruby-1.9.2-p136/lib/ruby/site_ruby/1.9.1/rubygems.rb:861:in `report_activate_error': Could not find RubyGem chef (>= 0) (Gem::LoadError)
from /Users/chris/.rvm/rubies/ruby-1.9.2-p136/lib/ruby/site_ruby/1.9.1/rubygems.rb:255:in `activate'
from /Users/chris/.rvm/rubies/ruby-1.9.2-p136/lib/ruby/site_ruby/1.9.1/rubygems.rb:1204:in `gem'
from /Users/chris/.rvm/gems/ruby-1.9.2-p136/bin/chef-client:18:in `<main>'
ruby-1.9.2-p136 ~/code/chef-repo master
gem list chef
*** LOCAL GEMS ***
chef (0.9.12)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment