Haskell 无法安装ghc exactprint
我尝试安装以下几个软件包:Haskell 无法安装ghc exactprint,haskell,ubuntu-18.04,Haskell,Ubuntu 18.04,我尝试安装以下几个软件包: stack install apply-refact hlint stylish-haskell hasktags hoogle 我有以下错误: ghc-exactprint-0.5.8.2: configure ghc-exactprint-0.5.8.2: build Progress 1/2 -- While building package ghc-exactprint-0.5.8.2 using: /home/developer/.stac
stack install apply-refact hlint stylish-haskell hasktags hoogle
我有以下错误:
ghc-exactprint-0.5.8.2: configure
ghc-exactprint-0.5.8.2: build
Progress 1/2
-- While building package ghc-exactprint-0.5.8.2 using:
/home/developer/.stack/setup-exe-cache/x86_64-linux/Cabal-simple_mPHDZzAJ_2.4.0.1_ghc-8.6.3 --builddir=.stack-work/dist/x86_64-linux/Cabal-2.4.0.1 build --ghc-options " -ddump-hi -ddump-to-file -fdiagnostics-color=always"
Process exited with code: ExitFailure 1
Logs have been written to: /home/developer/.stack/global-project/.stack-work/logs/ghc-exactprint-0.5.8.2.log
Configuring ghc-exactprint-0.5.8.2...
Preprocessing library for ghc-exactprint-0.5.8.2..
Building library for ghc-exactprint-0.5.8.2..
[ 1 of 13] Compiling Language.Haskell.GHC.ExactPrint.Types ( src/Language/Haskell/GHC/ExactPrint/Types.hs, .stack-work/dist/x86_64-linux/Cabal-2.4.0.1/build/Language/Haskell/GHC/ExactPrint/Types.o )
[ 2 of 13] Compiling Language.Haskell.GHC.ExactPrint.Lookup ( src/Language/Haskell/GHC/ExactPrint/Lookup.hs, .stack-work/dist/x86_64-linux/Cabal-2.4.0.1/build/Language/Haskell/GHC/ExactPrint/Lookup.o )
[ 3 of 13] Compiling Language.Haskell.GHC.ExactPrint.AnnotateTypes ( src/Language/Haskell/GHC/ExactPrint/AnnotateTypes.hs, .stack-work/dist/x86_64-linux/Cabal-2.4.0.1/build/Language/Haskell/GHC/ExactPrint/AnnotateTypes.o )
<command line>: can't load .so/.DLL for: libtinfo.so (libtinfo.so: cannot open shared object file: No such file or directory)
我做错了什么?看起来需要通过apt或使用的任何包管理器安装libtinfo dev包。什么是libtinfo dev?如何安装呢?我在另一个软件包上遇到了同样的错误,而被接受的答案对我很有用。apt安装libtinfo dev