haskell - 无法安装 ghc-exactprint
问题描述
我尝试安装几个软件包,如下所示:
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)
我究竟做错了什么?
解决方案
看起来该libtinfo-dev
软件包需要通过apt
或使用任何软件包管理器进行安装。
推荐阅读
- java - 通过 Jackson/Spring REST 资源反序列化枚举字段
- entity-framework-core - 通过 EF Core 从数据库生成 C# 类
- flask - Flask 不适用于 Chrome,但适用于 Safari
- macos - Makefile 找不到可执行文件 - 没有这样的文件或目录
- shacl - Shacl sh:qualifiedValueShape 表达式缩写
- sql - 为什么在 case 命令中“不工作”?
- javascript - 如何在垂直列表中显示数组输出?
- vue.js - 如何禁用 vue-simple-calendar 中的特定日期?
- r - 如何将函数应用于向量的所有对
- rust - 如何在向量中打印json对象