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 fails, please try again with --with-pg-config=/path/to/pg_config
How do I set the pg config path if pg is not actually installed on the application server? I have also tried:
bundle config build.pg --without-pg_config
Thanks
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".
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With