C语言 如何在 Linux 中安装 curses.h 头文件(或包含它的包)?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/18277192/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
How to install curses.h header file(or the package including it)in Linux?
提问by Snehasish Karmakar
I want to use certain operations (like clearing the screen etc.) in C programs in Linux platform and I am informed that it can be done including curses.hheader-file. But this doesn't seem to be available along with gccpackage.
我想在 Linux 平台的 C 程序中使用某些操作(如清除屏幕等),我被告知可以完成,包括curses.h头文件。但这似乎不适用于gcc包。
Please, tell me how can I install it?
请告诉我如何安装它?
回答by Linuxios
Try this:
尝试这个:
sudo apt-get install libncurses5-dev
回答by R S John
On RHEL / Fedora / CentOS Linux, type the following yum command at a shell prompt as root user:
在 RHEL/Fedora/CentOS Linux 上,以 root 用户身份在 shell 提示符下键入以下 yum 命令:
yum install ncurses-devel ncurses
回答by valleygtc
On Debian/Ubuntu/Deepin,use the following command:
在 Debian/Ubuntu/Deepin 上,使用以下命令:
sudo apt install libncurses5-dev
sudo apt install libncurses5-dev
man document:
人文件:
sudo apt install ncurses-doc
sudo apt install ncurses-doc
then:
man ncurses
然后:
man ncurses

