Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?

[OT] Problem installing Mozilla::Mechanize

by Gangabass (Vicar)
on Nov 13, 2007 at 08:13 UTC ( #650456=perlquestion: print w/replies, xml ) Need Help??

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

When installing Glib i got following error:

127:~/.cpan/build/Glib-1.162# perl Makefile.PL
Including ApiDoc pod...
Deleting Glib::Object::_LazyLoader from's $data
Deleting Glib from'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.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://650456]
Approved by Corion
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (4)
As of 2020-07-06 18:01 GMT
Find Nodes?
    Voting Booth?

    No recent polls found