Hello, wise Perl friends.

I have spent the better part of the night attempting to install WWW::Mechanize, researching issues, and repeatedly repairing permissions via my OS X Disk Utility to no avail. The key word 'permissions' keeps reappearing although I've tried typing "sudo" before everything and entering my password and that doesn't help. I hope the problem is with the module and not my configuration of Perl, but just in case, here's what it's telling me:

Test Summary Report ------------------- t/local/click_button.t (Wstat: 0 Tests: 19 Failed: 0) TODO passed: 15-17, 19 t/local/nonascii.t (Wstat: 65280 Tests: 4 Failed: 0) Non-zero exit status: 255 Parse errors: Bad plan. You planned 5 tests but ran 4. Files=54, Tests=578, 19 wallclock secs ( 0.34 usr 0.17 sys + 9.18 cu +sr 1.39 csys = 11.08 CPU) Result: FAIL Failed 1/54 test programs. 0/578 subtests failed. make: *** [test_dynamic] Error 255 JESSE/WWW-Mechanize-1.68.tar.gz /usr/bin/make test -- NOT OK //hint// to see the cpan-testers results for installing this module, t +ry: reports JESSE/WWW-Mechanize-1.68.tar.gz Running make install make test had returned bad status, won't install without force Failed during this command: JESSE/WWW-Mechanize-1.68.tar.gz : make_test NO

As I said, I've tried repairing permissions, tried updating CPAN, I even installed cpanm and tried cpanm WWW::Mechanize. I got a different failure under that:

! ! Can't write to /Library/Perl/5.10.0 and /usr/local/bin: Installing m +odules to /Users/Jared/perl5 ! To turn off this warning, you have to do one of the following: ! - run me as a root or with --sudo option (to install to /Library/P +erl/5.10.0 and /usr/local/bin) | - run me with --local-lib option e.g. cpanm --local-lib=~/perl5 ! - Set PERL_CPANM_OPT="--local-lib=~/perl5" environment variable (i +n your shell rc file) ! - Configure local::lib in your shell to set PERL_MM_OPT etc. ! --> Working on WWW::Mechanize Fetching http://search.cpan.org/CPAN/authors/id/J/JE/JESSE/WWW-Mechani +ze-1.68.tar.gz ... OK Configuring WWW-Mechanize-1.68 ... OK Building and testing WWW-Mechanize-1.68 ... FAIL ! Installing WWW::Mechanize failed. See /Users/Jared/.cpanm/build.log +for details.

Monks, I am truly at my wits end with this and hoping I did not permanently disfigure some 'behind the scenes' aspects of my operating system in which I am woefully ill-versed. Thank you for your help.


In reply to Hell of a time installing module WWW::Mechanize by cat_baby

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.