首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >如何安装“帽子”

如何安装“帽子”
EN

Stack Overflow用户
提问于 2014-07-31 21:43:32
回答 2查看 750关注 0票数 3

我正在尝试获取Hat调试器。当我尝试:

cabal install hatcabal install hat -v

最后我得到了:

代码语言:javascript
复制
configure: error: in `/tmp/terminfo-0.4.0.0-17745/terminfo-0.4.0.0':
configure: error: curses headers could not be found, so this package cannot be built
See `config.log' for more details
Failed to install terminfo-0.4.0.0
cabal: Error: some packages failed to install:
haskeline-0.7.1.3 depends on terminfo-0.4.0.0 which failed to install.
hat-2.8.0.0 depends on terminfo-0.4.0.0 which failed to install.
terminfo-0.4.0.0 failed during the configure step. The exception was:
ExitFailure 1

所以我试着解决问题:

代码语言:javascript
复制
cabal install terminfo

并得到:

代码语言:javascript
复制
configure: error: in `/tmp/terminfo-0.4.0.0-18341/terminfo-0.4.0.0':
configure: error: curses headers could not be found, so this package cannot be built
See `config.log' for more details
Failed to install terminfo-0.4.0.0
cabal: Error: some packages failed to install:
terminfo-0.4.0.0 failed during the configure step. The exception was:
ExitFailure 1

如何安装Hat

EN

回答 2

Stack Overflow用户

回答已采纳

发布于 2014-07-31 21:47:47

假设您是在某种Linux上,应该有一个像"libncurses5-dev“这样的系统包(这是Ubuntu中的名称),您可以安装这个包来获取诅咒头。

票数 8
EN

Stack Overflow用户

发布于 2014-07-31 22:43:44

一旦你在系统上安装了诅咒,

代码语言:javascript
复制
cabal install terminfo --extra-include-dirs=/path/to/curses/include --extra-lib-dirs=/path/to/curses/lib

当然,要适当地替换/path/to/curses

您的平台的包管理器也可以直接安装终端,也可以使用单独的包管理器,即Nix软件包管理器 (这在Haskellers中特别流行)。

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/25069434

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档