Created
January 11, 2012 21:08
-
-
Save tanordheim/1596772 to your computer and use it in GitHub Desktop.
Error when using Chef-gem in Rails3.1.3
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| source 'http://rubygems.org' | |
| gem 'rails', '3.1.3' | |
| # Bundle edge Rails instead: | |
| # gem 'rails', :git => 'git://github.com/rails/rails.git' | |
| gem 'sqlite3' | |
| gem 'json' | |
| # Gems used only for assets and not required | |
| # in production environments by default. | |
| group :assets do | |
| gem 'sass-rails', '~> 3.1.5' | |
| gem 'coffee-rails', '~> 3.1.1' | |
| gem 'uglifier', '>= 1.0.3' | |
| end | |
| gem 'jquery-rails' | |
| gem 'chef' | |
| # To use ActiveModel has_secure_password | |
| # gem 'bcrypt-ruby', '~> 3.0.0' | |
| # Use unicorn as the web server | |
| # gem 'unicorn' | |
| # Deploy with Capistrano | |
| # gem 'capistrano' | |
| # To use debugger | |
| # gem 'ruby-debug' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| % bundle exec rails c | |
| /Users/trond/.rvm/gems/ruby-1.9.2-p290@temp-chef-test/gems/chef-0.8.10/lib/chef/provider/package/dpkg.rb:26:in `<class:Package>': uninitialized constant Chef::Provider::Package::Apt (NameError) | |
| from /Users/trond/.rvm/gems/ruby-1.9.2-p290@temp-chef-test/gems/chef-0.8.10/lib/chef/provider/package/dpkg.rb:25:in `<class:Provider>' | |
| from /Users/trond/.rvm/gems/ruby-1.9.2-p290@temp-chef-test/gems/chef-0.8.10/lib/chef/provider/package/dpkg.rb:24:in `<class:Chef>' | |
| from /Users/trond/.rvm/gems/ruby-1.9.2-p290@temp-chef-test/gems/chef-0.8.10/lib/chef/provider/package/dpkg.rb:23:in `<top (required)>' | |
| from /Users/trond/.rvm/gems/ruby-1.9.2-p290@temp-chef-test/gems/chef-0.8.10/lib/chef/platform.rb:24:in `require' | |
| from /Users/trond/.rvm/gems/ruby-1.9.2-p290@temp-chef-test/gems/chef-0.8.10/lib/chef/platform.rb:24:in `block in <top (required)>' | |
| from /Users/trond/.rvm/gems/ruby-1.9.2-p290@temp-chef-test/gems/chef-0.8.10/lib/chef/platform.rb:24:in `each' | |
| from /Users/trond/.rvm/gems/ruby-1.9.2-p290@temp-chef-test/gems/chef-0.8.10/lib/chef/platform.rb:24:in `<top (required)>' | |
| from /Users/trond/.rvm/gems/ruby-1.9.2-p290@temp-chef-test/gems/chef-0.8.10/lib/chef/provider/package.rb:23:in `require' | |
| from /Users/trond/.rvm/gems/ruby-1.9.2-p290@temp-chef-test/gems/chef-0.8.10/lib/chef/provider/package.rb:23:in `<top (required)>' | |
| from /Users/trond/.rvm/gems/ruby-1.9.2-p290@temp-chef-test/gems/chef-0.8.10/lib/chef/provider/package/apt.rb:19:in `require' | |
| from /Users/trond/.rvm/gems/ruby-1.9.2-p290@temp-chef-test/gems/chef-0.8.10/lib/chef/provider/package/apt.rb:19:in `<top (required)>' | |
| from /Users/trond/.rvm/gems/ruby-1.9.2-p290@temp-chef-test/gems/chef-0.8.10/lib/chef/resource/apt_package.rb:20:in `require' | |
| from /Users/trond/.rvm/gems/ruby-1.9.2-p290@temp-chef-test/gems/chef-0.8.10/lib/chef/resource/apt_package.rb:20:in `<top (required)>' | |
| from /Users/trond/.rvm/gems/ruby-1.9.2-p290@temp-chef-test/gems/chef-0.8.10/lib/chef/recipe.rb:21:in `require' | |
| from /Users/trond/.rvm/gems/ruby-1.9.2-p290@temp-chef-test/gems/chef-0.8.10/lib/chef/recipe.rb:21:in `block in <top (required)>' | |
| from /Users/trond/.rvm/gems/ruby-1.9.2-p290@temp-chef-test/gems/chef-0.8.10/lib/chef/recipe.rb:21:in `each' | |
| from /Users/trond/.rvm/gems/ruby-1.9.2-p290@temp-chef-test/gems/chef-0.8.10/lib/chef/recipe.rb:21:in `<top (required)>' | |
| from /Users/trond/.rvm/gems/ruby-1.9.2-p290@temp-chef-test/gems/chef-0.8.10/lib/chef/cookbook.rb:23:in `require' | |
| from /Users/trond/.rvm/gems/ruby-1.9.2-p290@temp-chef-test/gems/chef-0.8.10/lib/chef/cookbook.rb:23:in `<top (required)>' | |
| from /Users/trond/.rvm/gems/ruby-1.9.2-p290@temp-chef-test/gems/chef-0.8.10/lib/chef/cookbook_loader.rb:22:in `require' | |
| from /Users/trond/.rvm/gems/ruby-1.9.2-p290@temp-chef-test/gems/chef-0.8.10/lib/chef/cookbook_loader.rb:22:in `<top (required)>' | |
| from /Users/trond/.rvm/gems/ruby-1.9.2-p290@temp-chef-test/gems/chef-0.8.10/lib/chef/mixin/find_preferred_file.rb:19:in `require' | |
| from /Users/trond/.rvm/gems/ruby-1.9.2-p290@temp-chef-test/gems/chef-0.8.10/lib/chef/mixin/find_preferred_file.rb:19:in `<top (required)>' | |
| from /Users/trond/.rvm/gems/ruby-1.9.2-p290@temp-chef-test/gems/chef-0.8.10/lib/chef.rb:27:in `require' | |
| from /Users/trond/.rvm/gems/ruby-1.9.2-p290@temp-chef-test/gems/chef-0.8.10/lib/chef.rb:27:in `block in <top (required)>' | |
| from /Users/trond/.rvm/gems/ruby-1.9.2-p290@temp-chef-test/gems/chef-0.8.10/lib/chef.rb:27:in `each' | |
| from /Users/trond/.rvm/gems/ruby-1.9.2-p290@temp-chef-test/gems/chef-0.8.10/lib/chef.rb:27:in `<top (required)>' | |
| from /Users/trond/.rvm/gems/ruby-1.9.2-p290@global/gems/bundler-1.0.21/lib/bundler/runtime.rb:68:in `require' | |
| from /Users/trond/.rvm/gems/ruby-1.9.2-p290@global/gems/bundler-1.0.21/lib/bundler/runtime.rb:68:in `block (2 levels) in require' | |
| from /Users/trond/.rvm/gems/ruby-1.9.2-p290@global/gems/bundler-1.0.21/lib/bundler/runtime.rb:66:in `each' | |
| from /Users/trond/.rvm/gems/ruby-1.9.2-p290@global/gems/bundler-1.0.21/lib/bundler/runtime.rb:66:in `block in require' | |
| from /Users/trond/.rvm/gems/ruby-1.9.2-p290@global/gems/bundler-1.0.21/lib/bundler/runtime.rb:55:in `each' | |
| from /Users/trond/.rvm/gems/ruby-1.9.2-p290@global/gems/bundler-1.0.21/lib/bundler/runtime.rb:55:in `require' | |
| from /Users/trond/.rvm/gems/ruby-1.9.2-p290@global/gems/bundler-1.0.21/lib/bundler.rb:122:in `require' | |
| from /Users/trond/tmp/chef-test/config/application.rb:7:in `<top (required)>' | |
| from /Users/trond/.rvm/gems/ruby-1.9.2-p290@temp-chef-test/gems/railties-3.1.3/lib/rails/commands.rb:38:in `require' | |
| from /Users/trond/.rvm/gems/ruby-1.9.2-p290@temp-chef-test/gems/railties-3.1.3/lib/rails/commands.rb:38:in `<top (required)>' | |
| from script/rails:6:in `require' | |
| from script/rails:6:in `<main>' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
the following works for me
can probably be '~> 0.8.14' (http://tickets.opscode.com/browse/CHEF-1158?page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#issue-tabs)
gem 'chef', '~> 0.10.8'