Haskell cabal-install错误

 奶爸乳酪 发布于 2023-02-12 10:15

我遇到了很多问题cabal-install:
1:每次我这样做cabal update,它都会告诉我这样做cabal install cabal-install,所以我这样做,然后当我cabal update再次这样做时,它会说同样的事情.

2:当我尝试ghc-mod从hackage 安装时,它给了我这个错误:

[username@arch ~]$ cabal install ghc-mod
In order, the following will be installed:
haskell-src-exts-1.14.0 (reinstall) changes: pretty-1.1.1.1 -> 1.1.1.0
hlint-1.8.55 (reinstall)
ghc-mod-3.1.4
setup: The program happy version >=1.17 is required but it could not be found.
ghc-mod-3.1.4 depends on haskell-src-exts-1.14.0 which failed to install.
haskell-src-exts-1.14.0 failed during the configure step.
hlint-1.8.55 depends on haskell-src-exts-1.14.0 which failed to install.

所以问题是The program happy version >=1.17 is required but it could not be found.,所以我安装happy 1.19.2使用cabal install happy没有问题.

cabal install ghc-mod再试一次,同样的错误,所以我试过了cabal install haskell-src-exts --reinstall --force-reinstalls.它给了我以下错误:

[username@arch ~]$ cabal install haskell-src-exts --reinstall --force-reinstalls
Configuring haskell-src-exts-1.14.0...
setup: The program happy version >=1.17 is required but it could not be found.
Failed to install haskell-src-exts-1.14.0
cabal: Error: some packages failed to install:
haskell-src-exts-1.14.0 failed during the configure step. The exception was:
ExitFailure 1

基本上The program happy version >=1.17 is required but it could not be found..那么问题又开心了吗?

我也尝试从hackage下载tar.gz文件并cabal install.cabal文件上 使用,也修改了.cabal文件以忽略依赖,但仍然失败.

撰写答案
今天,你开发时遇到什么问题呢?
立即提问
热门标签
PHP1.CN | 中国最专业的PHP中文社区 | PNG素材下载 | DevBox开发工具箱 | json解析格式化 |PHP资讯 | PHP教程 | 数据库技术 | 服务器技术 | 前端开发技术 | PHP框架 | 开发工具 | 在线工具
Copyright © 1998 - 2020 PHP1.CN. All Rights Reserved 京公网安备 11010802041100号 | 京ICP备19059560号-4 | PHP1.CN 第一PHP社区 版权所有