Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change

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 rifling through the Monastery: (5)
As of 2018-02-17 19:50 GMT
Find Nodes?
    Voting Booth?
    When it is dark outside I am happiest to see ...

    Results (249 votes). Check out past polls.