Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I was wondering, if there was a go to place to look for c headers, and how to get them on Ubuntu, often times a quick Google search gets me the apt-get package. I was wondering if it possible look up any header *.h file and get the required package.

In this particular case I am look for mbstring.h

I am not totally sure if this is the appropriate place for this. If so move as needed.


share|improve this question
up vote 2 down vote accepted

Do from terminal:

sudo apt-get install apt-file

Then, after it is installed and you updated the lists:

apt-file search mbstring.h

And this is the output that it returned to me:

mingw-w64: /usr/amd64-mingw32msvc/include/mbstring.h
mingw32-runtime: /usr/i586-mingw32msvc/include/mbstring.h
php-doc: /usr/share/doc/php-doc/html/book.mbstring.html
php-doc: /usr/share/doc/php-doc/html/intro.mbstring.html
php-doc: /usr/share/doc/php-doc/html/mbstring.http.html
php-doc: /usr/share/doc/php-doc/html/ref.mbstring.html
php5-dev: /usr/include/php5/ext/mbstring/mbstring.h
wine1.0-dev: /usr/include/wine/msvcrt/mbstring.h
wine1.2-dev: /usr/include/wine/msvcrt/mbstring.h
wine1.3-dev: /usr/include/wine/msvcrt/mbstring.h
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.