Installing postgres gem when database is on a different server

后端 未结 1 1762
温柔的废话
温柔的废话 2021-01-12 15:12

My database is on a different server to the application. When I run \"bundle\" I get the following error:

No pg_config... trying anyway. If building f

相关标签:
1条回答
  • 2021-01-12 15:31

    The Ruby PostgreSQL interface (AKA the pg gem) is just a thin wrapper around the PostgreSQL client C libraries. You need to install the PostgreSQL client libraries and headers or you can't install the pg gem. You don't need a whole PostgreSQL installation on your app server, just the client development libraries, the package is probably called something like "libpg-dev" or "libpq-dev".

    0 讨论(0)
提交回复
热议问题