postgresqlbundle-install

Bundle install ignores pg gem


When I type, "gem install pg", I get a message that the gem is installed along with the documenation.

But when I put "gem 'pg'" in the gemfile, and type "bundle install", it says that the bundle is complete. However if I type "bundle show pg", it says that it cannot find 'pg' in the current bundle. Accordingly, a command like "rake db:create:all", gives back, "no such file to load -- pg"

I am running on Ubuntu 11.04, Rails 3.0.11 and ruby 1.9.2.

Chris


Solution

  • I managed to fix this by deleting my Gemfile.lock and then running bundle install again. I am not sure why this works.