microsoft / vscode-dev-containers

NOTE: Most of the contents of this repository have been migrated to the new devcontainers GitHub org (https://github.com/devcontainers). See https://github.com/devcontainers/template-starter and https://github.com/devcontainers/feature-starter for information on creating your own!
https://aka.ms/vscode-remote
MIT License
4.72k stars 1.4k forks source link

Haskell - Fix GHCup installation #1654

Open dogancanbakir opened 2 years ago

dogancanbakir commented 2 years ago

Problem

GHCup installation fails because of the way it gets installed.

Error: `

0 80.95 [ Info ] Installing GHC (this may take a while)

...

0 82.44

0 85.18 [

[2022-10-08T10:24:48.351Z] 91m[ Error ] Both installation and setting the tool failed. Install error was: Process "gmake" with arguments ["DESTDIR=/home/vscode/.ghcup/tmp/ghcup-3a13a8c583be7176",

0 85.18 [ ... ] "install"] failed with exit code 2.

0 85.18 [ ... ] Set error was: The version 9.2.4 of the tool ghc is not installed.

0 85.18 [ Error ] Also check the logs in /home/vscode/.ghcup/logs

`

Solution

Install GHCup as recommended at https://www.haskell.org/ghcup/