|The stupid question is the question not asked|
how to detect gtk installed or notby sdetweil (Sexton)
|on Jan 13, 2013 at 14:20 UTC||Need Help??|
sdetweil has asked for the
wisdom of the Perl Monks concerning the following question:
continuing with my multi-platform app
I have this app which runs on multiple platforms, windows,linux, aix, solaris, hpux, and hopefully soon z/linux
it was built as a console app to minimize the runtime dependencies. the shell script prompt for all the parms not specified, has --help support, etc..
but my users find the commandline ugly and want a gui wrapper..
so we have added a wxPerl shell to launch the shell script. but it depends on gtk and a bunch of other system files, that may NOT be installed. I had the same problem with the commandline for xpath, and was able to package a workable copy of the libexpat.so for the duration of my runtime.
I don't want to try that for the gui.. some 25 so's at least.
so, if I write another shell script to launch the gui, how can I detect if the dependent stuff is installed or not? gtk, ... many of the systems this app would run on are servers, and the gui components are intentionally not installed.