[Haskell-cafe] any idea why cabal install cabal-install cant update itself in windows?

Duncan Coutts duncan.coutts at worc.ox.ac.uk
Thu Oct 23 14:11:27 EDT 2008


On Wed, 2008-10-22 at 22:48 -0500, Austin Seipp wrote:
> Windows will not let you modify/delete binaries if they're running as a
> process, and it won't let you delete .DLL files that're in use by
> applications either (mapped to shared memory, that is.) So cabal
> install cannot overwrite the cabal.exe binary after it builds it,
> because it's already running.
> 
> I'm not sure anybody's found an adequate solution yet (Duncan?) - .bat
> files maybe?

Indeed it is a nasty problem. I solved it in cabal-install-0.5.2 using
cunning trickery. For details see:

http://hackage.haskell.org/trac/hackage/ticket/291


Duncan



More information about the Haskell-Cafe mailing list