you rails postgres one must least error ruby-on-rails-3 postgresql heroku

ruby-on-rails-3 - rails - heroku panel



Obtener error: debe instalar al menos un paquete postgresql-client-<versión> cuando se implementa en heroku (1)

En un sistema basado en Debian, postgresql-client-common proporciona los programas de cliente PostreSQL como enlaces simbólicos a /usr/share/postgresql-common/pg_wrapper .

Si instala ese paquete e intenta usar cualquiera de los programas cliente de PostgreSQL como psql , pg_dump , pg_dumpall y pg_restore , pg_wrapper sin tener instalado el paquete binario específico de la versión, como postgresql-client-9.1 , emitirá este error:

Debe instalar al menos un paquete postgresql-client- <versión>

La forma más fácil de solucionar esto es instalar el metapaquete postgresql-client . Siempre depende del paquete de cliente de base de datos actualmente compatible para PostgreSQL en sistemas basados ​​en Debian y depende de postgresql-client-common

sudo apt-get install postgresql-client

sdilshod@sdilshod-Lenovo-B590:~/webapp/saturn$ heroku run rake db:migrate Running `rake db:migrate` attached to terminal... up, run.6194 DEPRECATION WARNING: You have Rails 2.3-style plugins in vendor/plugins! Support for these plugins will be removed in Rails 4.0. Move them out and bundle them in your Gemfile, or fold them in to your app as lib/myplugin/* and config/initializers/myplugin.rb. See the release notes for more on this: http://weblog.rubyonrails.org/2012/1/4/rails-3-2- 0-rc2-has-been-released. (called from <top (required)> at /app/Rakefile:7) DEPRECATION WARNING: You have Rails 2.3-style plugins in vendor/plugins! Support for these plugins will be removed in Rails 4.0. Move them out and bundle them in your Gemfile, or fold them in to your app as lib/myplugin/* and config/initializers/myplugin.rb. See the release notes for more on this: http://weblog.rubyonrails.org/2012/1/4/rails-3-2- 0-rc2-has-been-released. (called from <top (required)> at /app/Rakefile:7) Error: You must install at least one postgresql-client-<version> package. rake aborted! Error dumping database /app/vendor/bundle/ruby/1.9.1/gems/activerecord- 3.2.12/lib/active_record/railties/databases.rake:415:in `block (3 levels) in <top (required)>'' /app/vendor/bundle/ruby/1.9.1/gems/activerecord- 3.2.12/lib/active_record/railties/databases.rake:188:in `block (2 levels) in <top (required)>'' /app/vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.12/lib/active_record/railties/databases.rake:182:in `block (2 levels) in <top (required)>'' Tasks: TOP => db:structure:dump (See full trace by running task with --trace)

heroku pg: psql funciona bien, pero cuando migro rake db: migrate, aparece un error que necesita instalar el cliente pg. ¿Dónde necesito instalar pg client? Alguna ayuda