Ruby-gnome2 querying of installed library versions

Hi,

Some of my applications that use ruby-gnome2 require a recent version
of the following libraries installed:

libart_lgpl
libgnomecanvas
ruby-gnome2

I'd like to be able to check to make sure that the necessary libraries
are installed before the GUI is loaded, and if they're not, then spit
out some message to the user and quit.

So what are my options?

Thanks,
Joe

Oh, btw, I know that it's possible to check the installed Gtk version
via Gtk.check_version? but I've not been able to find options for
libart, libgnomecanvas, and ruby-gnome2 (I need to check that the
ruby-gnome2 libraries for the Art and Canvas have been compiled
against the recent libraries and not the old ones).

···

On 9/26/05, Joe Van Dyk <joevandyk@gmail.com> wrote:

Hi,

Some of my applications that use ruby-gnome2 require a recent version
of the following libraries installed:

libart_lgpl
libgnomecanvas
ruby-gnome2

I'd like to be able to check to make sure that the necessary libraries
are installed before the GUI is loaded, and if they're not, then spit
out some message to the user and quit.

So what are my options?

Some searching found the PKGConfig module in the glib directory. It's
a wrapper around the pkg-config command. Very nice.

Now finally, how can I tell, for example, if ruby-gnome2 was compiled
against a recent version of libgnomecanvas? I can tell, using the
PKGConfig module, that a recent version of libgnomecanvas is
installed, but I'm not sure yet how to tell that ruby-gnome2 was
compiled against it.

···

On 9/26/05, Joe Van Dyk <joevandyk@gmail.com> wrote:

On 9/26/05, Joe Van Dyk <joevandyk@gmail.com> wrote:
> Hi,
>
> Some of my applications that use ruby-gnome2 require a recent version
> of the following libraries installed:
>
> libart_lgpl
> libgnomecanvas
> ruby-gnome2
>
> I'd like to be able to check to make sure that the necessary libraries
> are installed before the GUI is loaded, and if they're not, then spit
> out some message to the user and quit.
>
> So what are my options?

Oh, btw, I know that it's possible to check the installed Gtk version
via Gtk.check_version? but I've not been able to find options for
libart, libgnomecanvas, and ruby-gnome2 (I need to check that the
ruby-gnome2 libraries for the Art and Canvas have been compiled
against the recent libraries and not the old ones).

Hi,

···

On Tue, 27 Sep 2005 07:20:39 +0900 Joe Van Dyk <joevandyk@gmail.com> wrote:

Now finally, how can I tell, for example, if ruby-gnome2 was compiled
against a recent version of libgnomecanvas? I can tell, using the
PKGConfig module, that a recent version of libgnomecanvas is
installed, but I'm not sure yet how to tell that ruby-gnome2 was
compiled against it.

Now, ruby-gnome2 doesn't have such APIs.

But I agree it's useful.

I'll try to add to retrieve compiled version such as
Gnome::Canvas::BUILD_VERSION, Gtk::BUILD_VERSION.

--
.:% Masao Mutoh<mutoh@highway.ne.jp>