Linas Vainoras
Linas Vainoras

Reputation: 79

There was an error in your Gemfile, and Bundler cannot continue

After upgrading Rails to 3.2.8 I am getting this error when creating a new app:

/usr/lib/ruby/gems/1.8/gems/bundler-1.2.0/lib/bundler/source.rb:271: uninitialized constant Bundler::GemInstaller (NameError)
   /usr/lib/ruby/gems/1.8/gems/bundler-1.2.0/lib/bundler/dsl.rb:21:in `initialize'
   /usr/lib/ruby/gems/1.8/gems/bundler-1.2.0/lib/bundler/dsl.rb:6:in `new'
   /usr/lib/ruby/gems/1.8/gems/bundler-1.2.0/lib/bundler/dsl.rb:6:in `evaluate'
   /usr/lib/ruby/gems/1.8/gems/bundler-1.2.0/lib/bundler/definition.rb:18:in `build'
   /usr/lib/ruby/vendor_ruby/bundler.rb:136:in `definition'
   /usr/lib/ruby/vendor_ruby/bundler/cli.rb:222:in `install'
   /usr/lib/ruby/vendor_ruby/bundler/vendor/thor/task.rb:22:in `send'
   /usr/lib/ruby/vendor_ruby/bundler/vendor/thor/task.rb:22:in `run'
   /usr/lib/ruby/vendor_ruby/bundler/vendor/thor/invocation.rb:118:in `invoke_task'
   /usr/lib/ruby/vendor_ruby/bundler/vendor/thor.rb:246:in `dispatch'
   /usr/lib/ruby/vendor_ruby/bundler/vendor/thor/base.rb:389:in `start'
   /usr/lib/ruby/gems/1.8/gems/bundler-1.2.0/bin/bundle:14
   /usr/lib/ruby/gems/1.8/gems/bundler-1.2.0/lib/bundler/friendly_errors.rb:4:in `with_friendly_errors'
   /usr/lib/ruby/gems/1.8/gems/bundler-1.2.0/bin/bundle:14

There was an error in your Gemfile, and Bundler cannot continue.

Upvotes: 3

Views: 3207

Answers (1)

Martin Carpenter
Martin Carpenter

Reputation: 5951

I downgraded bundler to 1.1.5 to "solve" this:

gem uninstall bundler
gem install bundler -v 1.1.5

Upvotes: 2

Related Questions