Postgresql -bash: psql: command not found

后端 未结 6 2127
借酒劲吻你
借酒劲吻你 2020-12-13 17:39

I have installed PostgreSQL and it is working ok. However, when I went to restore a backup I got the error -bash: psql: command not found:

 [roo         


        
6条回答
  •  庸人自扰
    2020-12-13 18:07

    If you are using the Postgres Mac app (by Heroku) and Bundler, you can add the pg_config directly inside the app, to your bundle.

    bundle config build.pg --with-pg-config=/Applications/Postgres.app/Contents/Versions/9.4/bin/pg_config
    

    ...then run bundle again.

    Note: check the version first using the following.

    ls /Applications/Postgres.app/Contents/Versions/
    

提交回复
热议问题