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.

AWS GenAI LIVE image

Real challenges. Real solutions. Real talk.

From technical discussions to philosophical debates, AWS and AWS Partners examine the impact and evolution of gen AI.

Learn more

Top comments (0)

Postmark Image

Speedy emails, satisfied customers

Are delayed transactional emails costing you user satisfaction? Postmark delivers your emails almost instantly, keeping your customers happy and connected.

Sign up

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay