简体   繁体   中英

Installing GHC on Windows

Using this guide's instructions to install GHC on my Windows 10 instance, I can't follow the first step:

https://downloads.haskell.org/~ghc/6.0/docs/html/users_guide/sec-install-windows.html

"Download the Installshield setup.exe from the GHC download page haskell.org."

Having dowloaded this file from the site linked in that guide, there is no setup.exe.

Windows 64-bit (x86_64)
ghc-8.6.2-x86_64-unknown-mingw32.tar.xz (203.8 MB, sig)
This is compatible with Microsoft Windows Vista and later. It also includes 
support for compiling C++ files.

I unzip the file to folder "ghc-8.6.2" consisting of folders

"bin, doc, lib, mingw, perl"

(Yes, I searched for the setup.exe)

Could anyone tell me how I could get to the setup.exe so it will take care of setting up PATH etc?

You can use chocolatey [1] in which case it's just

choco install ghc which will install ghc and Cabal and give you a working environment. It has every version of ghc and Cabal released.

More here https://chocolatey.org/packages/ghc/

[1] https://chocolatey.org

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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