I'm using OS X 10.8.2 with Haskell Platform 2012.4.0.0. When updating packages with cabal install
, the binary symlinks don't get updated to point to the new binary versions. I must delete the symlink manually and reinstall the package. cabal install
says:
Warning: could not create a symlink in /Users/thsoft/Library/Haskell/bin for elm because the file exists there already but is not managed by cabal. You can create a symlink for this executable manually if you wish. The executable file has been installed at /Users/thsoft/Library/Haskell/ghc-7.4.1/lib/Elm-0.7/bin/elm
I tried using sudo
and specifying --symlink-bindir=/Users/thsoft/Library/Haskell/bin
explicitly, but none of them helped. How could I fix this?
cabal v2-install [FLAGS] PACKAGES builds the specified packages and symlinks/copies their executables in installdir (usually ~/.cabal/bin ). For example this command will build the latest cabal-install and symlink its cabal executable: In addition, it’s possible to use cabal v2-install to install components of a local project.
If the project contains multiple remote package repositories it will update the index of all of them (e.g. when using overlays). cabal v2-build takes a set of targets and builds them. It automatically handles building and installing any dependencies of these targets. A target can take any of the following forms:
In addition, it’s possible to use cabal v2-install to install components of a local project. For example, with an up-to-date Git clone of the Cabal repository, this command will build cabal-install HEAD and symlink the cabal executable:
HOW TO FIX? 1. go to your cabal EXT folder and locate the 2 .exe (!cabalEXT.exe and !cabalEXT-custom.exe). 2. right click the .exe and select properties. How to FIX? - Auto close client (NPC Aizhan) If playback doesn't begin shortly, try restarting your device.
Just remove the existing links that are present in the specified directory.
Tener's answer is correct: before 'cabal install'ing remove the links that would cause problems. I've had the same problem and this solved it.
(I couldn't make this a comment to Tener's answer since that would require more reputation than I have. :-( )
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With