Cabal无法安装postgresql-libpq-0.9.0.2

ant*_*tra 8 haskell cabal

双方cabal install postgresql-libpq-0.9.0.2cabal install --reinstall postgresql-libpq-0.9.0.2没有工作

Configuring postgresql-libpq-0.9.0.2...
setup.exe: The program pg_config is required but it could not be found.
cabal: Error: some packages failed to install:
postgresql-libpq-0.9.0.2 failed during the configure step. The exception was:
ExitFailure 1
Run Code Online (Sandbox Code Playgroud)

注意:我在当地

Tik*_*vis 5

看起来你需要外部程序 pg_config,大概有postgres.确保正确安装了postgres,并且所有二进制文件都在您的路径中.

我假设你在Windows上,在这种情况下安装postgres绑定是棘手的.请查看此处此处的说明,这些说明适用于依赖的postgresql-libpq,并确保你遵循所有的相关步骤.

与当前问题最相关的部分是更新Path变量并添加类似于C:\Program Files\PostgreSQL\9.2\bin第一个链接中的详细信息.