libgtk-x11-2.0.so.0

Discussions Regarding Software

Moderator: Moderators

libgtk-x11-2.0.so.0

Postby linuxfluesterer » Fri Nov 09, 2012 22:20

Hallo...
I just downloaded Humble Bundle for Android 4 and Linux also. I use SL X with KDE
But when I started the executable 'Machinarium' in Konsole, I receive:
Code: Select all
./Machinarium: error while loading shared libraries: libgtk-x11-2.0.so.0: cannot open shared object file: No such file or directory

I have copied the libgtk-x11-2.0.so.0 (link) and it's source libgtk-x11-2.0.so.0.2400.10 from a Kubuntu partition to /usr/lib64, but still the same error message.
So, pls, what can I do? What can or must I install in addition too?
I would like to use Rigo or install from .etp, not emerge if possible.
Thank you.

-Linuxfluesterer (I love KDE ... )
linuxfluesterer
Advanced Hen
 
Posts: 240
Joined: Thu Sep 20, 2012 19:47
Location: Germany

Re: libgtk-x11-2.0.so.0

Postby linuxfluesterer » Tue Nov 13, 2012 0:16

No idea?

-Linuxfluesterer (I love KDE ...)
linuxfluesterer
Advanced Hen
 
Posts: 240
Joined: Thu Sep 20, 2012 19:47
Location: Germany

Re: libgtk-x11-2.0.so.0

Postby sabayonino » Tue Nov 13, 2012 0:36

Hi

please run :
Code: Select all
# equo query installed gtk+


and make sure you have x11-libs/gtk+-2.24.10-r1 installed
User avatar
sabayonino
Sagely Hen
 
Posts: 1602
Joined: Sun Sep 21, 2008 1:12
Location: Italy

Re: libgtk-x11-2.0.so.0

Postby linuxfluesterer » Tue Nov 13, 2012 11:00

Thanks Sabayonino.
I did your suggestion and I received:
Code: Select all
>>  @@ Suche...
>>      @@ Paket: x11-libs/gtk+-2.24.10-r1 Branch: 5, [__system__]
>>         Installiert:    Version: 2.24.10-r1 ~ tag: NoTag ~ Version: 1
>>         Slot:           2
>>         Homepage:       http://www.gtk.org/
>>         Beschreibung:   Gimp ToolKit +
>>         Lizenz:         LGPL-2
>>      @@ Paket: x11-libs/gtk+-3.4.3-r1 Branch: 5, [__system__]
>>         Installiert:    Version: 3.4.3-r1 ~ tag: NoTag ~ Version: 0
>>         Slot:           3
>>         Homepage:       http://www.gtk.org/
>>         Beschreibung:   Gimp ToolKit +
>>         Lizenz:         LGPL-2
>>  Schlüsselwort:  gtk+
>>  Gefunden:       2 Einträge

Then I reinstalled gtk+ (version 2.24.10) again and started:
Code: Select all
./Machinarium

The result is still unchanged:
Code: Select all
./Machinarium: error while loading shared libraries: libgtk-x11-2.0.so.0: cannot open shared object file: No such file or directory

Is it possible, that I have to change the PATH (how?)variable or even copy the libgtk-x11.2.0.so.0? And then where?
Now I can find it in /usr/lib directory.
Code: Select all
ls -lan /usr/lib/libgtk-x11*
lrwxrwxrwx 1 0 0      27 13. Nov 10:41 /usr/lib/libgtk-x11-2.0.so -> libgtk-x11-2.0.so.0.2400.10
lrwxrwxrwx 1 0 0      27 13. Nov 10:41 /usr/lib/libgtk-x11-2.0.so.0 -> libgtk-x11-2.0.so.0.2400.10
-rwxr-xr-x 1 0 0 4399504 25. Apr 2012  /usr/lib/libgtk-x11-2.0.so.0.2400.10
-rw-r--r-- 1 0 0 4432392  5. Okt 2011  /usr/lib/libgtk-x11-2.0.so.0.2400.6

-Linuxfluesterer (I love KDE ...)
linuxfluesterer
Advanced Hen
 
Posts: 240
Joined: Thu Sep 20, 2012 19:47
Location: Germany

