On my home system under Mac OS X Leopard, I seem to have broken /usr/bin/perl for certain scripts. For example,
dual-1-25:~/.cpan/build $ perl -MCPAN -e "shell" IO object version 1.22 does not match bootstrap parameter 1.23 at /Sys +tem/Library/Perl/5.8.8/darwin-thread-multi-2level/XSLoader.pm line 97 Compilation failed in require at /System/Library/Perl/5.8.8/darwin-thr +ead-multi-2level/IO/Handle.pm line 263.
The older version (presumably Apple original) in /usr/local/bin has no such problem. Both versions say they're 5.8.8. Also, /usr/bin/perl (which takes precedence over /usr/local/bin/perl) is suspiciously small at 47KB compared to 1203KB for /usr/local/bin/perl.

I don't remember what I did to get to this state. The date on /usr/bin/perl is in Jan of this year, so maybe I built it from source. Re-installing XSLoader and IO::Handle (from CPAN using /usr/local/bin/perl) did not help.

What would you do to fix this? Copy or link /usr/bin/perl* from /usr/local/bin? Install a newer version in /usr/bin? Does anyone know if I install a new Apple XTools package, will it create new /usr/bin/perl*?

Thanks,
cmac

In reply to Broken /usr/bin/perl by cmac

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.