ruby-gnome2 querying of installed library versions

J

Joe Van Dyk

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
 
J

Joe Van Dyk

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).
 
J

Joe Van Dyk

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).

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.
 
M

Masao Mutoh

Hi,

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top