加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 百科 > 正文

Haskell Stack没有在Nixos上构建postgresql-libpq

发布时间:2020-12-13 15:55:22 所属栏目:百科 来源:网络整理
导读:将 postgresql-libpq添加到我的项目的cabal文件后,堆栈构建失败,并显示以下内容: 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_
将 postgresql-libpq添加到我的项目的cabal文件后,堆栈构建失败,并显示以下内容:

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 switch -upgrade之后也不会更新.这是我的错误还是别的什么?

解决方法

我在nixos上使用堆栈遇到了这个问题,当我的stack.yaml的nix块被更改为以下内容时,它已经过去了.

nix:
  pure: true
  enable: true
  packages: [ postgresql ]

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读