<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin-top:6.0pt;
margin-right:0cm;
margin-bottom:6.0pt;
margin-left:0cm;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:#0563C1;
text-decoration:underline;}
p.Code, li.Code, div.Code
{mso-style-name:Code;
margin-top:0cm;
margin-right:0cm;
margin-bottom:0cm;
margin-left:14.2pt;
font-size:10.0pt;
font-family:"Courier New";
font-weight:bold;}
span.EmailStyle18
{mso-style-type:personal-compose;
font-family:"Calibri",sans-serif;
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri",sans-serif;
mso-fareast-language:EN-US;}
.MsoPapDefault
{mso-style-type:export-only;
margin-top:6.0pt;
margin-right:0cm;
margin-bottom:6.0pt;
margin-left:0cm;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-GB" link="#0563C1" vlink="#954F72" style="word-wrap:break-word">
<div class="WordSection1">
<p class="MsoNormal">Dear devs<o:p></o:p></p>
<p class="MsoNormal">I wanted to install GHC 8.10 on my WSL2 (Windows Subsystem for Linux) computer. So I went here<o:p></o:p></p>
<p class="MsoNormal"><a href="https://www.haskell.org/ghcup/">https://www.haskell.org/ghcup/</a><o:p></o:p></p>
<p class="MsoNormal">and followed the instructions (the curl … command). There was a long pause then<o:p></o:p></p>
<p class="Code"><span style="font-size:9.0pt">[ Info ] verifying digest of: ghc-8.10.4-x86_64-deb9-linux.tar.xz<o:p></o:p></span></p>
<p class="Code"><span style="font-size:9.0pt">[ Info ] Unpacking: ghc-8.10.4-x86_64-deb9-linux.tar.xz to /tmp/ghcup-khiegA<o:p></o:p></span></p>
<p class="Code"><span style="font-size:9.0pt">[ Info ] Installing GHC (this may take a while)<o:p></o:p></span></p>
<p class="Code"><span style="font-size:9.0pt">[ Error ] BuildFailed failed in dir "/tmp/ghcup-khiegA": NonZeroExit 2 "make" ["install"]<o:p></o:p></span></p>
<p class="Code"><span style="font-size:9.0pt"> Check the logs at "/home/simonpj/.ghcup/logs" and the build directory "/tmp/ghcup-khiegA" for more clues.<o:p></o:p></span></p>
<p class="Code"><span style="font-size:9.0pt"> Make sure to clean up "/tmp/ghcup-khiegA" afterwards.<o:p></o:p></span></p>
<p class="Code"><span style="font-size:9.0pt">"_eghcup --cache install ghc recommended" failed!<o:p></o:p></span></p>
<p class="MsoNormal">I looked in the logs as suggested, and found this in the tail of ghc-make.log<o:p></o:p></p>
<p class="Code"><span style="font-size:9.0pt">Installing library in /home/simonpj/.ghcup/ghc/8.10.4/lib/ghc-8.10.4/libiserv-8.10.4<o:p></o:p></span></p>
<p class="Code"><span style="font-size:9.0pt">"utils/ghc-cabal/dist-install/build/tmp/ghc-cabal-bindist" copy compiler stage2 "strip" '' '/home/simonpj/.ghcup/ghc/8.10.4' '/home/simonpj/.ghcup/ghc/8.10.4/lib/ghc-8.10.4' '/home/simonpj/.ghcup/ghc/8.10.4/share/doc/ghc-8.10.4/html/libraries'
'v p dyn'<o:p></o:p></span></p>
<p class="Code"><span style="font-size:9.0pt">Installing library in /home/simonpj/.ghcup/ghc/8.10.4/lib/ghc-8.10.4/ghc-8.10.4<o:p></o:p></span></p>
<p class="Code"><span style="font-size:9.0pt">"/home/simonpj/.ghcup/ghc/8.10.4/lib/ghc-8.10.4/bin/ghc-pkg" --force --global-package-db "/home/simonpj/.ghcup/ghc/8.10.4/lib/ghc-8.10.4/package.conf.d" update rts/dist/package.conf.install<o:p></o:p></span></p>
<p class="Code"><span style="font-size:9.0pt">ghc-pkg: Couldn't open database /home/simonpj/.ghcup/ghc/8.10.4/lib/ghc-8.10.4/package.conf.d for modification: {handle: /home/simonpj/.ghcup/ghc/8.10.4/lib/ghc-8.10.4/package.conf.d/package.cache.lock}: hLock:
invalid argument (Invalid argument)<o:p></o:p></span></p>
<p class="Code"><span style="font-size:9.0pt">ghc.mk:967: recipe for target 'install_packages' failed<o:p></o:p></span></p>
<p class="Code"><span style="font-size:9.0pt">make[1]: *** [install_packages] Error 1<o:p></o:p></span></p>
<p class="Code"><span style="font-size:9.0pt">Makefile:51: recipe for target 'install' failed<o:p></o:p></span></p>
<p class="Code"><span style="font-size:9.0pt">make: *** [install] Error 2<o:p></o:p></span></p>
<p class="MsoNormal">So I seem to be stuck. Any ideas? I feel embarrassed not to be able to install GHC
<span style="font-family:"Segoe UI Emoji",sans-serif">😊</span>.<o:p></o:p></p>
<p class="MsoNormal">Simon<o:p></o:p></p>
</div>
</body>
</html>