如何安装`帽子`

PyR*_*lez 2 debugging haskell hat cabal cabal-install

我试图获得Hat调试器.当我尝试:

cabal install hat 要么 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
Run Code Online (Sandbox Code Playgroud)

所以麻烦我尝试:

cabal install terminfo
Run Code Online (Sandbox Code Playgroud)

得到:

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
Run Code Online (Sandbox Code Playgroud)

我该怎么做才能安装Hat

btu*_*bbs 8

假设你在某种类型的Linux上,应该有一个类似"libncurses5-dev"的系统包(这是Ubuntu中的名称),你可以安装它来获取curses头文件.