How to install `Hat`

对着背影说爱祢 提交于 2019-12-02 01:41:23

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.

Once you have curses installed on your system,

cabal install terminfo --extra-include-dirs=/path/to/curses/include --extra-lib-dirs=/path/to/curses/lib

of course with the appropriate replacement of /path/to/curses.

Your platform's package manager might also be able to install terminfo directly, or you might use a separate package manager, i.e. the Nix package manager (which is particularly popular with Haskellers).

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!