Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked

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, allows you to create a perl distribution with wx installed (and anything else you install)

OTOH, 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

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1013146]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (6)
As of 2017-03-27 04:07 GMT
Find Nodes?
    Voting Booth?
    Should Pluto Get Its Planethood Back?

    Results (315 votes). Check out past polls.