Cabal doesn't update binary symlinks
Asked Answered
M

2

6

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?

Marginal answered 11/1, 2013 at 12:17 Comment(1)
Is there an answer to this one? I am having the same problem. Nothing from Cabal links.Intellection
S
4

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

Superadd answered 10/6, 2013 at 18:21 Comment(2)
Meanwhile, the problem seems to have gone away by itself, but this might work anyway.Marginal
Didn't solve it for me. I've logged as issue here: github.com/haskell/cabal/issues/1802Intellection
B
1

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

Boozy answered 25/7, 2013 at 10:2 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.