首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >无法安装cabal包

无法安装cabal包
EN

Stack Overflow用户
提问于 2016-01-08 23:45:21
回答 2查看 552关注 0票数 1

我在ubuntu 14.4 LTS上安装cabal的quickcheck时遇到了问题。我已经更新了cabal,但当我尝试安装quickcheck时,出现了一个错误:

代码语言:javascript
复制
:~$ cabal install quickcheck
Resolving dependencies...
Configuring primitive-0.6.1.0...
Building primitive-0.6.1.0...
Preprocessing library primitive-0.6.1.0...
ghc: ghc no longer supports single-file style package databases (dist/package.conf.inplace) use 'ghc-pkg init' to create the database with the correct format.
Failed to install primitive-0.6.1.0
Configuring random-1.1...
Building random-1.1...
Preprocessing library random-1.1...
ghc: ghc no longer supports single-file style package databases (dist/package.conf.inplace) use 'ghc-pkg init' to create the database with the correct format.
Failed to install random-1.1
cabal: Error: some packages failed to install:
QuickCheck-2.8.1 depends on random-1.1 which failed to install.
primitive-0.6.1.0 failed during the building phase. The exception was:
ExitFailure 1
random-1.1 failed during the building phase. The exception was:
ExitFailure 1
tf-random-0.5 depends on random-1.1 which failed to install.

我是一个非常新的ubuntu,所以我仍然不知道在这种情况下该怎么做。我真的希望有人能帮上忙,因为这是为了一个即将完成的学校项目。

EN

回答 2

Stack Overflow用户

发布于 2021-09-16 10:52:39

在花了几个小时安装/删除后,安装和配置最新的cabal,ghc的最好方法...

curl --proto '=https' --tlsv1.2 -sSf https://get-ghcup.haskell.org | sh

票数 1
EN

Stack Overflow用户

发布于 2016-02-26 04:53:04

当你有一个与你的ghc版本相比非常旧的cabal二进制文件时,就会发生这个错误。

您可以跳过包管理器路径,也可以使用从https://www.haskell.org/cabal/download.html下载的linux二进制文件

这应该足以让你离开地面。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/34680829

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档