使用Sandboxed GHC进行完整性检查时堆栈失败

时间:2017-01-24 06:22:21

标签: haskell ghc gmp haskell-stack

我收到了一个非常奇怪的错误,该错误与从stack setup创建的新安装的沙盒GHC有关。 看起来它与/usr/bin/ld

有关

提前感谢您的帮助!我也是Linux的新手。

tristan@tristan-System-Product-Name ~ $ stack setup
The GHC located at /home/tristan/.stack/programs/x86_64-linux/ghc-8.0.1/bin/ghc failed to compile a sanity check. Please see 

    http://docs.haskellstack.org/en/stable/installiandiupgrade/ 

for more information. Exception was: 
Running /home/tristan/.stack/programs/x86_64-linux/ghc-8.0.1/bin/ghc /tmp/stack-sanity-check10861/Main.hs -no-user-package-db in directory /tmp/stack-sanity-check10861/ exited with ExitFailure 1 
[1 of 1] Compiling Main        (/tmp/stackrsanityrchecklosfil/Main.hs, /tmp /stackrsanityrcheck10861/Main.0 ) 
Linking /tmp/stackrsanityrcheck10861/Main 

/usr/bin/ld: cannot find -lgmp 
collect2: error: ld returned 1 exit status 
`gcc' failed in phase `Linker'. (Exit code: 1)

0 个答案:

没有答案