View previous topic :: View next topic |
Author |
Message |
dE_logics Advocate


Joined: 02 Jan 2009 Posts: 2348 Location: $TERM
|
Posted: Sun Nov 08, 2009 6:00 am Post subject: Cannot run 32 bit applications. |
|
|
I downloaded the precompiled versions of peazip and foxit, they say -
./FoxitReader: error while loading shared libraries: libgtk-x11-2.0.so.0: cannot open shared object file: No such file or directory
./peazip: error while loading shared libraries: libX11.so.6: cannot open shared object file: No such file or directory
When creating a symbolic links in lib32 of libgtk-x11-2.0.so.0 and libX11.so.6 -
./peazip: error while loading shared libraries: libX11.so.6: wrong ELF class: ELFCLASS64
./FoxitReader: error while loading shared libraries: libgtk-x11-2.0.so.0: wrong ELF class: ELFCLASS64 |
|
Back to top |
|
 |
dE_logics Advocate


Joined: 02 Jan 2009 Posts: 2348 Location: $TERM
|
Posted: Sun Nov 08, 2009 6:15 am Post subject: |
|
|
Oh yes, I know.
In my make.conf I have -
CFLAGS="-march=athlon64 -O2 -pipe"
Is there anyway to emerge a single package with 32bit compatibility? |
|
Back to top |
|
 |
few Guru

Joined: 03 Mar 2008 Posts: 448
|
Posted: Sun Nov 08, 2009 7:29 am Post subject: |
|
|
That has nothing to do with your CFLAGS, but with your CHOST.
For some 32 bit applications to run you need some of the app-emulation/emul-linux-x86-* packages. In your case app-emulation/emul-linux-x86-gtklibs and app-emulation/emul-linux-x86-xlibs. |
|
Back to top |
|
 |
Mistwolf Apprentice

Joined: 07 Mar 2007 Posts: 189 Location: Edmonton, AB
|
Posted: Sun Nov 08, 2009 7:31 am Post subject: |
|
|
To run 32-bit apps in a 64 bit system, you need to install the emul-linux-x86-* packages. You can install all of them or just the ones you need.
From the messages you posted, you need emul-linux-x86-compat and emul-linux-x86-gtklibs, at the bare minimum.
And remove the sym links you created in the lib32 directory.
If the application is 32-bit, it will not load a 64-bit library, hence the error codes when you created the sym links.
Hope this helps. |
|
Back to top |
|
 |
dE_logics Advocate


Joined: 02 Jan 2009 Posts: 2348 Location: $TERM
|
Posted: Sun Nov 08, 2009 7:49 am Post subject: |
|
|
Ok...I'm trying. |
|
Back to top |
|
 |
dE_logics Advocate


Joined: 02 Jan 2009 Posts: 2348 Location: $TERM
|
Posted: Sun Nov 08, 2009 12:26 pm Post subject: |
|
|
Thanks A BOMB man...needed it. |
|
Back to top |
|
 |
|