On Tue, Feb 22, 2005 at 03:04:38AM +0000, Robert Brockway wrote: > Yes LD_PRELOAD will do this. It is nice to get out of a tight spot but a > poor long term solution (except in the example below :) On Debian, the really nice debootstrap utility can be used for this. It will download and setup a filesystem suitable for chroot:ing from any debian distribution. Ie: debootstrap sarge ./chroot-dir ftp://ftp.sunet.se/pub/Linux/distributions/debian/ One needs root privs to use it or one can use fakechroot. fakechroot's manpage describes how to use it together with debootstrap for these things. > I've come to the conclusion the best method is to package the s/w with > binary libraries that are guaranteed to work with the s/w. These are the > fallback libs. It a bit of a problem for libraries that have a lot of external files that it depends on though (like python's /usr/lib/python*/ files), the distribution then starts to be really large and one often has to configure/change and rebuild those libraries so they look for their files in the right place. /Sebastian -- .oooO o,o Oooo. ( ) \_/ ( ) (o_ "Life is not fair, but root \ ( /|\ ) / (o_ //\ password helps!" -- The BOFH \_) (_/ (/)_ V_/_