Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

install Gtk2::GladeXML

by promachos (Initiate)
on Jul 25, 2009 at 09:42 UTC ( [id://783153]=perlquestion: print w/replies, xml ) Need Help??

promachos has asked for the wisdom of the Perl Monks concerning the following question:

My aim : install Gtk2::GladeXML CPAN Module : http://search.cpan.org/~tsch/Gtk2-GladeXML-1.007/ Perl environnement I've installed succesfully the Gtk2 module and its dependancies and dowload the latest Glade version 3x bundle with GTK+ perl >= 5.8.0 Glib >= 1.02 (perl module) Gtk2 >= 1.00 (perl module) I've installed this perl module using ppm libglade-2.0 (C library) =>>> This is my PROBLEM seee below Also after installing glade I've set up manually PKG_CONFIG_PATH on y variable system (This cancel out the error of libxml2.0.ppc missing) The error I've got when I run the perl MakeFile.pl is follow : Set up gcc environment - 4.4.0 at Makefile.PL line 48 *** can not find package libglade-2.0 >= 2.0.0 *** check that it is properly installed and available in PKG_CONFIG_PATH at Makefile.PL line 48 I've check on my directory and can see libglade-2.0.pc and libxml-2.0.pc in C:\Program Files\Common Files\GTK\2.0\lib\pkgconfig Why does my perl MakeFile.pl cannot be run ? Thanks for your helps . My configuration : OS windows Vista . GCC :dmake with MinGcc Perl : ActivePerl last version My variables on Win: GTK_BASEPATH C:\PROGRA~1\COMMON~1\GTK\2.0 My variable in windows Vista are : PKG_CONFIG_PATH C:\Program Files\Common Files\GTK\2.0\lib\pkgconfig

Replies are listed 'Best First'.
Re: install Gtk2::GladeXML
by syphilis (Archbishop) on Jul 25, 2009 at 10:14 UTC
    What package was it that you installed using ppm ?
    What is the actual module you're trying to build that throws up the error you've reported ?

    Check that libglade-2.0.pc contains the info that it ought to contain.
    Other than that, I'm wondering whether it's just some naming problem - expecting a pc file of a slightly different name, or the pc file specifies something that is not quite correct.

    What does libglade-2.0.pc contain ?

    Cheers,
    Rob

    UPDATE: I wonder if it's just that ExtUtils::PkgConfig regards 2.0 as *not* being greater than or equal to 2.0.0, and is complaining about that.
      I'm trying to install this module : http://search.cpan.org/~tsch/Gtk2-GladeXML-1.007/ perl MakeFile.PL dmake (win)/ Make (unix) ... => I still don't understand what can I do to solve this problem. I'm wishing to use so much Glade& Perl together! cheers Antoine My configuration is based on ActivePerl PErl Version : This is perl, v5.10.0 built for MSWin32-x86-multi-thread ExtUtils-PkgConfig-1.12 Glib-1.221 Gtk2-1.183 I've installed the following using ppm. (executed via cmd.exe) http://search.cpan.org/dist/ExtUtils-Depends-0.302/ http://search.cpan.org/dist/ExtUtils-PkgConfig-1.12/ http://search.cpan.org/dist/Glib-1.221/ http://search.cpan.org/dist/Gtk2-1.183/ My libglade-2.0.pc contain the following : C:\Program Files\Common Files\GTK\2.0\lib prefix=/target exec_prefix=${prefix} libdir=${exec_prefix}/lib includedir=${prefix}/include # so people can do "pkg-config --variable moduledir libglade-2.0" # (which is broken - users can now use the LIBGLADE_MODULE_PATH # environment variable moduledir=${libdir}/libglade/2.0 Name: Libglade Description: a library for dynamically loading GLADE interface files Version: 2.6.2 Requires: gtk+-2.0 libxml-2.0 Libs: -L${libdir} -lglade-2.0 Cflags: -I${includedir}/libglade-2.0 perl Makefile.PL The output of the mistake : Set up gcc environment - 4.4.0 at Makefile.PL line 48 *** can not find package libglade-2.0 >= 2.0.0 *** check that it is properly installed and available in PKG_CONFIG_PATH at Makefile.PL line 48
        I still don't understand what can I do to solve this problem

        It's a bit hard for me to really know without going through the process myself. (I'm not familiar with the finer points of ExtUtils::PkgConfig.) From where did you get the ppm package that you installed ? Also from where did you get the requisite C libraries ?
        I'll try to install the same stuff and see if I can work out what's going wrong.

        In the meantime, at aprroximately line 51 of the Makefile.PL, you'll see exit 0;
        I would try commenting that line out ... then re-run 'perl Makefile.PL' and see what happens. If the makefile gets written, run 'dmake' and see how it all goes.

        Cheers,
        Rob
Re: install Gtk2::GladeXML
by Anonymous Monk on Jul 27, 2009 at 01:20 UTC
      Bah, typo s/gtk-bundle/gtk_bundle/g;
        And I now have a ppm package for Gtk2-GladeXML-1.007. Anyone wanta it, just /msg me and I'll send it over. (It's for perl-5.10, though I could probably provide the same for 5.8 if needed.)

        Cheers,
        Rob
Re: install Gtk2::GladeXML
by syphilis (Archbishop) on Jul 26, 2009 at 05:34 UTC
    For me, the Makefile.PL runs to completion as long as libglade-2.0.pc can be found (in PKG_CONFIG_PATH) and contains at least:
    Name: Libglade Description: a library for dynamically loading GLADE interface files Version: 2.6.4
    It doesn't seem to matter what else (if anything) is included in libglade-2.0.pc - and it doesn't seem to matter whether the libglade-2.0 installation can be found (or even if it exists). Running 'dmake' still fails because MakeMaker hasn't found any of the libraries - and I'm not sure how one is supposed to remedy that. This looks like a complete and utter mess to me.

    What do you get between the Set up gcc environment - 4.4.0 and the at Makefile.PL line 48 *** can not find package... ?

    Cheers,
    Rob

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others examining the Monastery: (5)
As of 2025-04-22 14:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.