I am trying to manually install ghcup
in a Windows 11 virtual machine using these instructions.
I am at the step ghcup install ghc --set recommended
in step 4. It keeps repeatedly failing with:
curl: (56) Recv failure: Connection was reset
Sometimes it gets farther than others. It never gets more than halfway. And sometimes it fails immediately.
I have no problem downloading this file on my Linux host machine:
$ curl -O https://downloads.haskell.org/~ghc/9.2.8/ghc-9.2.8-x86_64-unknown-mingw32.tar.xz
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 482M 100 482M 0 0 10.1M 0 0:00:47 0:00:47 --:--:-- 8634k
Although before now, I’ve never had trouble downloading files from inside the Windows VM, either.
Is there some way to either:
- Pre-download the file (i. e. using my host machine) and then tell ghcup where to find it?
- Pass some of these curl options through
ghcup
to make it “retry harder”?