rro no Heroku ao iniciar o aplicativo rails3.1, faltando o postgres gem

Estou tentando implantar no heroku.

Rails 3.1.0.rc4,

Eu recebo o seguinte erro dos logs do Heroku:

Starting process with command: `thin -p 48902 -e production -R /home/heroku_rack/heroku.ru start`
2011-06-20T11:25:44+00:00 app[web.1]: /app/.bundle/gems/ruby/1.9.1/gems/activerecord-3.1.0.rc4/lib/active_record/connection_adapters/abstract/connection_specification.rb:71:in `rescue in establish_connection': Please install the postgresql adapter: `gem install activerecord-postgresql-adapter` (pg is not part of the bundle. Add it to Gemfile.) (RuntimeError)

Tentei instalar o activerecord-postgresql-adapter, mas então recebo este erro:

Could not find gem 'activerecord-postgresql-adapter (>= 0)' in any of the gem sources listed in your Gemfile.

Então eu tentei adicionar isso ao meu arquivo gem

gem 'pg'

que produziu este erro:

Installing pg (0.11.0) with native extensions /Users/imac/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/site_ruby/1.9.1/rubygems/installer.rb:533:in `rescue in block in build_extensions': ERROR: Failed to build gem native extension. (Gem::Installer::ExtensionBuildError)

alguma ideia

questionAnswers(3)

yourAnswerToTheQuestion