我正在尝试获取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所以我试着解决问题:
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如何安装Hat?
发布于 2014-07-31 21:47:47
假设您是在某种Linux上,应该有一个像"libncurses5-dev“这样的系统包(这是Ubuntu中的名称),您可以安装这个包来获取诅咒头。
发布于 2014-07-31 22:43:44
一旦你在系统上安装了诅咒,
cabal install terminfo --extra-include-dirs=/path/to/curses/include --extra-lib-dirs=/path/to/curses/lib当然,要适当地替换/path/to/curses。
您的平台的包管理器也可以直接安装终端,也可以使用单独的包管理器,即Nix软件包管理器 (这在Haskellers中特别流行)。
https://stackoverflow.com/questions/25069434
复制相似问题