Finding missing packages when building from source on Ubuntu

25 03 2009

So, you are building a program from source on Ubuntu and you have run into dependency issues, what do you do?

One solution is to use apt-file. Install this with sudo apt-get install apt-file. Then run apt-file update to update it’s cache. Now, you can use it to search for your missing dependencies by running apt-file search (replace with whatver you want) and it will show you what packages provide that dependency. The go ahead and install that package to solve your problems, it even shows you where that dependency is installed to!




Leave a Reply

Please log in using one of these methods to post your comment: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s