cabal-install 无法安装依赖于相同版本的版本

问题描述

我是 Haskell 的新手,我正在尝试在本地复制 code.world 环境,所以我需要安装 codeworld-api 以便我可以 import CodeWorld。问题是我运行cabal install codeworld-api的时候失败了,出现如下错误

cabal: Error: some packages Failed to install:
codeworld-api-0.7.0-JVbla7smM91CfqAXV0vVqz depends on codeworld-api-0.7.0
which Failed to install.
haskell-src-exts-1.23.1-Z8xb2tkymYIClPofvAOw3 Failed during the configure
step. The exception was:
ExitFailure 1
haskell-src-Meta-0.8.7-GrcU6O1imfWLP5hRNzLFKK depends on
haskell-src-Meta-0.8.7 which Failed to install.
haskell-tests-0.1.0.0-IkWvWTmkph53PXtIhZGNWg depends on haskell-tests-0.1.0.0
which Failed to install.
reflex-0.8.1.0-5XPDDia7wXx4bpQRZBxYDv depends on reflex-0.8.1.0 which Failed
to install.

我还尝试在 codeworld-apibuild-depends 部分添加 .cabal,但没有任何变化。

我读过 this,但 --allow-newer 也没有做任何事情。

我尝试过,但没有成功:

  • cabal update
  • cabal install Cabal cabal-install
  • cabal new-install codeworld-api
  • cabal new-build

codeworld-api 也不会出现在 ghc-pkg list 中。

我不知道发生了什么......


平台信息

  • Ubuntu 20.04
  • cabal 安装版本 2.4.0.0
  • Cabal 库版本 2.4.0.1
  • ghc 8.6.5 版
  • apt 安装的软件包:
    • ghc
    • ghc 文档
    • cabal 安装

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)