Install Cabal-dev on windows 7

三世轮回 提交于 2019-12-04 02:10:47

问题


I'm trying to install Cabal-dev on windows 7.

I've managed to get past the problem with not being able to build network by using this:

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

However then I get this:

>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:


Mikhail Glushenkov's recommendation worked

I cloned the git repo for cabal-dev and then build it like this:

runhaskell -isrc admin/bootstrap.hs

then I added

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

to my path and everything is working.

I can now run cabal-dev install in my yesod folder get yesod working finally.



来源:https://stackoverflow.com/questions/13442588/install-cabal-dev-on-windows-7

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!