- Downloaded the binary build from http://www.haskell.org/ghc/download_ghc_7_8_2#binaries and extracted to C:\\ghc-7.8.2
- Added a bunch of stuff to path
- export PATH=/c/ghc-7.8.2/bin:/c/ghc-7.8.2/mingw/bin:/c/ghc-7.8.2/perl:$PATH
- Install dependencies for cabal. In this order, installed each of zlib, transformers, mtl, text, parsec, network, HTTP, random, stm. To do that I did the following:
- Went to https://hackage.haskell.org/package/<packagename>
- Download the tar (at the bottom of the page) and extract
- Configure and install it by running the following (note: some packages have Setup.lhs instead of .hs):
- runghc Setup.hs configure --prefix="C:\\ghc-7.8.2"
- runghc Setup.hs build
- runghc Setup.hs haddock
- runghc Setup.hs install
- Installed cabal install 1.18.05 by going to https://hackage.haskell.org/package/cabal-install-1.18.0.5 and follow the same instructions as the dependencies to install it.
- Now run cabal update and cabal install cabal-install to install the latest cabal install.
- Added everything to my PATH more permanently: (http://www.rapidee.com/en/about helps)
- C:\\ghc-7.8.2\\bin
- C:\\Users\\Tim Monks\\AppData\\Roaming\\cabal\\bin
Now I can use cabal sandboxes and ghc 7.8 on Windows 7 :)
No comments:
Post a Comment