Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Using bundle exec may solve this?

Here is my Gemfile

source :rubygems

gem 'rake', '0.9.2.2'
gem 'sinatra'
gem 'activerecord', '3.0.9'
gem 'pg', '~> 0.12.2'
gem 'logger'
gem 'nokogiri'

group :development, :test do
  gem 'rack-test'
  gem 'ruby-debug19'
  gem 'sqlite3'
end

I run rake console which works in other projects and now I get this message:

You have already activated activesupport 3.1.3, but your Gemfile requires activesupport 3.0.9. Using bundle exec may solve this.

How do I use `bundle exec to solve this? What does it mean?

like image 390
alenm Avatar asked Jan 10 '12 20:01

alenm


1 Answers

rubygems-bundler solves this. Run the following commands:

$ gem install rubygems-bundler

$ $ gem regenerate_binstubs

Then try your bundle again.

like image 133
Benjamin Dunphy Avatar answered Oct 11 '22 17:10

Benjamin Dunphy