LWN.net Logo

Runs 32-bit applications too

Runs 32-bit applications too

Posted Jun 13, 2004 16:48 UTC (Sun) by BrucePerens (subscriber, #2510)
Parent article: Debian x86_64 port ready

The kernel provides 32-bit emulation. It is possible, indeed very easy, to install a 32-bit Debian system in a chroot environment. It took me 3 commands. With that, you can run any 32-bit application. It is a bit harder to make them run without chroot, but not very difficult. It only takes a small hack to ld-linux.so to make it load libraries from an alternate location even when they are specified with the /usr/lib/ path.

Debian continues to work on bi-arch, but doing it right is harder than making two separate ports.

Bruce


(Log in to post comments)

Runs 32-bit applications too

Posted Jun 14, 2004 4:09 UTC (Mon) by JoeBuck (subscriber, #2330) [Link]

Doing it right will require the various distros to talk to each other and not insist on re-inventing the wheel. Certainly those who say that the SuSE/Red Hat approach has some warts that we might regret later. But I am interested in portable code.

let's try that again:

Posted Jun 14, 2004 5:38 UTC (Mon) by JoeBuck (subscriber, #2330) [Link]

Whoops, meant to say:

Certainly those who say that the SuSE/Red Hat approach has some warts that we might regret later have a good point.

Runs 32-bit applications too

Posted Jun 14, 2004 9:26 UTC (Mon) by joib (guest, #8541) [Link]

Skimming the debian-amd64 list gives me the impression that FHS/LSB is working on a standard for multiarch support, apparently it will look something like Chris Cheney described briefly a couple of messages above this.

I think they made the right choice in focusing on a "pure64" architecture. It's the simplest approach, and if the wheels of bureocracy turn fast enough, they might get included in sarge. Doing a multiarch thing now would certainly have meant they would not have any chance of making it to sarge, and perhaps they would have to redo it later anyway, when the FHS/LSB thing is finished.

Runs 32-bit applications too

Posted Jun 14, 2004 7:58 UTC (Mon) by tov (guest, #22303) [Link]

It is possible, indeed very easy, to install a 32-bit Debian system in a chroot environment. It took me 3 commands.

That sounds good! Is it possible you could post these commands here for reference, please?

Runs 32-bit applications too

Posted Jun 14, 2004 8:34 UTC (Mon) by pharm (guest, #22305) [Link]

That sounds good! Is it possible you could post these commands here for reference, please?

Probably something like:

$ mkdir /debian-i386
$ debootstrap --arch=i386 sid /debian-i386
$ chroot /debian-i386
at a guess.
$ apt-get install debootstrap
if you haven't got it installed already.

Runs 32-bit applications too

Posted Jun 14, 2004 8:44 UTC (Mon) by pharm (guest, #22305) [Link]

Incidentally, this is all described in detail in the Debian sarge installation manual, wherein you can also find other useful tricks like binding a virtual terminal login directly to the chrooted install.

Runs 32-bit applications too

Posted Jun 17, 2004 6:58 UTC (Thu) by peterhoeg (subscriber, #4944) [Link]

Alternatively you can use:

apt-get install ia32-libs

directly in your pure64 environment and taa daa - 32bit support.

Copyright © 2008, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds