Informatics 1 Windows Installation

From HaskellWiki
Revision as of 23:32, 8 October 2008 by Ben.kavanagh (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

Step 1. Install ghc 6.8.3 installation executable here http://haskell.org/ghc/dist/6.8.3/ghc-6.8.3-i386-windows.exe

Step 2. Install it to default directory c:\ghc\ghc-6.8.3

Step 3. create directory c:\ghc\ghc-6.8.3\libraries

Step 4. Download GLFW source zip here http://hackage.haskell.org/packages/archive/GLFW/0.3/GLFW-0.3.tar.gz

Step 5. untar into c:\ghc\ghc-6.8.3\libraries. This will create a subdirectory GLFW-0.3

Step 6. Pull up windows command shell. Verify that ghc is in your path by typing ghc at the prompt. If it is not, go to Control Panel -> System -> Advanced -> Environment Variables and edit Path to add "c:\ghc\ghc-6.8.3\bin\" to Path.

Step 7. in Command shell execute the following commands

> cd c:\ghc\ghc-6.8.3\libraries\GLFW > runghc Setup.hs configure > runghc Setup.hs build > runghc Setup.hs install

This installs the GLFW package. The OpenGL package comes with the standard installation.

You should now be able to load the tutorial1.hs file with ghci via > ghci tutorial1.hs