Я недавно пытался использовать стек haskell, но всякий раз, когда я пытаюсь выполнить настройку стека, я получаю
The GHC located at /root/.stack/programs/x86_64-linux/ghc-
8.2.2/bin/ghc failed to compile a sanity check. Please see:
http://docs.haskellstack.org/en/stable/install_and_upgrade/
for more information. Exception was:
Received ExitFailure 1 when running
Raw command: /root/.stack/programs/x86_64-linux/ghc-8.2.2/bin/ghc
/tmp/stack-sanity-check6/Main.hs -no-user-package-db
Run from: /tmp/stack-sanity-check6/
Standard output:
[1 of 1] Compiling Main ( /tmp/stack-sanity-
check6/Main.hs, /tmp/stack-sanity-check6/Main.o )
Linking /tmp/stack-sanity-check6/Main ...
Standard error:
/usr/bin/ld.gold: error: cannot find -lgmp
collect2: error: ld returned 1 exit status
`gcc' failed in phase `Linker'. (Exit code: 1)
У кого-нибудь есть идеи, как это исправить?