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});

In reply to Re^6: [OT] Problem installing Mozilla::Mechanize by Anonymous Monk
in thread [OT] Problem installing Mozilla::Mechanize by Gangabass

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.