I\'m trying to run Rails 3 beta 4 & Ruby 1.9.2rc on Ubuntu 10.04. It worked initially, but after doing my first bundle install/package, I now get the following errors in
I've been running into this issue too. It doesn't seem to be related to the specific versions of rails or ruby you mention, which are different than the ones I'm using (Rails 2.3.8, Rake 0.8.7, Ruby 1.9.1p378). It seems to be related to bundler and rake not working well together.
A resolution that worked for me is mentioned at the bottom of this lighthouse ticket. Here is the short version:
Once you do this, you mess up bundler a little bit. At that point you have to clear RUBYOPT in order to run the bundle command:
RUBYOPT= bundle install --relock
EDIT:
Thinking about it a little more, I'm not sure this is necessarily the best way to address this particular issue. You might give Hiral Desai's tip and some other answers a try before resorting to this approach, since this one changes the environment.