Snehasish Karmakar
Snehasish Karmakar

Reputation: 726

How to install curses.h header file(or the package including it)in Linux?

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.h header-file. But this doesn't seem to be available along with gcc package.

Please, tell me how can I install it?

Upvotes: 16

Views: 75089

Answers (3)

valleygtc
valleygtc

Reputation: 119

On Debian/Ubuntu/Deepin,use the following command:

sudo apt install libncurses5-dev

man document:

sudo apt install ncurses-doc

then: man ncurses

Upvotes: 7

R S John
R S John

Reputation: 515

On RHEL / Fedora / CentOS Linux, type the following yum command at a shell prompt as root user:

yum install ncurses-devel ncurses

Upvotes: 10

Linuxios
Linuxios

Reputation: 35788

Try this:

sudo apt-get install libncurses5-dev

Upvotes: 38

Related Questions