http://qs321.pair.com?node_id=650456

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

Hi guys.

You always help me so i hope you show me the way this time too.

First i'm sure it's not Perl problem but Debian. I must install Mozilla::Mechanize on Debian. I'm install make, pkg-config and many modules but... now i need Glib.pm.

When installing Glib i got following error:

127:~/.cpan/build/Glib-1.162# perl Makefile.PL
Including ApiDoc pod...
Deleting Glib::Object::_LazyLoader from doc.pl's $data
Deleting Glib from doc.pl's $data
Package gobject-2.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `gobject-2.0.pc'
to the PKG_CONFIG_PATH environment variable
No package 'gobject-2.0' found
*** can not find package gobject-2.0 >= 2.0.0
*** check that it is properly installed and available in PKG_CONFIG_PATH
 at Makefile.PL line 92

Unfortunately i don't know so much about Debian so i need your help. How i can install gobject-2.0 package? How i can find it if i already have it installed?

Maybe i can install Gtk2 (it's needed by Mozilla::Mechanize) without Glib? Or maybe i can skip gobject-2.0 checking?

Thanks for your help.

  • Comment on [OT] Problem installing Mozilla::Mechanize

Replies are listed 'Best First'.
Re: [OT] Problem installing Mozilla::Mechanize
by moritz (Cardinal) on Nov 13, 2007 at 08:43 UTC
    Try installing the debian package libgnetwork1.0-dev

      Thanks! It worked now. But i can't make :-(

      Here is my new error:

      cc -c -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -pthread -I +. -D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS -DDEBIAN -fno-strict +-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFS +ET_BITS=64 -O2 -DVERSION=\"1.162\" -DXS_VERSION=\"1.162\" -o Glib.o + -fPIC "-I/usr/lib/perl/5.8/CORE" Glib.c /bin/sh: cc: command not found make: *** [Glib.o] Error 127

      I realize what the problem is in the "cc" command but how i can find it for Debian? Please sorry for diverting you but i try to googling and find nothing :-(

      Edit by castaway - replaced pre tags with code tags

        Install build-essential.