cu-mkp / issue-tracker-archive

Website for cu-mkp manuscript-data issue tracker archive
0 stars 0 forks source link

WSL haskell installation issue #26

Open njr2128 opened 1 year ago

njr2128 commented 1 year ago

when trying to download haskell to run script in WSL (following https://www.haskell.org/ghcup/#), we keep getting this error:

[ Info  ] Upgrading GHCup...
[ Warn  ] No GHCup update available

System requirements
  Please ensure the following distro packages are installed before continuing (you can exit ghcup and return at any time): build-essential curl libffi-dev libffi6 libgmp-dev libgmp10 libncurses-dev libncurses5 libtinfo5
Press ENTER to proceed or ctrl-c to abort.
Installation may take a while.

[ Info  ] verifying digest of: ghc-9.2.5-x86_64-deb9-linux.tar.xz
[ Info  ] Unpacking: ghc-9.2.5-x86_64-deb9-linux.tar.xz to /home/njr2128/.ghcup/tmp/ghcup-c5af05f62a7fddfe
[ Info  ] Installing GHC (this may take a while)
[ ghc-make ] "/home/njr2128/.ghcup/tmp/ghcup-859015486b32c112/home/njr2128/.ghcup/ghc/9.2.5/lib/ghc-...
[ ghc-make ] ghc-pkg: Couldn't open database /home/njr2128/.ghcup/tmp/ghcup-859015486b32c112/home/nj...
[ ghc-make ] ghc.mk:983: recipe for target 'install_packages' failed
[ ghc-make ] make[1]: *** [install_packages] Error 1
[ ghc-make ] Makefile:51: recipe for target 'install' failed
[ ghc-make ] make: *** [install] Error 2
[ Error ] Process "make" with arguments ["DESTDIR=/home/njr2128/.ghcup/tmp/ghcup-859015486b32c112",
[ ...   ]                                "install"] failed with exit code 2.
[ Error ] Also check the logs in /home/njr2128/.ghcup/logs
"_eghcup --cache install ghc recommended" failed!