Stop! Tickets are now managed at GitHub.

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

Ticket #146 (reopened defect)

Opened 7 years ago

Last modified 5 years ago

Cannot update cabal (Windows PATH issue)

Reported by: Olathe Owned by: refold
Priority: minor Milestone: 2013.2.0.0
Component: Windows installer Keywords:


On Windows with Haskell Platform 2010.1.0.0 :

  • The all-users PATH variable contains %INSTALLDIR%\lib\extralibs\bin.
  • The user-specific PATH variable contains %APPDATA%\cabal\bin.

This causes a problem because :

  • Every directory in the all-users PATH variable is always checked first, so the shell always uses %INSTALLDIR%\lib\extralibs\bin\cabal.exe.
  • cabal install cabal-install only updates %APPDATA%\cabal\bin\cabal.exe rather than both.
  • So, you effectively can't update cabal on Windows.

Workaround: Delete %INSTALLDIR%\lib\extralibs\bin\cabal.exe.

Change History

Changed 6 years ago by refold

  • owner set to refold

Changed 5 years ago by MtnViewMark

has this been resolved one way or the other?

Changed 5 years ago by refold

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

I'm not really sure what is the right way to fix this. Adding ~/cabal/bin to all-users PATH is wrong, and adding %INSTALLDIR%/bin only to the current user's PATH will break things for other users. Perhaps we should recommend doing cabal install --global when replacing executables that come with the platform?

Changed 5 years ago by refold

  • status changed from closed to reopened
  • resolution fixed deleted

Changed 5 years ago by refold

  • priority changed from major to minor

Changed 5 years ago by refold

  • component changed from (none-specified) to Windows installer

Changed 5 years ago by refold

  • milestone set to 2013.2.0.0
Note: See TracTickets for help on using tickets.