- Ubuntu
- Package management
- here
Installing libpq-dev-PostgreSQL client headers and libraries
Install "libpq-dev" including the PostgreSQL client headers and libraries with the apt command.
libpq-dev is required to install DBD::Pg to connect to the PostgreSQL server from DBI in Perl.
sudo apt install -y libpq-dev
For the location of the installed PostgreSQL client header files and libraries, see Header file read path and Library loading path.