建立PostgreSQL相关的libpq增加PostgreSQL相关的libpq到我的项目的小集团文件后,栈建立失败,出现以下:哈斯克尔堆栈不会对Nixos
Configuring postgresql-libpq-0.9.1.1...
setup: The program 'pg_config' is required but it could not be found.
我在Nixos和pg_config既安装和我PATH:
$ whereis pg_config
pg_config: /nix/store/5bc6hzqkyw8dpi91sqznd3ik42mllwyz-system-path/bin/pg_config
我使用的堆栈1.0.2,并且它似乎不会更新即使nixos-rebuild开关 - 在不稳定通道上升级。这是我的错误吗?还是别的吗?
我不熟悉Stack + Nix集成,但'stack exec whereis pg_config'找到'pg_config'位置吗? –
@MichaelSnoyman我得到了“Executable named whereis not path on path”。打印的路径目录不包含我的系统路径,大多数程序都可以找到(包括* whereis *和* pg_config *)。 –
这听起来像你已经在你的配置中启用nix,但没有指定必要的软件包。我不是一个nix用户,所以我不能提供进一步的建议,但[本文档](https://docs.haskellstack.org/en/stable/nix_integration/#the-nix-shell)似乎涵盖了主题。 –