[Hackage] #403: Bad error message when running ./configure fails to find sh

Hackage trac at galois.com
Tue Nov 11 14:26:00 EST 2008

#403: Bad error message when running ./configure fails to find sh
  Reporter:  duncan               |        Owner:        
      Type:  defect               |       Status:  new   
  Priority:  normal               |    Milestone:        
 Component:  Cabal library        |      Version:  HEAD  
  Severity:  minor                |     Keywords:        
Difficulty:  very easy (<1 hour)  |   Ghcversion:  6.10.1
  Platform:  Windows              |  
 For `build-type: Configure` we have to run `./configure`. On windows this
 will very often fail of course because they usually lack the `sh` program.

 Currently the error message users get is not great:
 sh: runGenProcess: does not exist (No such file or directory)

 It would be nicer if they got a better message. Perhaps the way to do that
 is to catch the `DoesNotExist IOException` and re-throw a better message.
 Alternatively we could explicitly check for `sh` before invoking it. If
 it's not found on Windows then we could report that the package needs a
 unix-style command shell program eg from `mingw` to build.

Ticket URL: <http://hackage.haskell.org/trac/hackage/ticket/403>
Hackage <http://haskell.org/cabal/>
Hackage: Cabal and related projects

More information about the cabal-devel mailing list