Ruby on Rails on Ubuntu is killing me

24 Mar 2012

I did `bundle install` and it still threw an error that it couldn't find other gems. What the fuck was happening?

I cannot solve this problem.

A workaround is to install gems in a relative path instead. So, here is what I did:

bundle install --binstubs=.bundle/bin --path=.bundle/gems

And do not forget to modify PATH and GEM_PATH to point to those relative paths.

Therefore, you should add these lines to your `~/.bashrc`:

PATH=$PATH:.bundle/bin GEM_PATH=$GEM_PATH:.bundle/gems

And when you want to run the Rails server, please use:

bundle exec rails server