Re: libgtk-x11-2.0.so.0

Postby sabayonino » Tue Nov 13, 2012 12:59

provide a entire library list of "Machinarium" executable
Code: Select all
$ ldd ./Machinarium
User avatar
sabayonino
Sagely Hen
 
Posts: 1602
Joined: Sun Sep 21, 2008 1:12
Location: Italy

Re: libgtk-x11-2.0.so.0

Postby linuxfluesterer » Tue Nov 13, 2012 14:19

I did, and I received the following:

Code: Select all
Sabayon-X-2012 Machinarium # ldd ./Machinarium
        linux-gate.so.1 (0xf7741000)
        libstdc++.so.6 => /usr/lib/gcc/x86_64-pc-linux-gnu/4.6.3/32/libstdc++.so.6 (0xf760a000)
        libpthread.so.0 => /lib32/libpthread.so.0 (0xf75ef000)
        libX11.so.6 => /usr/lib32/libX11.so.6 (0xf74d2000)
        libXext.so.6 => /usr/lib32/libXext.so.6 (0xf74c2000)
        libXt.so.6 => /usr/lib32/libXt.so.6 (0xf746f000)
        libfreetype.so.6 => /usr/lib32/libfreetype.so.6 (0xf73e5000)
        libfontconfig.so.1 => /usr/lib32/libfontconfig.so.1 (0xf73b6000)
        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
        libpangocairo-1.0.so.0 => not found
        libpango-1.0.so.0 => not found
        libcairo.so.2 => not found
        libgobject-2.0.so.0 => /usr/lib32/libgobject-2.0.so.0 (0xf736e000)
        libgmodule-2.0.so.0 => /usr/lib32/libgmodule-2.0.so.0 (0xf736a000)
        libdl.so.2 => /lib32/libdl.so.2 (0xf7365000)
        libglib-2.0.so.0 => /usr/lib32/libglib-2.0.so.0 (0xf725b000)
        libnss3.so => /usr/lib32/libnss3.so (0xf7149000)
        libsmime3.so => /usr/lib32/libsmime3.so (0xf7123000)
        libssl3.so => /usr/lib32/libssl3.so (0xf70ed000)
        libplds4.so => /usr/lib32/libplds4.so (0xf70e9000)
        libplc4.so => /usr/lib32/libplc4.so (0xf70e4000)
        libnspr4.so => /usr/lib32/libnspr4.so (0xf70af000)
        libm.so.6 => /lib32/libm.so.6 (0xf7084000)
        libgcc_s.so.1 => /usr/lib/gcc/x86_64-pc-linux-gnu/4.6.3/32/libgcc_s.so.1 (0xf7067000)
        libc.so.6 => /lib32/libc.so.6 (0xf6ec3000)
        libXrender.so.1 => /usr/lib32/libXrender.so.1 (0xf6eb9000)
        /lib/ld-linux.so.2 (0xf7742000)
        libxcb.so.1 => /usr/lib32/libxcb.so.1 (0xf6e9f000)
        libSM.so.6 => /usr/lib32/libSM.so.6 (0xf6e97000)
        libICE.so.6 => /usr/lib32/libICE.so.6 (0xf6e7e000)
        libz.so.1 => /lib32/libz.so.1 (0xf6e69000)
        libbz2.so.1 => /lib32/libbz2.so.1 (0xf6e58000)
        libexpat.so.1 => /usr/lib32/libexpat.so.1 (0xf6e2e000)
        libgthread-2.0.so.0 => /usr/lib32/libgthread-2.0.so.0 (0xf6e29000)
        librt.so.1 => /lib32/librt.so.1 (0xf6e1e000)
        libffi.so.5 => /usr/lib32/libffi.so.5 (0xf6e17000)
        libnssutil3.so => /usr/lib32/libnssutil3.so (0xf6dfa000)
        libXau.so.6 => /usr/lib32/libXau.so.6 (0xf6df6000)
        libXdmcp.so.6 => /usr/lib32/libXdmcp.so.6 (0xf6df0000)
       

It seems, some modules can't be found:
Code: Select all
Machinarium # ldd ./Machinarium|grep found
        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
        libpangocairo-1.0.so.0 => not found
        libpango-1.0.so.0 => not found
        libcairo.so.2 => not found

