Skip to content

build postgrest failed with error message setup: The program 'pg_config' is required but it could not be found #15

@hughjfchen

Description

@hughjfchen

I tried to build a fully static linked postgrest binary with this docker image and met following error when
building the postgresql-libpq pacakge:

Failed to build postgresql-libpq-0.9.4.3. The failure occurred during the
configure step.
Build log (
/root/.cabal/logs/ghc-8.8.4/postgresql-libpq-0.9.4.3-7432e0030ca564c2b2e715ebcca1b97ed2ae6fb6b9074429e2384c2bc3647c3b.log
):
[1 of 1] Compiling Main             ( /mnt/dist-newstyle/tmp/src-23/postgresql-libpq-0.9.4.3/dist/setup/setup.hs, /mnt/dist-newstyle/tmp/src-23/postgresql-libpq-0.9.4.3/dist/setup/Main.o )
Linking /mnt/dist-newstyle/tmp/src-23/postgresql-libpq-0.9.4.3/dist/setup/setup ...
Configuring postgresql-libpq-0.9.4.3...
setup: The program 'pg_config' is required but it could not be found.

cabal: Failed to build postgresql-libpq-0.9.4.3 (which is required by
exe:postgrest from postgrest-7.0.1). See the build log above for details.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions