Stop! Tickets are now managed at GitHub.

Please enter new tickets, and find and edit existing tickets there:

Ticket #212 (closed defect: fixed)

Opened 4 years ago

Last modified 4 years ago

HP Windows installer should add mingw/bin to PATH

Reported by: nurpax Owned by: refold
Priority: major Milestone: 2012.4.0.0
Component: Windows installer Keywords:


As far as I understood, the HP installer adds GHC and other Haskell tools to PATH, like so:

$ which ghc /c/Program Files (x86)/Haskell Platform/2012.2.0.0/bin/ghc

However, it seems that the embedded mingw installation is not added to PATH. This directory is under

/c/Program Files (x86)/Haskell Platform/2012.2.0.0/mingw/bin

This by default causes installation of any package that have .c files in them to fail. Examples of such packages are at least network and direct-sqlite.

I didn't realize that mingw is included in HP so I was just assuming HP doesn't come with a C compiler at all. Thus I've been working around this by doing tricks like in

I think it'd make sense for the installer to stick the mingw\bin directory to PATH just as it seems to do for ghc.

Change History

Changed 4 years ago by refold

We didn't do that previously since we didn't want to silently override the system gcc (if it's installed). Maybe the correct behaviour is to *append* $PLATFORMDIR/mingw/bin to $PATH so that the system gcc (if installed) is not overridden.

Changed 4 years ago by refold

  • milestone set to 2012.4.0.0

Changed 4 years ago by refold

  • status changed from new to closed
  • resolution set to fixed

Fixed in 2012.4.0.0 RC1.

Note: See TracTickets for help on using tickets.