7

When I install Haskell/GHC+cabal via sudo apt-get I installed cabal version 1.16. This is obviously not the most up to date version. How would I go about upgrade to at least version 1.18? I tried doing sudo apt-get update and sudo apt-get upgrade.

Edit:

Also when I run cabal install cabal-install it appears to "install" version 1.20 but when I run cabal -V it says cabal 1.16.0

Sleep Deprived Bulbasaur
  • 2,368
  • 4
  • 21
  • 33

1 Answers1

9

Fixed it by adding the following line to my ~/.profile: export PATH=$(HOME)/.cabal/bin:$PATH

Sleep Deprived Bulbasaur
  • 2,368
  • 4
  • 21
  • 33
  • I have the same problem but I changed this by editing the file manually and no changes, (I am a linux n00b) – roundcrisis Feb 18 '15 at 20:42
  • @roundcrisis did you make sure to source your .profile after exporting it? – Sleep Deprived Bulbasaur Feb 18 '15 at 20:43
  • 4
    hi there, I made the necessary changes like this :D # set PATH so it includes cabal if [ -d "$HOME/.cabal/bin" ] ; then PATH="$HOME/.cabal/bin:$PATH" fi and it worked – roundcrisis Feb 18 '15 at 22:13
  • This doesn't work for me. I changed `.profile` and ran `sudo apt-get` with `update`, `install cabal-install` and `upgrade cabal-install`, but `cabal - - version` still shows 1.16. – jorgen Aug 25 '17 at 04:22