brianc / node-pg-native

Native (C/C++) bindings to PostgreSQL with sync and async options.
247 stars 44 forks source link

pre-buit version #118

Closed dberardo-com closed 1 year ago

dberardo-com commented 1 year ago

is it possible to install a pre-built version of this package without the need of adding all requirements (make, g++, etc .. ) ?

if not, is it possible to build the package and then remove the dependencies, such as g++, etc after it has been built ? what would need to remain on the machine in order fr this lib to work ? i assume that:

can this work ?

background: trying to use this module in a docker container

charmander commented 1 year ago
dberardo-com commented 1 year ago

thanks for the answer. i assume therefore that it is enough to have only libpq installed on the node, and copy over the node_modules folder, for the pg-native package to run.

so my indication above was correct, except that instead of install postgresql-client, one needs libpq

right ?

dberardo-com commented 1 year ago

this should be the case indeed: https://github.com/brianc/node-pg-native/issues/72#issuecomment-883987543