imathis/octopress — Issue #250: Gemfile.lock is using a different version of Rake than Gemfile
Author: andrewhavens
Created: 2011-10-27 04:12:30+00:00
State: open

When you clone and install for the first time you will run into this error:

```
$ rake install
rake aborted!
You have already activated rake 0.9.2.2, but your Gemfile requires rake 0.9.2. Using bundle exec may solve this.
```

I could have avoided this error by running `bundle exec rake install`, but that may not really be the correct solution to this issue. I noticed that in the Gemfile, no version number is specified for rake, so when I ran bundle install, it installed rake 0.9.2 (not sure why it didn't install 0.9.2.2).

Since the Gemfile.lock is in version control, it's going to force me to use the specific version number specified in the lock file. I ran `bundle update` and saw `Using rake (0.9.2.2)` so I must have already had it installed.

Not really sure what the right solution is here. Probably one of the following:

- Update the documentation to say `bundle exec rake install`
- Update the Gemfile.lock with `bundle update`
- Specify the gem version numbers in the Gemfile