Get Error: You must install at least one postgresql-client- package when deploy to heroku

后端 未结 2 1019
情书的邮戳
情书的邮戳 2021-01-31 13:14
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 Ra         


        
2条回答
  •  不思量自难忘°
    2021-01-31 13:47

    On a Debian based system the PostreSQL client programs are provided by postgresql-client-common as symbolic links to /usr/share/postgresql-common/pg_wrapper.

    If you install that package and attempt to use any of the PostgreSQL client programs like psql, pg_dump, pg_dumpall, and pg_restore, the pg_wrapper without having the version specific binary package installed, like postgresql-client-9.1 it will emit this error:

    You must install at least one postgresql-client-< version > package

    The easiest way to fix this is to install the postgresql-client metapackage. It always depends on the currently supported database client package for PostgreSQL on Debian based systems and it depends on postgresql-client-common

    sudo apt-get install postgresql-client
    

提交回复
热议问题