in reply to Re^4: [OT] Problem installing Mozilla::Mechanize
in thread [OT] Problem installing Mozilla::Mechanize

I spent one hour trying to find how in Debian one of the following packaged named

You're using the wrong tools:

$ apt-cache search gtkmozembed libgecko2.0-cil - CLI binding for the GtkMozEmbed library, unstable ve +rsion libgtk-mozembed-ruby - ruby binding of GtkMozEmbed, gecko renderer libxul-common - Gecko engine library - common files libxul-dev - Development files for the Gecko engine library libxul0d - Gecko engine library libxul0d-dbg - Development files for the Gecko engine library

My guess is that it's the libxul-dev package, but you have to try that out by yourself.

Btw a usefull links is packges.debian.org, you can search for package contents there.

Replies are listed 'Best First'.
Re^6: [OT] Problem installing Mozilla::Mechanize
by Gangabass (Vicar) on Nov 13, 2007 at 15:10 UTC

    Thanks for apt-cache search! Why did you does not tell it to me before? :-) This really helps me to solve gtkmozembed problem but i have new one (i hope the last) -- i can't install Mozilla::DOM.

    Here is error message:

    127:~/.cpan/build/Mozilla-DOM-0.21# perl Makefile.PL Package mozilla-xpcom was not found in the pkg-config search path. Perhaps you should add the directory containing `mozilla-xpcom.pc' to the PKG_CONFIG_PATH environment variable No package 'mozilla-xpcom' found Package firefox-xpcom was not found in the pkg-config search path. Perhaps you should add the directory containing `firefox-xpcom.pc' to the PKG_CONFIG_PATH environment variable No package 'firefox-xpcom' found Package mozilla-firefox-xpcom was not found in the pkg-config search p +ath. Perhaps you should add the directory containing `mozilla-firefox-xpcom +.pc' to the PKG_CONFIG_PATH environment variable No package 'mozilla-firefox-xpcom' found *** can not find package for any of (mozilla-xpcom >= 1.7, firefox-xpc +om >= 1.0, mozilla-firefox-xpcom >= 1.0) *** check that one of them is properly installed and available in PKG_ +CONFIG_PATH at Makefile.PL line 43

    As i realize i need mozilla-xpcom and i install all packages that apt-cache search list to me. But i can't find where mozilla-xpcom.pc is located (i looked at /usr/lib/pkgconfig).

    Can you suggest something?

Re^6: [OT] Problem installing Mozilla::Mechanize
by Anonymous Monk on May 07, 2008 at 12:52 UTC
    I believe the package is libxul-dev. The following patch, applied to Mozilla::DOM's Makefile.PL resolves the dependency and allows a compile and test to work successfully (at least for me on Debian SID).
    --- Makefile.PL 2007-06-06 22:40:06.000000000 +0200 +++ /home/reenen/tmp/Makefile.PL 2008-05-07 14:41:16.204005 +648 +0200 @@ -14,6 +14,7 @@ # someone mentioned adding iceweasel (debian), but I don't # know how it's called +my $icepkg = 'xulrunner-xpcom'; my $mozpkg = 'mozilla-xpcom'; my $ffpkg = 'firefox-xpcom'; my $mffpkg = 'mozilla-firefox-xpcom'; @@ -21,6 +22,7 @@ our %build_reqs = ( 'perl-ExtUtils-Depends' => '0.205', 'perl-ExtUtils-PkgConfig' => '1.07', + $icepkg => '1.7', $mozpkg => '1.7', $ffpkg => '1.0', $mffpkg => '1.0', @@ -40,7 +42,8 @@ exit 1; # not reached } -my %pkgcfg = ExtUtils::PkgConfig->find("$mozpkg >= " . $build_req +s{$mozpkg}, +my %pkgcfg = ExtUtils::PkgConfig->find( "$icepkg >= " . $build_re +qs{$icepkg}, + "$mozpkg >= " . $build_req +s{$mozpkg}, "$ffpkg >= " . $build_reqs +{$ffpkg}, "$mffpkg >= " . $build_req +s{$mffpkg});