$ PATH does not register updated cabal version

After updating cabal

cabal --version

gives me the same old version.

This is what OS x Maverics works in my way

/Users/peter/.cabal/bin://anaconda/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:~/Library/Haskell/bin:/opt/X11/bin

Now my question is, what do I need to do to use the updated version of cabal?

Update1.

I updated cabal using:

cabal install cabal cabal-install

Also which cabalreturns/usr/bin/cabal

+4
source share
1 answer

On Mac, the default installation location is at ~/Library/Haskell/( bin/for binaries, lib/for libs, etc.).

In yours, $PATHthis happens after /usr/bin, so you get an executable from there.

~/Library/Haskell/bin $PATH x /usr/bin/cabal:)

+4

Source: https://habr.com/ru/post/1534994/


All Articles