What Provides Curses Headers Named Curses. H?
I Need a Few Header File Namely Curses. H for Text Based Programming Please Tell Me How to Install These Header Files. 2 Answers You Can Install...
I need a few header file namely curses.h for text based programming Please tell me how to install these header files.
2 Answers
You can install libncurses5-dev package via Software Center or:
sudo apt-get install libncurses5-dev
Also, you can install the package by clicking here.
When you need a file or package and can't find it you can use some tools.
1. apt-file
First, install apt-file and update it.
sudo apt-get install apt-file
apt-file update
You can search with apt-file needed files or packages.
apt-file search curses.h
2. Use packages.ubuntu.com
Go to this link.
On right top, select package contents if your are searching a file included with a package. If you need a package directly, just search it with its name choosing package names.
Must Read
Find package from file
Edit: This only works for an installed package, so is not able to answer the question. Better is heartmagic's answer
To find out what package a file is part of, you can use
dpkg -S <file name>
For example, dpkg -S curses.h gives me this output:
libncurses5-dev: /usr/include/ncurses.h
libncurses5-dev: /usr/include/curses.h