http://www.perlmonks.org?node_id=1020022

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...