Possible, that this program Machinarium is 32 bit program? I have downloaded a tarball.

I have checked, the missing modules are in /usr/lib64 dir, which is linked to /usr/lib dir.

-Linuxfluesterer (I love KDE ...)
linuxfluesterer
Advanced Hen
 
Posts: 240
Joined: Thu Sep 20, 2012 19:47
Location: Germany

Re: libgtk-x11-2.0.so.0

Postby sabayonino » Tue Nov 13, 2012 14:30

all libraries point to /usr/lib32 (Example : libsmime3.so => /usr/lib32/libsmime3.so (0xf7123000) )

Check and create simlink to /usr/lib/lib-xxx to /usr/lib32/lib-target




Example for libatk-1.0.so.0
Code: Select all
# locate libatk-1.0.so.0

If it exists in /usr/lib and not in /usr/lib32

Code: Select all
# ln -s /usr/lib/libatk-1.0.so.0 /usr/lib32/libatk-1.0.so.0


Run Machinariumm anc check if libatk-1.0.so.0 is linked
Code: Select all
$ ldd ./Machinarium | grep libatk-1.0.so.0


it it is , you should link to all unlinked libraries
User avatar
sabayonino
Sagely Hen
 
Posts: 1602
Joined: Sun Sep 21, 2008 1:12
Location: Italy

Re: libgtk-x11-2.0.so.0

Postby Fitzcarraldo » Tue Nov 13, 2012 16:50

Here is how I launch Machinarium (which I have installed in the directory ~/Machinarium), in case it is of any help:

First turn off compositing (KDE Desktop Effects or Compiz).

$ cd ~/Machinarium
$ ./Machinarium # but crashes sometimes.
$ linux32 ./Machinarium # This seems to work better.

If that does not work, try:

$ G_SLICE=always-malloc ./Machinarium

Right-click on the Machinarium window and select Settings... then the Display tab, and untick 'Enable hardware acceleration'

Run Machinarium in a window, not full screen (select from pop-up menu at bottom of screen).
User avatar
Fitzcarraldo
Sagely Hen
 
Posts: 7342
Joined: Sat Mar 10, 2007 5:40
Location: United Kingdom

Re: libgtk-x11-2.0.so.0

Postby linuxfluesterer » Tue Nov 13, 2012 18:13

Hallo, and thank you for join also, Fitzcarraldo...
I did, what you, Sabayonino suggested and I've linked the missing lib objects.
After this I made an example with:
Code: Select all
locate libgtk-x11
and recieved:
Code: Select all
/usr/lib32/libgtk-x11-2.0.so
/usr/lib32/libgtk-x11-2.0.so.0
/usr/lib64/libgtk-x11-2.0.so
/usr/lib64/libgtk-x11-2.0.so.0
/usr/lib64/libgtk-x11-2.0.so.0.2400.10
/usr/lib64/libgtk-x11-2.0.so.0.2400.6

But then, when I did:
Code: Select all
ldd ./Machinarium |grep libgtk-x11
I received:
Code: Select all
libgtk-x11-2.0.so.0 => not found
libgdk-x11-2.0.so.0 => not found

Anyway, I started ./Machinarium and then I received the following different error:
Code: Select all
./Machinarium: error while loading shared libraries: libgtk-x11-2.0.so.0: wrong ELF class: ELFCLASS64


To Fitzcarraldo: I tried your suggestions (Turn off Desktop effects) but also with:
Code: Select all
G_SLICE=always-malloc ./Machinarium

I receive same error:
Code: Select all
./Machinarium: error while loading shared libraries: libgtk-x11-2.0.so.0: wrong ELF class: ELFCLASS64


I use an Intel Core I5-430M processor with 6GByte Ram and dedicated NVidia GT320M with 1GByte VRam.
I wonder, how you made it run, Fitzcarraldo, but I suppose, you have a 64bit machine also.

-Linuxfluesterer (I love KDE ...)
linuxfluesterer
Advanced Hen
 
Posts: 240
Joined: Thu Sep 20, 2012 19:47
Location: Germany


Return to Software in General

Who is online

Users browsing this forum: No registered users and 0 guests