Unable to install ghc 9.2.0.20210422 on MacOS
$ uname -a
Darwin macbook-pro.lan 20.6.0 Darwin Kernel Version 20.6.0: Wed Jun 23 00:26:31 PDT 2021; root:xnu-7195.141.2~5/RELEASE_X86_64 x86_64
$ ghcup --version
The GHCup Haskell installer, version v0.1.16.1
$ ghcup install ghc 9.2.0.20210422
[ Warn ] New HLS version available: 1.3.0. To upgrade, run 'ghcup install hls 1.3.0'
[ Info ] downloading: https://downloads.haskell.org/~ghc/9.2.1-alpha2/ghc-9.2.0.20210422-x86_64-apple-darwin.tar.xz
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 106M 100 106M 0 0 9722k 0 0:00:11 0:00:11 --:--:-- 9841k
[ Info ] verifying digest of: ghc-9.2.0.20210422-x86_64-apple-darwin.tar.xz
[ Info ] Unpacking: ghc-9.2.0.20210422-x86_64-apple-darwin.tar.xz to /private/var/folders/zh/ln41q4zs52x2fd61rxccmq640000gn/T/ghcup-57bcf649a54eb55d
[ Info ] Installing GHC (this may take a while)
[ ghc-make ] "/Users/jky/.ghcup/ghc/9.2.0.20210422/lib/ghc-9.2.0.20210422/bin/ghc-pkg" --force --global-package-db "/Users/jky/.ghcup/ghc/9.2....
[ ghc-make ] dyld: Library not loaded: /nix/store/wxx8sfsa5x1753r8d1x8dx2927qncwbw-ncurses-6.2/lib/libncursesw.6.dylib
[ ghc-make ] Referenced from: /Users/jky/.ghcup/ghc/9.2.0.20210422/lib/ghc-9.2.0.20210422/terminfo-0.4.1.4/libHSterminfo-0.4.1.4-ghc9.2.0.20...
[ ghc-make ] Reason: image not found
[ ghc-make ] gmake[1]: *** [ghc.mk:977: install_packages] Abort trap: 6
[ ghc-make ] gmake: *** [Makefile:51: install] Error 2
[ Error ] BuildFailed failed in dir "/private/var/folders/zh/ln41q4zs52x2fd61rxccmq640000gn/T/ghcup-57bcf649a54eb55d": Process "gmake" with arguments ["install"] failed with exit code 2.
[ ... ] Check the logs at /Users/jky/.ghcup/logs and the build directory /private/var/folders/zh/ln41q4zs52x2fd61rxccmq640000gn/T/ghcup-57bcf649a54eb55d for more clues.
[ ... ] Make sure to clean up /private/var/folders/zh/ln41q4zs52x2fd61rxccmq640000gn/T/ghcup-57bcf649a54eb55d afterwards.