Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re^2: Windows/Linux System Tray and tk

by deadpickle (Pilgrim)
on Jul 15, 2007 at 20:12 UTC ( [id://626735]=note: print w/replies, xml ) Need Help??


in reply to Re: Windows/Linux System Tray and tk
in thread Windows/Linux System Tray and tk

I was going to try and test Gtk2::TrayIcon. I went to install the module and recieved this error:
CPAN.pm: Going to build T/TS/TSCH/Gtk2-1.145.tar.gz *** can not find package gtk+-2.0 >= 2.0.0 *** check that it is properly installed and available in PKG_CONFIG_PA +TH at Makefile.PL line 67 Warning: No success on command[/usr/bin/perl Makefile.PL INSTALLDIRS=s +ite] TSCH/Gtk2-1.145.tar.gz /usr/bin/perl Makefile.PL INSTALLDIRS=site -- NOT OK Running make test Make had some problems, won't test Running make install Make had some problems, won't install Failed during this command: TSCH/Gtk2-1.145.tar.gz : writemakefile NO '/usr +/bin/perl Makefile.PL INSTALLDIRS=site' returned status 2304
I believe that Gtk2 is installed since I have ran programs that used it before. Any ideas on how to fix this?

Replies are listed 'Best First'.
Re^3: Windows/Linux System Tray and tk
by zentara (Archbishop) on Jul 15, 2007 at 22:20 UTC
    Perl/Gtk2 is based on the c Gtk2 libs, so you need to install the c libs before the Perl modules that interface to them. Your linux distribution may have the runtime Gtk2 (Gnome libs) as a separate package, with the "devel libs" in another rpm (or whatever). SO if you can run Gtk2 programs, but can't compile them, install the "gtk2-gnome devel" package.

    If that is not possible, get the c libs yourself See Perl/Gtk2 Faq

    The basic libs are only needed, not the entire Gnome library set. They must be installed in a certain order

    pkgconfig cairo glib pango atk gtk2
    You usually have to keep the same pkgconfig location.... defaults to /usr/local, but it's easiest to keep them in /usr, so when you configure them, do
    ./configure --prefix=/usr

    Get the latest versions from Gtk+ downloads then install in the order above, then install the Perl modules in the same order.


    I'm not really a human, but I play one on earth. Cogito ergo sum a bum
      Simply enough, I did not think of looking in the Synaptic Package Manager. Ubuntu 7.04 includes this Perl Module in the SPM.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others cooling their heels in the Monastery: (7)
As of 2024-04-24 00:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found