Closed LJNeon closed 4 years ago
When I attempt to install pg-native, I get the following error:
pg-native
make: Entering directory '/home/user/project/node_modules/libpq/build' CXX(target) Release/obj.target/addon/src/connection.o In file included from ../src/connection.cc:1: ../src/addon.h:5:10: fatal error: libpq-fe.h: No such file or directory 5 | #include <libpq-fe.h> | ^~~~~~~~~~~~ compilation terminated. make: *** [addon.target.mk:117: Release/obj.target/addon/src/connection.o] Error 1
I already have PostgreSQL installed, and I'm not sure what other problems would cause a missing header file.
Nevermind, sudo apt install libpq-dev solved the problem for me.
sudo apt install libpq-dev
When I attempt to install
pg-native
, I get the following error:I already have PostgreSQL installed, and I'm not sure what other problems would cause a missing header file.