Install libpq-dev by entering the following commands in the terminal:
sudo apt update sudo apt install libpq-dev
header files for libpq5 (PostgreSQL library)
Header files and static library for compiling C programs to link with the libpq library in order to communicate with a PostgreSQL database backend. . PostgreSQL is an object-relational SQL database management system.