我收到一个非常奇怪的错误,该错误与从stack setup
创建的新安装的沙盒GHC有关。似乎与/usr/bin/ld
谢谢您的帮助!我也是Linux的新手。
tristan @ tristan-System-Product-Name〜$堆栈设置位于/home/tristan/.stack/programs/x86_64-linux/ghc-8.0.1/bin/ghc的GHC无法编译健全性检查。请参见http://docs.haskellstack.org/en/stable/installiandiupgrade/欲获得更多信息。例外是:在目录/ tmp / stack中运行/home/tristan/.stack/programs/x86_64-linux/ghc-8.0.1/bin/ghc /tmp/stack-sanity-check10861/Main.hs -no-user-package-db -sanity-check10861 /通过ExitFailure 1退出[1 of 1]编译Main(/tmp/stackrsanityrchecklosfil/Main.hs,/ tmp /stackrsanityrcheck10861/Main.0)链接/ tmp / stackrsanityrcheck10861 / Main/ usr / bin / ld:找不到-lgmpcollect2:错误:ld返回1退出状态gcc在链接器阶段失败。 (退出代码:1)