logo       

RE: runghc: cannot find ghc on Windows/MSYS : GHC-6.3.20050106: msg#00027

lang.haskell.glasgow.bugs

Subject: RE: runghc: cannot find ghc on Windows/MSYS : GHC-6.3.20050106

On 09 January 2005 06:07, Brian Smith wrote:

> I compiled GHC-6.3.20050106 using GHC-6.2.2 (installed from the MSI).
> This is on Windows XP SP 2.
>
> $ sh --version
> GNU bash, version 2.04.0(1)-release (i686-pc-msys)
> Copyright 1999 Free Software Foundation, Inc.
>
> $ runghc UnitTests.hs
> runghc.exe: cannot find ghc
>
> $ which ghc
> /usr/local/bin/ghc
>
> $ which runghc
> /usr/local/bin/runghc
>
> $ runghc -f /usr/local/bin/ghc UnitTests.hs
>
> Fail: rawSystem: invalid argument (Invalid argument)

It looks like you're expecting runghc to work with cygwin paths: it
doesn't. Our policy with GHC on Windows is that the runtime environment
has no cygwin dependencies at all, so runghc is a plain Windows
executable that searches your Windows %PATH% for executables named
ghc.exe. Hence it can't find /usr/local/bin, because that directory is
really c:\cygwin\usr\local\bin.

BTW, /usr/local/bin is an unusual place to install ghc on Windows. I'm
not sure whether everything will work properly.

Cheers,
Simon


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise