Linux – how to find a missing library

So you are compiling an application for installation and it fails with a missing file.  For example:  libnotify/notify.h


  1. sudo apt-get install apt-file
  2. sudo apt-file update
  3. apt-file search file_name_to_search_for

i.e.,:    apt-file search  libnotify/notify.h


libnotify-dev: /usr/include/libnotify/notify.h

so install libnotify-dev:  sudo apt-get install libnotify-dev


  1. suppose you are missing the file “″
  2. yum provides

this will produce the following:

Loaded plugins: langpacks, presto, refresh-packagekit
Adding en_US to language list
glibc-2.12.90-17.i686 : The GNU libc libraries
Repo        : fedora
Matched from:
Other       :

glibc-2.12.90-21.i686 : The GNU libc libraries
Repo        : updates
Matched from:
Other       :

yum provides */unistd.h
this will list every package containing “unistd.h”

Leave a Reply

Your email address will not be published. Required fields are marked *


This site uses Akismet to reduce spam. Learn how your comment data is processed.