From: Joe Van Dyk Date: 2005-09-27T07:20:39+09:00 Subject: Re: ruby-gnome2 querying of installed library versions On 9/26/05, Joe Van Dyk wrote: > On 9/26/05, Joe Van Dyk 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). 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.