How can I discover and install a list of dependent libraries?
I'm trying to get the Humble Bundle version of Dungeon Defenders going, but the executable crashes with a "no such file or directory" error. Thanks to this answer I'm able to identify the dependent libraries required:
$ objdump -x ./UDKGame/Binaries/DungeonDefenders-x86 | grep NEEDED NEEDED libpthread.so.0 NEEDED libGL.so.1 NEEDED libSDL2-2.0.so.0 NEEDED libopenal.so.1 NEEDED libstdc++.so.6 NEEDED libm.so.6 NEEDED libgcc_s.so.1 NEEDED libc.so.6 NEEDED libdl.so.2I started searching for targets with aptitude, but wondered if there's a convenient way to install all these dependent libraries, rather than manually doing them one by one?
Notes:
- Running xubuntu 12.10 64-bit.
- Other questions about fixing dependencies seem to assume that you're trying to install something with apt-get or the software manager. I just downloaded the Dungeon Defenders tar file and tried to run it.
Edit:
Wondering if I asked the wrong question. Maybe what I need to know is: how do you map a library name to the corresponding package/target name?
2 Answers
Install the apt-file package, that gives you the reverse mapping you want.
apt-file search libstdc++Should build the index (first time only), and result in the packages, one of which is libstdc++6. Searching for libSDL results in only the 1.2... versions, not the 2.2 version.
3well, in synaptic there is an option to do that, you check any packages that you want to install, and in file menu you choose to make a download script for those packages, I am sure that this can be done by apt itself too