Last active
August 29, 2015 14:00
-
-
Save rosenk/11322940 to your computer and use it in GitHub Desktop.
install Idris lang in Windows
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1) install haskell platform and mingw | |
2) run mingw shell | |
3) cabal update | |
# cabal from the latest haskell platform is 1.16 but we need >= 1.18 to use sandboxes so: | |
4) cabal install cabal-install | |
5) put C:\Users\<your user name>\AppData\Roaming\cabal\bin in your PATH | |
6) test cabal version with cabal -V (you may need to restart the mingw shell) | |
7) download sources from https://github.com/idris-lang/Idris-dev/archive/v0.9.12.zip and extract to in c:/dev/haskell/idris | |
8) cd /c/hasell/idris | |
we will install idris in a cabal sandbox to make shure it is a clean start | |
9) cabal sandbox init | |
10) cabal install | |
any feedback would be much appreciated |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I tried again to install Idris on another "fresh" machine with Windows 8 on it. I'm glad to report that I finally succeeded to install Idris. Some remarks:
PATH
pointed toC:\Users\<your user name>\AppData\Roaming\cabal\bin
the "old" version ofcabal
got called; good to know thatcabal -V
returns the version in use for checking that. I had to prefix the call tocabal
(in the shell called bymsys.bat
) with the directory path to get the new version running.cc
was not executed on my machine. I addedMinGW
to my environment variables withC:\MinGW\bin;C:\MinGW\msys\1.0\bin;C:\MinGW;C:\MinGW\msys\1.0
and added%MinGW%
toPATH
mingw32-pthreads-w32
in the MinGW Installation Manager and reruncabal
the installation of Idris was successfull.C:\dev\haskell\idris\.cabal-sandbox
Thanks a lot for your support!