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

Installing Glib on Debian

by morgon (Curate)
on Feb 22, 2013 at 00:07 UTC ( #1020022=perlquestion: print w/replies, xml ) Need Help??
morgon has asked for the wisdom of the Perl Monks concerning the following question:

Hi

I am having troubles installing Glib for a self-compiled perl on a Debian-system.

On a similar machine I recently installed it without any issues, but now I have this problem:

Running perl Makefile.PL gives these warnings:

Note (probably harmless): No library found for -lgobject-2.0 Note (probably harmless): No library found for -lglib-2.0
Running make compiles a Glib.so, but finally I get this error:

Can't load 'blib/arch/auto/Glib/Glib.so' for module Glib: blib/arch/auto/Glib/Glib.so: undefined symbol: g_direct_hash at /home/mh/perl514/lib/5.14.1/x86_64-linux/DynaLoader.pm line 190.

As far as I can tell I have all necessary prerequisites installed...

Any advice on how to attack this?

Many thanks!

Replies are listed 'Best First'.
Re: Installing Glib on Debian
by Anonymous Monk on Feb 22, 2013 at 00:19 UTC

    As far as I can tell I have all necessary prerequisites installed...

    What are they?

    gobject-2.0 is one of them, as is glib-2.0, and they appear to be missing

    Any advice on how to attack this?

    install gobject/glib/pkg-config

    Maybe  apt-get install perl-gnome2 , something like that

      install gobject/glib/pkg-config
      I have all of that.

      Note that if I didn't the configuration-step would already fail as MakeMaker checks for that.

      But for whatever reason I only get a warning (something I dit not get on the other machine) and a .so is compiled but that does not seem to work. Unfortunately both perl-version and library-versions are slightly different on my other machine...

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://1020022]
Approved by Corion
help
Chatterbox?
[Lady_Aleena]: Would you use a module that is almost 150 characters to type with the use and importing all subroutines?
[LanX]: use module :all ?
[Lady_Aleena]: Lax, that would take it down to a little less than 100 characters. The module name is nearly 80 characters long.
Lady_Aleena has fumble fingers today.
[Lady_Aleena]: Sorry for the name typo LanX.
[LanX]: never lad_ena!
[LanX]: ;)
[Lady_Aleena]: IMO, Fancy::Join:: Grammatical isn't bad, but RolePlaying:: WorldBuilding:: WorldBuildersGuide book::ClimateTerra inSubsistance is on the long side.

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (9)
As of 2017-05-24 21:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?