Bug #13107 MySQL Query Browser Dependency on GNOME Libraries
Submitted: 10 Sep 2005 21:09 Modified: 3 Oct 2005 22:47
Reporter: Catalin Hritcu Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Query Browser Severity:S2 (Serious)
Version:1.1.12 OS:Linux (Slackware 10.1 (Linux 2.4))
Assigned to: Mike Hillyer CPU Architecture:Any

[10 Sep 2005 21:09] Catalin Hritcu
Description:
As you probably already know Slackware doesn't ship with a Gnome distribution, and actually few people install Gnome afterwards. I don't (want to) have Gnome installed, but I tried to install the MySQL Query Browser anyway. The documentation of MySQL Query Browser (http://dev.mysql.com/doc/query-browser/en/mysql-query-browser-installation-linux.html) states clearelly: "MySQL Query Browser runs on Linux machines that have a graphical desktop installed. It is designed to run under the Gnome desktop, but you may also use other desktops, such as KDE, as long as GTK2 is installed."

Well, it does not work for me (and for many other Slackware/KDE users) even though I do have GTK2 (gtk+2-2.6.8) installed. First it asks for libgconf-2.so.4. If I install this (and all it's dependencies) then it asks for libgnomevfs-2.so.0, but I didn't install this too, because it has dependencies, and I really don't want to have to whole Gnome installed on my machine.

How to repeat:
Just run these two commands on a machine with no Gnome installed:

tar --directory=/opt -xzvf mysql-query-browser-1.1.12-linux.tar.gz
/opt/mysql-query-browser/bin/mysql-query-browser

This is what I get:
/opt/mysql-query-browser/bin/mysql-query-browser-bin: error while loading shared libraries: libgconf-2.so.4: cannot open shared object file: No such file or directory

Suggested fix:
You can either fix the documentation, and state explicitly that MySQL Query Browser requires Gnome, or try to eliminate the dependency. Otherwise all you get is confused users.
[10 Sep 2005 22:39] Hartmut Holzgraefe
verified, the following list of packages needs to be installed (on SuSE 9.3):

atk-1.9.1-4
gconf2-2.10.0-5
glib2-2.6.3-4
gnome-vfs2-2.10.0-14.2
gtk2-2.6.4-6
libbonobo-2.8.1-4
orbit2-2.12.1-4
pango-1.8.1-4

the full list of gnome-related library dependencies is:

hartmut in ~/new/mysql-query-browser-1.1.12/bin on linux
bin > ldd mysql-query-browser-bin  | grep gnome
        libgconf-2.so.4 => /opt/gnome/lib/libgconf-2.so.4 (0x40200000)
        libgnomevfs-2.so.0 => /opt/gnome/lib/libgnomevfs-2.so.0 (0x40232000)
        libORBit-2.so.0 => /opt/gnome/lib/libORBit-2.so.0 (0x40290000)
        libgthread-2.0.so.0 => /opt/gnome/lib/libgthread-2.0.so.0 (0x402e3000)
        libpangoft2-1.0.so.0 => /opt/gnome/lib/libpangoft2-1.0.so.0 (0x402fd000)
        libgtk-x11-2.0.so.0 => /opt/gnome/lib/libgtk-x11-2.0.so.0 (0x40323000)
        libgdk-x11-2.0.so.0 => /opt/gnome/lib/libgdk-x11-2.0.so.0 (0x405eb000)
        libatk-1.0.so.0 => /opt/gnome/lib/libatk-1.0.so.0 (0x4083f000)
        libgdk_pixbuf-2.0.so.0 => /opt/gnome/lib/libgdk_pixbuf-2.0.so.0 (0x40858000)
        libpangoxft-1.0.so.0 => /opt/gnome/lib/libpangoxft-1.0.so.0 (0x40890000)
        libpangox-1.0.so.0 => /opt/gnome/lib/libpangox-1.0.so.0 (0x40897000)
        libpango-1.0.so.0 => /opt/gnome/lib/libpango-1.0.so.0 (0x408a2000)
        libgobject-2.0.so.0 => /opt/gnome/lib/libgobject-2.0.so.0 (0x408da000)
        libgmodule-2.0.so.0 => /opt/gnome/lib/libgmodule-2.0.so.0 (0x4090e000)
        libglib-2.0.so.0 => /opt/gnome/lib/libglib-2.0.so.0 (0x40917000)
        libORBitCosNaming-2.so.0 => /opt/gnome/lib/libORBitCosNaming-2.so.0 (0x409b6000)
        libbonobo-2.so.0 => /opt/gnome/lib/libbonobo-2.so.0 (0x409f0000)
        libbonobo-activation.so.4 => /opt/gnome/lib/libbonobo-activation.so.4 (0x40a49000)
[3 Oct 2005 8:48] Vladimir Kolesnikov
Mike, I'm assigning this one too as currently we cannot avoid dependency on gnome, as the libraries we use depend on it, so the documentation has to be updated
[3 Oct 2005 22:47] Mike Hillyer
Updated documentation to read as follows:

<para>
        &query_browser; runs on Linux machines that have a graphical
        desktop installed. It is designed to run under the Gnome
        desktop with GTK2. It has been tested on Linux kernel
        versions 2.4 and 2.6, but it should also run on other versions,
        and even on a number of Unix-like operating systems.
      </para>

This should give a hint to an ambitious non-Gnome uses to install GTK2, but makes no non-Gnome compatability promises.
[31 Oct 2005 14:12] Marco G.A. Ferrero
I wanto to remember that GNOME is not the only graphical desktop for *nix systems. So I suggest to use a cross-platform graphical toolkit like wxWidgets for GTK for example for an advanced graphical environment or to use the simpler GTK toolkit without dependencies on GNOME.