[haskell-platform] #136: Windows error: "ghci: Unable to locate ghc.exe"

haskell-platform haskell-platform at projects.haskell.org
Tue Aug 24 23:40:27 EDT 2010


#136: Windows error: "ghci: Unable to locate ghc.exe"
-------------------------------+--------------------------------------------
 Reporter:  mcandre            |        Owner:  refold    
     Type:  defect             |       Status:  reopened  
 Priority:  major              |    Milestone:  2010.2.0.0
Component:  Windows installer  |   Resolution:            
 Keywords:                     |  
-------------------------------+--------------------------------------------
Comment (by refold):

 I was able to succesfully compile
 [http://darcs.haskell.org/ghc-6.12/ghc/driver/ghci/ghci.c ghci.c] with gcc
 on XP:

 {{{
 $ gcc ghci.c -o ghci.exe

 $ ./ghci.exe
 WARNING: GHCi invoked via 'ghci.exe' in *nix-like shells (cygwin-bash, in
 partic
 ular)
          doesn't handle Ctrl-C well; use the 'ghcii.sh' shell wrapper
 instead
 GHCi, version 6.12.3: http://www.haskell.org/ghc/  :? for help
 Loading package ghc-prim ... linking ... done.
 Loading package integer-gmp ... linking ... done.
 Loading package base ... linking ... done.
 Loading package ffi-1.0 ... linking ... done.
 }}}

 I think that `ghciwrap.c` is the old name for `ghci.c` and the comment
 just wasn't updated.

 Try commenting out this part:

 {{{
   /* Turn the path into short form - LFN form causes problems
      when passed in argv[0]. */
   if ( !(GetShortPathName(binPath, binPathShort, dwSize)) ) {
     errmsg1("%s: Unable to locate ghc.exe", argv[0]);
     return 1;
   }
 }}}

 and see what happens.

-- 
Ticket URL: <http://trac.haskell.org/haskell-platform/ticket/136#comment:15>
haskell-platform <http://trac.haskell.org/haskell-platform>
The Haskell Platform: a comprehensive and robust collection of Haskell libraries


More information about the Haskell-platform mailing list