On Tuesday 14 November 2006 21:08, Jarry wrote:
> Brian Davis wrote:
> > What are these buying the OP over chroot for what he wants to do?
>
> Sometimes chrooting is not so easy. I tried it for
> apache + mysql + php + some cgi-scripts, and it did not work.
> I have spent over month with it, and still a lot of things
> were broken, libraries/links missing, etc.

I feel your pain :-)

Make life easy for yourself, and do what I'm doing to get a proprietary 
app running on glibc-2.5 that was linked against glibc-2.3:

create a full blown chroot with it's own portage tree. I'm adapting the 
32 bit chroot on AMD64 howto to my needs (and keeping an eye on the 
stage 3 install handbook as well). You do this:

mount -o bind the various bogo file systems as per the AMD64 howto, and 
extract a stage 3 tarball into it. Select a minimal profile like 
default-linux/x86/2006.1/server, mask any packages you know you need to 
lock to certain versions and 'emerge apache mysql php'. Let portage 
figure out the libs and stuff, you have better things to do with your 
time.

True, you do end up with 300M more disk space consumed than you would 
like, but weigh that up against the cost of a month of struggling and 
it's a no-brainer.

It turns out to be a lot easier than one would think. I'm almost done 
and it's taken me about three hours. I reckon anyone who knows portage 
well enough to keep a ~arch gentoo box up for three months should 
breeze through it

alan

-- 
gentoo-user@gentoo.org mailing list

Reply via email to