Debugging 如何安装帽子`
我正在尝试获取Debugging 如何安装帽子`,debugging,haskell,cabal,cabal-install,hat,Debugging,Haskell,Cabal,Cabal Install,Hat,我正在尝试获取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 inst
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我该怎么办?假设你在某种Linux上,应该有一个像“libncurses5 dev”(这是Ubuntu中的名称)这样的系统包,你可以安装它来获取curses头。一旦你在系统上安装了curses
cabal install terminfo --extra-include-dirs=/path/to/curses/include --extra-lib-dirs=/path/to/curses/lib
当然要适当地替换/path/to/curses
您平台的软件包管理器也可以直接安装terminfo,或者您可以使用单独的软件包管理器,即(Haskeller特别流行)。configure:error:找不到curses头,因此无法构建此软件包,这本身并不是Haskell问题。这意味着您缺少curses库的C语言头。如果你在Linux上,这些头文件通常在libncurse5-dev这样的软件包中。不太清楚OS X或MS Windows。我实际上在考虑使用NixOs。NixOs很酷,但当你需要的软件包还没有在nixpkgs中时,肯定有点DIY。不过,如果你喜欢修修补补,那会很有趣!现在我有另一个问题。我将把它与这个问题联系起来。