Skip to content

"Missing C library: pq" on Windows 7 #22

Description

@WillSewell

I get this error even though I have PostgreSQL installed. I have tried cabal install --extra-lib-dirs="C:\PostgreSQL\include\libpq\" postgresql-simple which contains libpq-fs.h, but still no luck.

Here is the full error:

Configuring postgresql-libpq-0.9.0.1...
setup.exe: Missing dependency on a foreign library:
* Missing C library: pq
This problem can usually be solved by installing the system package that
provides this library (you may need the "-dev" version). If the library is
already installed but in a non-standard location then you can use the flags
--extra-include-dirs= and --extra-lib-dirs= to specify where it is.
Failed to install postgresql-libpq-0.9.0.1

Activity

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

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