如何安装`帽子' [英] How to install `Hat`

查看:199
本文介绍了如何安装`帽子'的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图获取 Hat 调试器。当我尝试:

I am trying to get the Hat debugger. When I try:

cabal install hat OR cabal install hat -v

最后我得到:

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

所以麻烦拍摄我尝试:

cabal install terminfo

并得到:

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

如何安装帽子

推荐答案

假设你在某种Linux上,应该有系统包,如libncurses5-dev(这是Ubuntu中的名称),您可以安装以获取curses标题。

Assuming you're on a Linux of some sort, there should be a system package like "libncurses5-dev" (that's the name in Ubuntu) that you can install to get the curses headers.

这篇关于如何安装`帽子'的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