简体   繁体   English

`gcc'在阶段`Linker'失败,无法构建'提示'包

[英]`gcc' failed in phase `Linker', can't build 'hint' package

So, my package.yaml includes - hint package. 所以,我的package.yaml包含- hint包。

Then I try to stack build my project. 然后我尝试stack build我的项目。 Log: 日志:

Configuring hint-0.7.0...
Preprocessing library for hint-0.7.0..
Building library for hint-0.7.0..
[ 1 of 18] Compiling Control.Monad.Ghc ( src/Control/Monad/Ghc.hs, .stack-wor$
[ 2 of 18] Compiling Hint.CompatPlatform ( src/Hint/CompatPlatform.hs, .stack$
[ 3 of 18] Compiling Hint.GHC         ( src/Hint/GHC.hs, .stack-work/dist/x86$
[ 4 of 18] Compiling Hint.Extension   ( src/Hint/Extension.hs, .stack-work/di$
[ 5 of 18] Compiling Hint.Base        ( src/Hint/Base.hs, .stack-work/dist/x8$
[ 6 of 18] Compiling Hint.Conversions ( src/Hint/Conversions.hs, .stack-work/$
[ 7 of 18] Compiling Hint.Annotations ( src/Hint/Annotations.hs, .stack-work/$
[ 8 of 18] Compiling Hint.Parsers     ( src/Hint/Parsers.hs, .stack-work/dist$
[ 9 of 18] Compiling Hint.Reflection  ( src/Hint/Reflection.hs, .stack-work/d$
[10 of 18] Compiling Hint.Typecheck   ( src/Hint/Typecheck.hs, .stack-work/di$
[11 of 18] Compiling Hint.Util        ( src/Hint/Util.hs, .stack-work/dist/x8$
[12 of 18] Compiling Hint.Context     ( src/Hint/Context.hs, .stack-work/dist$
[13 of 18] Compiling Hint.Eval        ( src/Hint/Eval.hs, .stack-work/dist/x8$
[14 of 18] Compiling Hint.Configuration ( src/Hint/Configuration.hs, .stack-w$
[15 of 18] Compiling Hint.InterpreterT ( src/Hint/InterpreterT.hs, .stack-wor$
[16 of 18] Compiling Language.Haskell.Interpreter ( src/Language/Haskell/Inte$
[17 of 18] Compiling Language.Haskell.Interpreter.Extension ( src/Language/Ha$
[18 of 18] Compiling Language.Haskell.Interpreter.Unsafe ( src/Language/Haske$
/usr/bin/ld.gold: error: cannot find -ltinfo
collect2: error: ld returned 1 exit status
`gcc' failed in phase `Linker'. (Exit code: 1)

Stack version: 堆栈版本:

Version 1.6.3, Git revision b27e629b8c4ce369e3b8273f04db193b060000db (5454 commits) x86_64 hpack-0.20.0

Cabal-install version: Cabal安装版本:

cabal-install version 2.0.0.1
compiled using version 2.0.1.1 of the Cabal library 

Just point me to a right direction. 请指出我正确的方向。 I am totally new to the stack and Haskell. 我对堆栈和Haskell完全不熟悉。

你需要在ubuntu上为tinfo安装lib,例如:

sudo apt install libtinfo-dev

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM