gcc in chroot

Darrin Chandler dwchandler at stilyagin.com
Thu Jun 15 14:54:04 MST 2006


On Thu, Jun 15, 2006 at 02:45:43PM -0700, Eric Shubes wrote:
> >I frequently do software (and package) builds in chroot jails on Linux.
> 
> Thanks, Jeremy. That's encouraging.

One thing to keep in mind is that every utility and library you need
must exist inside the chroot. Unless Jeremy knows of an easy way to set
this up, it's going to involve some effort for what you want. It's
fairly easy to chroot mysql or apache. Less so when you need major parts
of your tools chain. Often you'll need to use ldd to find what you need
to move into the chroot (or hardlink as you've done). Then ldd on
*those* results. Repeat until done.

Jeremy, is there an easier way?!

-- 
Darrin Chandler            |  Phoenix BSD Users Group
dwchandler at stilyagin.com   |  http://bsd.phoenix.az.us/
http://www.stilyagin.com/  |


More information about the PLUG-discuss mailing list