What's new

Missing libraries (Linux)

Benjalien

New member
Hi everyone,

When I try to launch mupen64 (v5) I get this:
/mupen64: error while loading shared libraries: libgtk-x11-2.0.so.0: cannot open shared object file: No such file or directory
but I have it!

locate libgtk-x11-2.0.so.0
/usr/lib/debug/usr/lib/libgtk-x11-2.0.so.0.800.10
/usr/lib/libgtk-x11-2.0.so.0
/usr/lib/libgtk-x11-2.0.so.0.800.10

What am I missing????

(debian unstable on amd64)
 

smcd

Active member
grab the libgtk2.0-0 packages and build/install them (unless they've not been ported to the amd64 unstable branch)
 
OP
B

Benjalien

New member
I already have them :(

Hi sethmcdoogle,

thanks for your answer, but I already have the libgtk2.0-0 package...

here's my ldd ./mupen64 output (I don't know if it can help)

Code:
        linux-gate.so.1 =>  (0x00000000)
	libz.so.1 => /emul/ia32-linux/usr/lib/libz.so.1 (0x5557c000)
	libm.so.6 => /emul/ia32-linux/lib/tls/libm.so.6 (0x55590000)
	libgtk-x11-2.0.so.0 => not found
	libgdk-x11-2.0.so.0 => not found
	libatk-1.0.so.0 => not found
	libgdk_pixbuf-2.0.so.0 => not found
	libpangoxft-1.0.so.0 => not found
	libpangox-1.0.so.0 => not found
	libpango-1.0.so.0 => not found
	libgobject-2.0.so.0 => not found
	libgmodule-2.0.so.0 => not found
	libdl.so.2 => /emul/ia32-linux/lib/tls/libdl.so.2 (0x555b4000)
	libglib-2.0.so.0 => not found
	libSDL-1.2.so.0 => not found
	libpthread.so.0 => /emul/ia32-linux/lib/tls/libpthread.so.0 (0x555b8000)
	libGL.so.1 => /emul/ia32-linux/usr/lib/libGL.so.1 (0x555c7000)
	libc.so.6 => /emul/ia32-linux/lib/tls/libc.so.6 (0x5564a000)
	/lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x55555000)
	libGLcore.so.1 => /emul/ia32-linux/usr/lib/libGLcore.so.1 (0x5577e000)
	libnvidia-tls.so.1 => /emul/ia32-linux/usr/lib/tls/libnvidia-tls.so.1 (0x55f3d000)
	libXext.so.6 => /emul/ia32-linux/usr/X11R6/lib/libXext.so.6 (0x55f3f000)
	libX11.so.6 => /emul/ia32-linux/usr/X11R6/lib/libX11.so.6 (0x55f4d000)

can't I change something in /etc/ld.so.conf to get it to work?

Thanks for your help!
 

smcd

Active member
If you have the libs, they aren't in any search paths and cannot be used (notice the "not found" result in ldd). Find out where they are and either copy or link them over into (going from above ldd result) /emul/ia32-linux/lib or /emul/ia32-linux/usr/lib. I believe you could also copy or link them into the mupen directory but doing it in a library path would help other applications which look for those libs as well.

Maybe hacktarux will drop in and comment too ;)
 
Last edited:
OP
B

Benjalien

New member
linking doesn't help... :'(

Hi sethmcdoogle,

I've tried a

Code:
ln -s /usr/lib/libgtk-x11-2.0.so.0 libgtk-x11-2.0.so.0

but it doesn't help...

I'm a bit lost (it happens to me everytime I start believing I'm not a noob anymore...)

Code:
cat /etc/ld.so.conf
/usr/lib
/usr/X11R6/lib
/emul/ia32-linux/lib
/emul/ia32-linux/usr/lib
/emul/ia32-linux/usr/X11R6/lib

and
Code:
locate libgtk-x11-2.0.so.0
/usr/lib/debug/usr/lib/libgtk-x11-2.0.so.0.800.10
/usr/lib/libgtk-x11-2.0.so.0
/usr/lib/libgtk-x11-2.0.so.0.800.10
(updatedb runned jus a second before)

the missing library exists, and is in the search path (/usr/lib), or am I missing something again??????

Any help appreciated...
 
OP
B

Benjalien

New member
Replying to myself - I think I got the answer

Yep,

here's what I tought of this afternoon:
Mupen64 complains about missing libraries, but my system tells me I have them, they're both right!

I have all the libs, but in 64 bits (remember I'm running amd64 debian version), so either I compile Mupen64 in 64 bits mode (witch I find a funny idea...) or I install the libraries in 32 bits mode.

I'll try it and answer myself again in case someone else has the problem.
 
OP
B

Benjalien

New member
It works

I just installed a chroot to get all the libs, addes /var/chroot... to my /etc/ld.so.conf and it works (except it get a segfautlt about utf-8, so I'll look a bit here and if I don't find anything, I'll start a new thread)

Tahsnk for the help!
 

smcd

Active member
Congrats and it's nice you posted how you got it working so if people use the search (hopefully!) they can get help if they have a similar problem
 

Top