【问题标题】:installing dependencies in haskell在haskell中安装依赖
【发布时间】:2012-04-17 04:33:35
【问题描述】:

我试图在我的 Mac 中安装 cabal-dev。 cloing 后,我尝试运行 ./bin/build。获取此错误消息。

cabal: cannot configure cabal-dev-0.9.1. It requires MonadRandom ==0.1.*, tar
==0.3.*, test-framework >=0.3 && <0.6 and test-framework-hunit >=0.2
There is no available version of MonadRandom that satisfies ==0.1.*
There is no available version of tar that satisfies ==0.3.*
There is no available version of test-framework that satisfies >=0.3 && <0.6
There is no available version of test-framework-hunit that satisfies >=0.2

这有什么问题?如何在 Haskell 中安装依赖文件? 我从Haskell platform 下载并安装。

【问题讨论】:

    标签: haskell cabal


    【解决方案1】:

    您不必使用该构建脚本;您可以通过运行cabal install cabal-dev 来安装 cabal-dev,它会自动下载并安装 cabal-dev 及其依赖项。

    但如果你确实想使用它,请先在 cabal-dev 的源目录中尝试cabal install --only-dependencies(其中包含cabal-dev.cabal 的目录)。该脚本的目的是避免安装到全局和用户包数据库中——基本上,它使用与 cabal-dev 本身相同的沙盒。这可能不值得付出努力,因为 cabal-dev 与其他所有程序一样安装得很好。

    【讨论】:

      【解决方案2】:

      发出命令cabal install cabal-dev。假设你有标准的 cabal dist,它将为你解决依赖关系。

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 2015-11-04
        • 2016-05-02
        • 2021-10-15
        • 2020-01-19
        • 2017-08-27
        • 1970-01-01
        • 2016-08-21
        • 2016-03-14
        相关资源
        最近更新 更多