Page 1 of 1

libX11.so.6 not found on 64-bit Gentoo Linux

PostPosted: Thu Oct 09, 2008 5:44 am
by d.p.k.
Hello world,

I'm having trouble running a graphical InstallJammer 1.1 ELF binary
remotely on a Gentoo Linux 64-bit system. Both X11 and remoting are
set up correctly -- I can open emacs, xterm etc. remotely -- but
the installer refuses to start, claiming there is no graphical
environment.

strace tells me that it tries to load libX11.so from the following
locations:

/users/mnelson/tmp/installkit1.1/Linux-x86/lib/tls/i686/sse2/libX11.so.6
/users/mnelson/tmp/installkit1.1/Linux-x86/lib/tls/i686/libX11.so.6
/users/mnelson/tmp/installkit1.1/Linux-x86/lib/tls/sse2/libX11.so.6
/users/mnelson/tmp/installkit1.1/Linux-x86/lib/tls/libX11.so.6
/users/mnelson/tmp/installkit1.1/Linux-x86/lib/i686/sse2/libX11.so.6
/users/mnelson/tmp/installkit1.1/Linux-x86/lib/i686/libX11.so.6
/users/mnelson/tmp/installkit1.1/Linux-x86/lib/sse2/libX11.so.6
/users/mnelson/tmp/installkit1.1/Linux-x86/lib/libX11.so.6
/usr/X11R6/lib/tls/i686/sse2/libX11.so.6
/usr/X11R6/lib/tls/i686/libX11.so.6
/usr/X11R6/lib/tls/sse2/libX11.so.6
/usr/X11R6/lib/tls/libX11.so.6
/usr/X11R6/lib/i686/sse2/libX11.so.6
/usr/X11R6/lib/i686/libX11.so.6
/usr/X11R6/lib/sse2/libX11.so.6
/usr/X11R6/lib/libX11.so.6
/lib32/tls/i686/sse2/libX11.so.6
/lib32/tls/i686/libX11.so.6
/lib32/tls/sse2/libX11.so.6
/lib32/tls/libX11.so.6
/lib32/i686/sse2/libX11.so.6
/lib32/i686/libX11.so.6
/lib32/sse2/libX11.so.6
/lib32/libX11.so.6
/usr/lib32/tls/i686/sse2/libX11.so.6
/usr/lib32/tls/i686/libX11.so.6
/usr/lib32/tls/sse2/libX11.so.6
/usr/lib32/tls/libX11.so.6
/usr/lib32/i686/sse2/libX11.so.6
/usr/lib32/i686/libX11.so.6
/usr/lib32/sse2/libX11.so.6
/usr/lib32/libX11.so.6
/lib32/libX11.so.6
/usr/lib32/libX11.so.6

But none of these are correct, it is really at /usr/lib64/libX11.so.6.
No amount of linking or LD_LIBRARY_PATH trickery has enabled me to
convince the installer to find the stupid lib. This works withour
problems on other Linux variants.

Can I tell an installer specifically where to load libX11.so
dynamically, or can one somehow get the fitting 32-bit compatibility
libraries intalled for its convenience (I know next to nothing about
Gentoo)?

Thanks in advance,

Re: libX11.so.6 not found on 64-bit Gentoo Linux

PostPosted: Thu Oct 09, 2008 10:16 am
by damon
This is a problem with 32 bit vs. 64 bit Linux versions. I'm not familiar with Gentoo specifically, but if you don't have the 32 bit compatibility libraries installed, 32 bit applications are not going to run. The upcoming version of IJ will include 64 bit Linux libraries, but that means that you'll basically build two versions of your installer: one for 32 bit Linux and one for 64 bit Linux.

The latest versions of Ubuntu suffer this same problem because the latest 64 bit versions no longer include the 32 bit compat libraries out-of-the-box. You have to install them yourself.

Re: libX11.so.6 not found on 64-bit Gentoo Linux

PostPosted: Fri Oct 10, 2008 12:53 am
by d.p.k.
You're right, that solves the issue. Thank you very much!

For the benefit of Google, the magic incantation to be able to run InstallJammer 1.1 binaries
on 64bit Gentoo installations is:

emerge app-emulation/emul-linux-x86-xlibs