简体   繁体   English

如何在Windows 64位上为ghc 7.10设置cabal

[英]How to set up cabal for ghc 7.10 on windows 64-bit

I have just downloaded the newest GHC 7.10.1 version, and I am trying to set up the cabal system to make it work. 我刚刚下载了最新的GHC 7.10.1版本,我正在尝试设置cabal系统以使其正常工作。 But I couldn't find the 64-bit cabal binary for 64 bit windows. 但我找不到64位窗口的64位cabal二进制文件。

Haskell Platform does not have 7.10 yet. Haskell平台还没有7.10。 So I went to https://www.haskell.org/cabal/download.html , but there is only binary for 32-bit windows. 所以我去了https://www.haskell.org/cabal/download.html ,但是32位窗口只有二进制文件。 I tried to use that version to cabal update , but cabal.exe just crashed while setting up the initial config. 我尝试使用该版本进行cabal update ,但cabal.exe在设置初始配置时崩溃了。

I was wondering what's the procedure to set up cabal for 64-bit GHC? 我想知道为64位GHC设置cabal的程序是什么?

Here is what worked for me. 这对我有用。

I used a previous version of 64-bit GHC, such as those in Haskell Platform, to compile a cabal.exe , and use it to do: 我使用以前版本的64位GHC(例如Haskell平台中的那些)来编译cabal.exe ,并使用它来执行:

cabal install cabal-install

(boot-strapping). (引导捆扎)。

After this, the cabal.exe installed into the local cabal directory was 64-bit and worked just fine. 在此之后,安装到本地cabal目录中的cabal.exe是64位并且工作得很好。

Note: I have tried MinGHC 64-bit as @Zeta hinted, but the cabal.exe there was also 32-bit. 注意:我已经尝试过MinGHC 64位,因为@Zeta暗示,但cabal.exe也有32位。 It seems to be incompatible with the 64-bit GHC system, and gave me crashes just as the 32-bit cabal.exe downloaded from the official website. 它似乎与64位GHC系统不兼容,并且让我崩溃就像从官方网站下载的32位cabal.exe

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM