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 工作正常,但是当我迁移 rake db:migrate 时,它会出现错误,需要安装 pg 客户端。我需要在哪里安装pg客户端?任何帮助
在基于 Debian 的系统上,PostgreSQL 客户端程序由postgresql-客户端-通用作为符号链接/usr/share/postgresql-common/pg_wrapper
.
如果您安装该软件包并尝试使用任何 PostgreSQL 客户端程序,例如psql, pg_dump, pg_dumpall, and pg_恢复, the pg_包装器没有安装特定于版本的二进制包,例如postgresql-client-9.1它会发出这个错误:
您必须至少安装一个 postgresql-client- 软件包
解决这个问题最简单的方法是安装postgresql 客户端元包。它始终取决于基于 Debian 的系统上当前支持的 PostgreSQL 数据库客户端包,并且取决于 postgresql-client-common
sudo apt-get install postgresql-client
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)