Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: how to detect gtk installed or not

by Anonymous Monk
on Jan 14, 2013 at 01:53 UTC ( #1013146=note: print w/ replies, xml ) Need Help??


in reply to how to detect gtk installed or not

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.

That is something you do at install time, say, with your package manager

Alien::wxWidgets won't install if the gtk... files are missing, and Wx won't install if Alien::wxWidgets isn't installed

OTOH, http://www.citrusperl.com/ allows you to create a perl distribution with wx installed (and anything else you install)

OTOH, http://www.cavapackager.com/ allows you to create installable binaries (not a whole perl distribution), with Wx installed (and anything else you install)

So there you go, don't try launch gui if  eval { require TheGui; } fails


Comment on Re: how to detect gtk installed or not
Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1013146]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (6)
As of 2014-09-22 11:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (189 votes), past polls