在Windows 7上安装Cabal-dev

时间:2012-11-18 17:26:19

标签: haskell cabal-install

我正在尝试在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...)

1 个答案:

答案 0 :(得分:1)

Mikhail Glushenkov的建议有效

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

runhaskell -isrc admin/bootstrap.hs

然后我添加了

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

到我的路上,一切正常。

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