Can't seem to figure how to compile

Running ghc 6.6.1 On Windows Vista I get this error when I run: ghc Main.hs gcc: installation problem, cannot exec `as': No such file or directory On this code: module Main where main = do putStrLn "Please enter your name: " name <- getLine putStrLn ("Hello, " ++ name ++ ", how are you?") What is my problem?

On Sun, Oct 21, 2007 at 01:46:16PM -0500, John Vogel wrote:
gcc: installation problem, cannot exec `as': No such file or directory
`as' is the assembler that gcc uses. Check your gcc. Can you even compile C programs successfully? -- -- Matthew Danish -- user: mrd domain: cmu.edu -- OpenPGP public key: C24B6010 on keyring.debian.org

It is the default gcc with ghc.
ghci works just fine which invokes ghc --interactive.
But this command does work:
ghc -e Main.main Main.hs
But there is no executable.
On 10/21/07, Matthew Danish
On Sun, Oct 21, 2007 at 01:46:16PM -0500, John Vogel wrote:
gcc: installation problem, cannot exec `as': No such file or directory
`as' is the assembler that gcc uses. Check your gcc. Can you even compile C programs successfully?
-- -- Matthew Danish -- user: mrd domain: cmu.edu -- OpenPGP public key: C24B6010 on keyring.debian.org

On 10/21/07, John Vogel
Running ghc 6.6.1 On Windows Vista
I get this error when I run: ghc Main.hs
gcc: installation problem, cannot exec `as': No such file or directory
Did you follow these instructions when you installed GHC? http://hackage.haskell.org/trac/ghc/wiki/Building/Windows (there are some special procedures here for Vista users). Cheers, Tim -- Tim Chevalier * catamorphism.org * Often in error, never in doubt "Knowledge was power, as long as one did not muck it up by confusing one piece of knowledge with another and trying to ingest it and turn it all into blood and feelings." -- A.S. Byatt

John Vogel wrote:
Running ghc 6.6.1 On Windows Vista
I get this error when I run: ghc Main.hs
gcc: installation problem, cannot exec `as': No such file or directory
This is a known problem on Vista. The GHC 6.8.1 snapshot should work for you, e.g. http://www.haskell.org/ghc/dist/stable/dist/ghc-6.8.0.20071020-i386-unknown-... Please try it out and let us know if that helps. FYI, the bug we fixed is this: http://hackage.haskell.org/trac/ghc/ticket/1110 Cheers, Simon

Yup, that fixed the problem. Thanks for your help. :)
On 10/22/07, Simon Marlow
John Vogel wrote:
Running ghc 6.6.1 On Windows Vista
I get this error when I run: ghc Main.hs
gcc: installation problem, cannot exec `as': No such file or directory
This is a known problem on Vista. The GHC 6.8.1 snapshot should work for you, e.g.
http://www.haskell.org/ghc/dist/stable/dist/ghc-6.8.0.20071020-i386-unknown-...
Please try it out and let us know if that helps.
FYI, the bug we fixed is this:
http://hackage.haskell.org/trac/ghc/ticket/1110
Cheers, Simon
participants (4)
-
John Vogel
-
Matthew Danish
-
Simon Marlow
-
Tim Chevalier