2014 update haskell cabal freezes on mac

I originally installed haskell platform (2013 version, 7.6.3 ghc) on my mac. Everything works fine. He just saw the haskell platform site again and found a new version (Haskell Platform 2014.2.0.0 for Mac OS X, 64 bit). I installed it and did not install the older version using uninstall-hs.

Now when I type "cabal" or "camera update" on my terminal it freezes. In fact, when I look at the Activity Monitor, I see that it is calling an endless "sh script and maybe some find command". At first I assume that it is building some indexes. but it works for an hour or so.

I ask for advice. I am unable to install any other package using cabal.

+3


source to share


2 answers


As suggested by Zeta, you can remove (or be safe, backup) ~ / .cabal and ~ / .ghc first. I also have Mac OS X 10.9.4 and recently updated. I ran the uninstall-hs script and installed the new Haskell Platform 2014. Even without backing up those directories, I still had free uninstall / update events.

Also, make sure you double check your paths in ~ / .bash_profile as they need to be updated.

Here's my example, hopefully giving you some hints that you might need to do.



# Haskell / Cabal
export PATH="$HOME/Library/Haskell/bin:$PATH"
export PATH="$HOME/Library/Haskell/ghc-7.8.3-x86_64/lib/cabal-install-1.20.0.3/bin:$PATH"
export PATH="$HOME/.emacs.d/hslint:$PATH"
export PATH="$HOME/Library/Haskell/ghc-7.8.3-x86_64/lib/cgrep-6.4.4/bin:$PATH"

      

As for cabal, try $ which cabal

and cabal -V

to check that you are using the latest version 1.20 and that it is installed in your $ PATH.

+1


source


Thanks a lot guys. This worked for me. As suggested by you, I removed / Library / Hashell, ~ / .cabal, ~ / .ghc. I also had to remove a few other symlinks (dead / broken links) from / usr / bin and a few other places and then fix the problem. btw, I tried once, deleting all files and files (without removing symlinks), it didn't work then.



Anyway, the problem is now fixed. Thanks again for the quick pointers.

0


source







All Articles