ghcup upgrade (just to make sure ghcup is on the latest version)
ghcup install ghc 8.10.4
ghcup set ghc 8.10.4
ghc --version (just to check the correct version)
ghcup install cabal 3.4.0.0
ghcup set cabal 3.4.0.0
cabal --version (just to check the correct version)
cabal update (just to make sure all dependencies are in the info)
Some reason its showing this after setting cabal:
$ ghcup set cabal 3.4.0.0
[ Warn ] New GHC version available: 9.0.1. To upgrade, run ‘ghcup install ghc 9.0.1’
[ Info ] Cabal 3.4.0.0 successfully set as default version
$ cabal --version
cabal-install version 3.2.0.0
compiled using version 3.2.0.0 of the Cabal library
I had the same problem and it was driving me crazy. It was only happening on my BP machine. I had found a copy of the cabal executable in another bin folder. I’m not completely sure how it got there but I think your solution explains it a bit.
Thanks Anti.biz and jeremyisme…but I’m still confused as to what to do. I am having the exact same problem. Namely, that my cabal --version is showing 3.2 even though I am following steps here:
Can you please explain step by step what to do to resolve this. Like Jeremy, it is also driving me bonkers.