Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

can't find "libpq-fe.h" for postgres on ubuntu18.04 #112

Open
xuqinghan opened this issue Apr 13, 2019 · 1 comment
Open

can't find "libpq-fe.h" for postgres on ubuntu18.04 #112

xuqinghan opened this issue Apr 13, 2019 · 1 comment

Comments

@xuqinghan
Copy link

xuqinghan commented Apr 13, 2019

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

@tomasguisasola
Copy link
Contributor

tomasguisasola commented Apr 14, 2019 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants