One great solution is download the package that contains the missing file (usually a header file, .h extension). First look for the file with link below, note the package name and apt-get that package.

Search for the missing file here:

Scroll down to “search contents”

Or go here:

Put the file name.

For examplexattr.h (I got this once during a failed compilation)

Then Look for your file and note the package and apt get it


The search for xattr.h came up with this:

File Packages
/usr/include/attr/xattr.h libattr1-dev
/usr/include/diet/attr/xattr.h dietlibc-dev [not kfreebsd-amd64, kfreebsd-i386]
/usr/src/linux-headers-3.2.0-4-486/include/config/ext2/fs/xattr.h linux-headers-3.2.0-4-486 [i386]

..snip.. alot more was there in the list

ALSO can use apt-file to find the missing files:


The top entry was enough, I just needed to install libattr1-dev

apt-get install libattr1-dev

Then I restarted the compilation with make clean and went on with make and make install

Leave a Reply

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