I've got 5.8.1 installed in the default locations set by Apple, but cannot get CPAN to install HTML::Parser and friends.

Logged in as root, I do the standard perl -MCPAN -e 'shell', and install HTML::Parser. I notice that it's complaining about not finding /usr/local/lib. Weird that it can't create the directories it requires since I'm root, but whatever, I create it manually. Now the error looks like this:

Checking if your kit is complete... Looks good Writing Makefile for HTML::Parser cp lib/HTML/LinkExtor.pm blib/lib/HTML/LinkExtor.pm cp lib/HTML/Entities.pm blib/lib/HTML/Entities.pm cp Parser.pm blib/lib/HTML/Parser.pm cp lib/HTML/TokeParser.pm blib/lib/HTML/TokeParser.pm cp lib/HTML/HeadParser.pm blib/lib/HTML/HeadParser.pm cp lib/HTML/Filter.pm blib/lib/HTML/Filter.pm cp lib/HTML/PullParser.pm blib/lib/HTML/PullParser.pm /usr/bin/perl /System/Library/Perl/5.8.1/ExtUtils/xsubpp -typemap /Sy +stem/Library/Perl/5.8.1/ExtUtils/typemap -typemap typemap Parser.xs +> Parser.xsc && mv Parser.xsc Parser.c /usr/bin/perl mkhctype >hctype.h /usr/bin/perl mkpfunc >pfunc.h cc -c -g -pipe -pipe -fno-common -DPERL_DARWIN -no-cpp-precomp -fno- +strict-aliasing -I/usr/local/include -Os -DVERSION=\"3.36\" -DXS_VE +RSION=\"3.36\" "-I/System/Library/Perl/5.8.1/darwin-thread-multi-2le +vel/CORE" -DMARKED_SECTION Parser.c Running Mkbootstrap for HTML::Parser () chmod 644 Parser.bs rm -f blib/arch/auto/HTML/Parser/Parser.bundle LD_RUN_PATH="" MACOSX_DEPLOYMENT_TARGET=10.3 cc -bundle -undefined dy +namic_lookup -L/usr/local/lib Parser.o -o blib/arch/auto/HTML/Parser +/Parser.bundle ld: can't locate file for: -lbundle1.o make: *** [blib/arch/auto/HTML/Parser/Parser.bundle] Error 1 /usr/bin/make -- NOT OK Running make test Can't test without successful make Running make install make had returned bad status, install seems impossible

Any suggestions? Thanks, djantzen


In reply to Trouble Installing HTML::Parser on MacOS X by djantzen

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.