Saturday, February 5, 2011

Finding missing packages - three methods

Sometimes, when compiling applications, rather than installing them from packages, one comes up against a problem like this one recently posed in #kubuntu (IRC channel on Freenode):

Hi, I have an error then I'm compiling an app. It doesn't find /usr/lib/ How can I install it?

Here is one answer:

[01:45] you want to install libgl1-mesa-dev
[01:46] you also want to install apt-file, 'apt-file find /usr/lib/' will tell you that you need libgl1-mesa-dev for it

Here is the second way:

[01:54] you know, has the same function
[01:54] sadly doesn't work with PPAs though since the LP folks didn't implement the Contents.gz it needs yet

And the easiest way if you are in #ubuntu or #kubuntu (or any channel with ubottu). Notice there are two ways to ask:

[01:54] as does ubottu :)
[01:55] !find
[01:55] File found in fglrx, ia32-libs, libgl1-mesa-dev, libgl1-mesa-glx, libgl1-mesa-glx-dbg, libgl1-mesa-swx11, libgl1-mesa-swx11-dbg, libgl1-mesa-swx11-dev, lsb-build-base3, nvidia-173 (and 2 others)

[01:56] !find usr/lib/
[01:56] File usr/lib/ found in libgl1-mesa-dev

Slick! Thanks to yofel and tsimpson for their help.