pg in run in docker, so host(a Notebook ) is not install pg, but just install libpg-dev
so libpq-fe.h is exists at /usr/include/postgresql
but luasql install can't find it, even set PGSQL_DIR:
sudo luarocks install luasql-postgres PGSQL_DIR=/usr/include/postgresql
Error: Could not find header file for PGSQL
No file libpq-fe.h in /usr/include/postgresql/include
You may have to install PGSQL in your system and/or pass PGSQL_DIR or PGSQL_INCDIR to the luarocks command.
Example: luarocks install luasql-postgres PGSQL_DIR=/usr/local
add a line ?
Example: luarocks install luasql-postgres PGSQL_INCDIR=/usr/include/postgresql PGSQL_LIBDIR=/usr/lib