Skip to content

Failure to install GHC 9.4.1 on Ubuntu 20.04

$ ghcup install ghc latest
[ Info  ] downloading: https://downloads.haskell.org/~ghc/9.4.1/ghc-9.4.1-x86_64-fedora33-linux.tar.xz as file /home/simon/.ghcup/tmp/ghcup-d828536b94810de7/ghc-9.4.1-x86_64-fedora33-linux.tar.xz
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  172M  100  172M    0     0  12.6M      0  0:00:13  0:00:13 --:--:-- 12.8M
[ Info  ] verifying digest of: ghc-9.4.1-x86_64-fedora33-linux.tar.xz
[ Info  ] Unpacking: ghc-9.4.1-x86_64-fedora33-linux.tar.xz to /home/simon/.ghcup/tmp/ghcup-b1ab3b5d13f1d3be
[ Info  ] Installing GHC (this may take a while)
[ ghc-make ] ((echo "containers" | grep rts) && (cat '/home/simon/.ghcup/tmp/ghcup-d0ff8b583a1ba785/home/simon/.ghcup/ghc/9.4.1/lib/ghc-9.4.1/lib/package.conf.d/containers-0.6.6.conf.copy' | sed 's|haddock-.*||' > '/home/simon/...
[ ghc-make ] # We finally replace the original file.
[ ghc-make ] mv '/home/simon/.ghcup/tmp/ghcup-d0ff8b583a1ba785/home/simon/.ghcup/ghc/9.4.1/lib/ghc-9.4.1/lib/package.conf.d/containers-0.6.6.conf.copy.copy' '/home/simon/.ghcup/tmp/ghcup-d0ff8b583a1ba785/home/simon/.ghcup/ghc/9...
[ ghc-make ] '/home/simon/.ghcup/tmp/ghcup-d0ff8b583a1ba785/home/simon/.ghcup/ghc/9.4.1/lib/ghc-9.4.1/bin/ghc-pkg' --global-package-db "/home/simon/.ghcup/tmp/ghcup-d0ff8b583a1ba785/home/simon/.ghcup/ghc/9.4.1/lib/ghc-9.4.1/lib...
[ ghc-make ] /home/simon/.ghcup/tmp/ghcup-d0ff8b583a1ba785/home/simon/.ghcup/ghc/9.4.1/lib/ghc-9.4.1/bin/ghc-pkg: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.32' not found (required by /home/simon/.ghcup/tmp/ghcup-d0ff8b5...
[ ghc-make ] make: *** [Makefile:243: update_package_db] Error 1
[ Error ] Process "make" with arguments ["DESTDIR=/home/simon/.ghcup/tmp/ghcup-d0ff8b583a1ba785",
[ ...   ]                                "install"] failed with exit code 2.
[ Error ] Also check the logs in /home/simon/.ghcup/logs
$ uname -a
Linux simon-desktop 5.15.0-43-generic #46~20.04.1-Ubuntu SMP Thu Jul 14 15:20:17 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information