I’m trying to follow the instructions for

https://ghc.haskell.org/trac/ghc/ticket/12562

But I get

cabal new-build llvm-general --with-ghc=/home/simonpj/5builds/HEAD-4/inplace/bin/ghc-stage2

cabal: unrecognised command: new-build (try --help)

simonpj@cam-05-unx:~/tmp/llvm-general$

Maybe my Cabal is too old.  I tried

bash$ cabal install Cabal

Resolving dependencies...

Downloading Cabal-1.24.0.0...

Configuring Cabal-1.24.0.0...

Building Cabal-1.24.0.0...

Installed Cabal-1.24.0.0

That worked.  But I get the same message.   Alas

bash$ cabal --version

cabal-install version 1.23.0.0

compiled using version 1.23.1.0 of the Cabal library

bash$ which cabal

/home/simonpj/.cabal/bin/cabal

Maybe I need 1.24.  Which claims to be installed.  But WHERE is it installed?

 

Thanks

 

Simon