LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Gimp complains about gtk+ version ("micro mismatch") when started from kmenu (https://www.linuxquestions.org/questions/linux-software-2/gimp-complains-about-gtk-version-micro-mismatch-when-started-from-kmenu-620835/)

Donik 02-13-2008 09:34 AM

Gimp complains about gtk+ version ("micro mismatch") when started from kmenu
 
Hello all,

My Gimp has some issues when started from the KDE menu: It complains about the gtk+ version:

"Gtk+ version too old (micro mismatch)

GIMP requires GTK+ version 2.10.13 or later.
Installed GTK+ version is 2.10.9.

Somehow you or your software packager managed
to install GIMP with an older GTK+ version.

Please upgrade to GTK+ version 2.10.13 or later."

My libgtk2.0-0 package is at version 2.12.5-2, gimp is at version 2.4.4-1.

So I assume I HAVE "gtk+ 2.10.13 or later", and, in fact, gimp does start without any problems when invoked from commandline. Only when trying to start it from kmenu it provides me with the above dialog.

I tried to purge and reinstall gimp, with purging the .gimp-folder in the home-folder, and I just tried to reinstall kde, without any success ...

I'm using Debian lenny 2.6.22-3-686, with kde 3.5.8.

Any ideas?

Greets
Don

neogrande 04-23-2008 05:16 AM

I have the same problem here.
Not only gimp isn't working, beryl-manager doesn't take the right GTK+ either.

Because I have too much time, I purged KDE, X.org, all libglib2, all GTKs and so on. Was a nice session ;-)
After reinstalling KDE, x.org, gimp and so on, it complains the wrong version again.

There is an libgtk-x11-2.0.so in /usr/lib and in /usr/local/lib

With
Code:

ldd $(which gimp) | grep gtk
I found out, that gimp is depending on the one in /usr/local/lib, but the one in /usr/lib is the file from the package libgtk2.0-0.

apt-file finds no information about the file in /usr/local/lib.

Do you have any idea, how to solve this?

olf359 05-11-2008 02:20 AM

For me a simple "rm /usr/local/lib/libgtk-x11*" solved the problem.

CU, Olf

Donik 06-25-2008 09:26 AM

Nope, doesn't work for me.

To make things worse, gimp noadays changed it's behaviour and doesn't start when invoked from commandline either, again with the mentioned popup dialog (i.e. before removing the libraries as olf suggested).

If I remove the above libraries, gimp then states (ldd ...) to depend on the libgtk-x11 libraries in /usr/lib/, but won't start, this time without any message. It shows the splash screen, but without the progression bar, and hangs. Clicking on the splash screen will cause it to disappear, but gimp still doesn't start.
dpkg-reconfiguring gimp oder libgtk2.0-2 after removing the libraries doesn't help either, gimp then fails to start (from bash) with the message "gimp: symbol lookup error: /usr/lib/libgtk-x11-2.0.so.0: undefined symbol: gdk_threads_add_idle".

So I moved those libraries back to the place I found them, and gave up so far.

Any other ideas?

Donik 07-10-2008 09:10 AM

Problem solved
 
Oky, I suddenly had the enlightenment.

After I thought really hard about neograndes reply, that there was no /usr/local/lib/libgtk in any of the Debian packages, I came up with the following solution:

I obviously compiled gtk+ myself once (although I don't remember ... keeping a rootlog suddenly seems to be a good idea ...). The version I compiled (533 days ago... why do I know? I used find -atime to find all the files) was 2.10.0. So I went to the gtk+ homepage, downloaded the source of 2.10.0, configured it ("./configure") and typed "sudo make uninstall" which got me rid of this gtk-version. A last "sudo ldconfig" (don't know whether this was necessery) and gimp started working again.

Now there's only another thing in /usr/local which I compiled the same day: metacity. I guess this selfcompiled version will not work anymore, but since I'm using KDE (and don't remember what I compiled metacity for) I don't care. I'm trying to uninstall this metacity the same way as the gtk+, but I didn't figure out yet which version it is.

Thanks for all the help
Don

As always, Happy Computing


All times are GMT -5. The time now is 04:31 AM.