Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cabal doesn't update binary symlinks

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?

like image 832
thSoft Avatar asked Jan 11 '13 12:01

thSoft


People also ask

What is Cabal v2-install [Flags] packages?

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.

How does Cabal v2-build work with remote package repositories?

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:

How do I install components of a local project using Cabal?

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 cabalext-how to fix?

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.


2 Answers

Just remove the existing links that are present in the specified directory.

like image 178
Tener Avatar answered Oct 25 '22 15:10

Tener


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. :-( )

like image 44
cstork Avatar answered Oct 25 '22 15:10

cstork