Skip to content

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

@xuqinghan

Description

@xuqinghan

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions