brianc / node-libpq

Simple, low level native bindings to PostgreSQL's libpq from node.js
112 stars 42 forks source link

Added Linux build configuration. #14

Closed katucker closed 9 years ago

katucker commented 9 years ago

Modified binding.gyp to find the pg_config command. Different Linux distributions and PostgreSQL distributions complicate finding the pg_config command, and don't always put it in the default PATH, so this change helps compensate by explicitly searching for the command where it is likely to be installed.

katucker commented 9 years ago

Note, I tested the changes on a couple different releases of Ubuntu and CentOS Linux, and versions of PostgreSQL from 9.0 through 9.4. Passes all tests in the package.

brianc commented 9 years ago

Thanks @katucker - That's definitely better! Really appreciate it! :heart:

brianc commented 9 years ago

Thanks @katucker - this is a big improvement! Very much appreciated. I'll push a new patch version to npm with these fixes.