View previous topic :: View next topic |
Author |
Message |
JLFalcone n00b
Joined: 26 Mar 2004 Posts: 3 Location: Geneva (Switzerland)
|
Posted: Sat Mar 27, 2004 9:44 am Post subject: Switching to AMD64 ? |
|
|
I'm thinking about switching to an AMD64 platform. After reading some threads in this forum and the install technotes, I have a couple of questions more :
(1) After emerging stuff in a 32bit chroot, can you exec those 32bits apps from a 64bit context (without 'chrooting' anymore) ?
(2) How do you manage to get the macromedia flash plugin working ? Using a 32bit browser ?
Thanks,
JLF |
|
Back to top |
|
|
alshain Apprentice
Joined: 02 Aug 2002 Posts: 202 Location: London, UK
|
Posted: Sat Mar 27, 2004 12:35 pm Post subject: Re: Switching to AMD64 ? |
|
|
JLFalcone wrote: | I'm thinking about switching to an AMD64 platform. After reading some threads in this forum and the install technotes, I have a couple of questions more :
(1) After emerging stuff in a 32bit chroot, can you exec those 32bits apps from a 64bit context (without 'chrooting' anymore) ?
(2) How do you manage to get the macromedia flash plugin working ? Using a 32bit browser ?
|
(1) I think if you have 32bit emulation turned on in your kernel, you've emerged the necessary emulation libraries and set your paths right then you should be able to run programs without chrooting. As an example I set up a 32-bit chroot environment, emerged mplayer and its assorted libraries and then created a directory /usr/local/32bit/ containing lib and bin subdirectories with symlinks to the necessary files. Now I can execute
LD_LIBRARY_PATH=/usr/local/32bit/lib /usr/local/32bit/bin/mplayer <x>
with no problems.
This might be considered a slight overkill - I could have just symlinked to the /usr/local/bin directory but I wanted to make sure I kept the 32-bit and 64-bit files well separated.
(2) Well, I'm learning to live without it at the moment. I think the only way to get it working is, as you say, to use a 32-bit browser. In fact, while I'm in the mood I might go and pester Macromedia for a 64-bit version. It seems to me that emerging firefox-bin would be an admission of defeat. I nearly gave up but then I found that the 32-bit version of Helix player will work natively, although it looks a hell of a mess, being unable to find necessary gnome libraries. The most important thing is that it will play sound and video. I tried compiling a native version from source, but gave up fairly quickly. If anyone has manged it then I'd be very interested in hearing about it.
Andrew |
|
Back to top |
|
|
JLFalcone n00b
Joined: 26 Mar 2004 Posts: 3 Location: Geneva (Switzerland)
|
Posted: Sat Mar 27, 2004 1:58 pm Post subject: Re: Switching to AMD64 ? |
|
|
alshain wrote: |
(1) I think if you have 32bit emulation turned on in your kernel, you've emerged the necessary emulation libraries and set your paths right then you should be able to run programs without chrooting. As an example I set up a 32-bit chroot environment, emerged mplayer and its assorted libraries and then created a directory /usr/local/32bit/ containing lib and bin subdirectories with symlinks to the necessary files. Now I can execute
LD_LIBRARY_PATH=/usr/local/32bit/lib /usr/local/32bit/bin/mplayer <x>
with no problems.
|
Can't you chroot to /usr/local/32bit instead and avoid keeping the symlink up to date ? |
|
Back to top |
|
|
alshain Apprentice
Joined: 02 Aug 2002 Posts: 202 Location: London, UK
|
Posted: Sat Mar 27, 2004 4:27 pm Post subject: Re: Switching to AMD64 ? |
|
|
JLFalcone wrote: | Can't you chroot to /usr/local/32bit instead and avoid keeping the symlink up to date ? |
Hmm... Now why didn't I think of that?
Andrew |
|
Back to top |
|
|
Corona688 Veteran
Joined: 10 Jan 2004 Posts: 1204
|
Posted: Sun Mar 28, 2004 8:34 pm Post subject: Re: Switching to AMD64 ? |
|
|
JLFalcone wrote: | I'm thinking about switching to an AMD64 platform. After reading some threads in this forum and the install technotes, I have a couple of questions more :
(1) After emerging stuff in a 32bit chroot, can you exec those 32bits apps from a 64bit context (without 'chrooting' anymore) ? | Indeed, once the emulation libraries and such are installed you can run 32-bit apps natively(provided you compiled in kernel support for it). I still haven't figured out how to COMPILE 32-bit apps natively though. Quote: | (2) How do you manage to get the macromedia flash plugin working ? Using a 32bit browser ? | The steps, for me, were:
1) 32-bit executable support in kernel
2) 32-bit xfree emulation libraries and gtk libs
3) ACCEPT_KEYWORDS="x86" emerge mozilla-firefox-bin
4) ACCEPT_KEYWORDS="x86" emerge netscape-flash
5) Borrowing a libstdc++.so from a 32-bit x86 redhat box(macromedia's programs don't like Gentoo's for no apparent reason)
It might be possible to run them in a 64-bit browser, though at the time, firefox didn't have a working 64-bit build anyway. |
|
Back to top |
|
|
|