Building library for gitit-0.12.3.1..
/usr/bin/ld.gold: error: cannot find -ltinfo
collect2: error: ld returned 1 exit status
`gcc' failed in phase `Linker'. (Exit code: 1)
-- While building package gitit-0.12.3.1 using:
/root/.stack/setup-exe-cache/x86_64-linux/Cabal-simple_mPHDZzAJ_2.2.0.1_ghc-8.4.3 --builddir=.stack-work/dist/x86_64-linux/Cabal-2.2.0.1 build lib:gitit exe:expireGititCache exe:gitit --ghc-options " -fdiagnostics-color=always"
Process exited with code: ExitFailure 1
答案1
/usr/bin/ld.gold: error: cannot find -ltinfo
通常意味着您没有安装所需的库。那就是“tinfo”库,“libtinfo”。在 CentOS 上,它应该是 ncurses 包的一部分。确保您已安装 ncurses-devel 软件包。