Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Cannot run 32 bit applications.
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
dE_logics
Advocate
Advocate


Joined: 02 Jan 2009
Posts: 2348
Location: $TERM

PostPosted: Sun Nov 08, 2009 6:00 am    Post subject: Cannot run 32 bit applications. Reply with quote

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
View user's profile Send private message
dE_logics
Advocate
Advocate


Joined: 02 Jan 2009
Posts: 2348
Location: $TERM

PostPosted: Sun Nov 08, 2009 6:15 am    Post subject: Reply with quote

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
View user's profile Send private message
few
Guru
Guru


Joined: 03 Mar 2008
Posts: 448

PostPosted: Sun Nov 08, 2009 7:29 am    Post subject: Reply with quote

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
View user's profile Send private message
Mistwolf
Apprentice
Apprentice


Joined: 07 Mar 2007
Posts: 189
Location: Edmonton, AB

PostPosted: Sun Nov 08, 2009 7:31 am    Post subject: Reply with quote

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
View user's profile Send private message
dE_logics
Advocate
Advocate


Joined: 02 Jan 2009
Posts: 2348
Location: $TERM

PostPosted: Sun Nov 08, 2009 7:49 am    Post subject: Reply with quote

Ok...I'm trying.
Back to top
View user's profile Send private message
dE_logics
Advocate
Advocate


Joined: 02 Jan 2009
Posts: 2348
Location: $TERM

PostPosted: Sun Nov 08, 2009 12:26 pm    Post subject: Reply with quote

Thanks A BOMB man...needed it.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum