DEV Community

igaurab
igaurab

Posted on

How to find the name of the package which includes your missing header file

error.png

While I was installing my dwm build, i got a couple errors like the one shown in figure above. The header files which the dwm build needed were missing. The problem here is different linux distributions contains these header files under different package names. This solution works for debain or apt package manager.

Solution

The apt-file can be used to search for the package name where the header file is located. apt-file is not installed by default.

sudo apt install apt-file

finding.png

Once we have installed the apt-file we can simply look for the name of the package where the header file is located. The name of the package I needed to install was libxinerama-dev Once we have the name of the package we can simply install it using apt.

sudo apt install libxinerama-dev

done_installed.png

After that try to compile the file again and repeat the process until you are done.

Top comments (0)