Rails 3.1にアップグレードしたばかりで、Herokuにデプロイしようとした最初のアプリでPostgresアダプタに関する問題が発生しました。私はHerokuのにアプリをプッシュすることができるよしかし、私は、データベースを移行しようとすると、その後、私は次のエラーを取得:Rails 3.1 - Herokuにプッシュする - postgres adapterをインストールする際のエラー?
Herokuのすくいデシベル:私は彼らの提案私が手をインストールしようとすると
rake aborted!
Please install the postgresql adapter: `gem install activerecord-postgresql-adapter`
(pg is not part of the bundle. Add it to Gemfile.)
Tasks: TOP => db:migrate => db:load_config
(See full trace by running task with --trace)
を移行します:すでに奇妙なようだ...ので、私はこの事は、彼らは私がインストールする必要があります言うことはないに取り組んで取得する正確な何宝石をインストールする必要があります
ERROR: Could not find a valid gem 'activerecord-postgresql-adapter' (>= 0) in any repository
ERROR: Possible alternatives: activerecord-postgis-adapter, activerecord-jdbcpostgresql-adapter, activerecord-postgresql-cursors, activerecord-jdbcmysql-adapter, activerecord-jdbcmssql-adapter
?
私は私が手宝石PGインストールしてみてください:私は現在、SQLite3のを使用してい
Building native extensions. This could take a while...
ERROR: Error installing pg:
ERROR: Failed to build gem native extension.
/Users/jerometufte/.rvm/rubies/ruby-1.9.2-p180/bin/ruby extconf.rb
checking for pg_config... no
No pg_config... trying anyway. If building fails, please try again with
--with-pg-config=/path/to/pg_config
checking for libpq-fe.h... no
Can't find the 'libpq-fe.h header
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of
necessary libraries and/or headers. Check the mkmf.log file for more
details. You may need configuration options.
Provided configuration options:
--with-opt-dir
...
を。どんな助力も大いに感謝しています。これは私を困惑させるものです。
どのようにRailsのためのセットアップのPostgreSQLをすると、Herokuの HTTPを実行したときに
魅力のように働いていた:私はとき
問題は、私の新しいRailsのために離れて3.1アプリを行ってきました.me/blog/2012/04/27/how-to-setup-postgresql-for-rails-and-heroku/ –