PDA

View Full Version : [all variants] source install



Sam5472
October 27th, 2009, 10:04 PM
I basically know how to compile from source, but in terms of dependencies I can only find them by running ./configure over and over and over again. Is there a way to determine all of the dependencies needed from a source.tar.gz file without having to run ./configure.

zvacet
October 28th, 2009, 01:02 PM
From directory where you downloaded source ( home I believe) type


sudo apt-get build-dep package_name

Sam5472
October 28th, 2009, 02:08 PM
Yes this works fine for source packages downloaded from a debian repository, but will it work on source packages not from a debian repository.

zvacet
October 29th, 2009, 09:14 AM
Other option is to install auto-apt



sudo apt-get install auto-apt
sudo auto-apt update
sudo auto-apt updatedb && sudo auto-apt update-local

Then run command


auto-apt run ./configure

Taken from here. (http://www.debian.org/doc/manuals/apt-howto/ch-search.en.html#s-auto-apt)

Sam5472
October 29th, 2009, 02:39 PM
Thank you. This should work perfectly.