난 그냥 레일 3.1로 업그레이 드하고 Heroku에 배포하려 애쓰는 첫 번째 애플 리케이션은 Postgres 어댑터와 관련된 문제가 발생했습니다. 나는 Heroku가 앱을 밀어 수 있어요하지만 나는 다음과 같은 오류가 데이터베이스를 마이그레이션 할 때 다음 :Rails 3.1 - Heroku로 푸시 - Postgres 어댑터를 설치하는 중 오류가 발생 했습니까?
는에게 Heroku 레이크 dB : 나는 그들의 내가 얻을 설치 제안하려고 할 때
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
? 나는 보석 페이지를 설치하려고하면
내가 얻을 : 나는 현재 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
...
. 어떤 도움이라도 대단히 감사합니다.
heroku run rake db:migrate
을 실행했을 때 어떻게 레일 및 Heroku가 HTTP에 대한 설정의 PostgreSQL을 : //로 robdodson .me/blog/2012/04/27/how-to-setup-postgresql-for-rails-and-heroku/ –