1

我正在尝试在 Windows 7 上安装 Cabal-dev。

我已经设法解决了无法使用以下方法构建网络的问题:

cabal install --constraint="network installed" cabal-dev 

但是,我得到了这个:

>cabal install --constraint="network installed" cabal-dev 
Resolving dependencies...
cabal: Could not resolve dependencies:
trying: cabal-dev-0.9.1
trying: cabal-dev-0.9.1:-no-cabal-dev
trying: network-2.3.1.0/installed-489...
rejecting: parsec-3.1.3/installed-62e... (conflict: network =>
parsec==3.1.3/installed-c65...)
rejecting: parsec-3.1.3/installed-c65... (conflict: parsec =>
mtl==2.1.2/installed-533..., cabal-dev-0.9.1:no-cabal-dev => mtl>=1.1 && <2.1)
rejecting: parsec-3.1.3, 3.1.2, 3.1.1, 3.1.0, 3.0.1, 3.0.0, 2.1.0.1, 2.1.0.0,
2.0 (conflict: network => parsec==3.1.3/installed-c65...)
4

1 回答 1

1

Mikhail Glushenkov 的建议奏效了

我为 cabal-dev克隆了git repo ,然后像这样构建它:

runhaskell -isrc admin/bootstrap.hs

然后我添加了

{windowspath ..}\cabal-dev\cabal-dev\bin

到我的路上,一切正常。

我现在可以在我的 yesod 文件夹中运行 cabal-dev install 让 yesod 最终工作。

于 2012-11-19T14:55:48.323 回答