gitit을 설치하려고 했는데 컴파일 단계에서 이 오류가 발생했습니다.

gitit을 설치하려고 했는데 컴파일 단계에서 이 오류가 발생했습니다.
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 패키지가 설치되어 있는지 확인하십시오.

관련 정보