My Perl environment was working well on my Macbook, until I ran a ports upgrade on Macports.

Now I get the following error when I try to run the scripts:

**************************

Can't locate Net/Telnet.pm in @INC (@INC contains: /Library/Perl/Updates/5.10.0 /System/Library/Perl/5.10.0/darwin-thread-multi-2level /System/Library/Perl/5.10.0 /Library/Perl/5.10.0/darwin-thread-multi-2level /Library/Perl/5.10.0 /Network/Library/Perl/5.10.0/darwin-thread-multi-2level /Network/Library/Perl/5.10.0 /Network/Library/Perl /System/Library/Perl/Extras/5.10.0/darwin-thread-multi-2level /System/Library/Perl/Extras/5.10.0 .) at runcmds.pl line 39. BEGIN failed--compilation aborted at runcmds.pl line 39.

**************************

When I try to upgrade it (perl -MCPAN -e'shell' THEN install Net::Telnet), I get the following error

Scanning cache /Users/UserName/.cpan/build for sizes ...I have neither the -x permission nor the permission to change the permission; cannot estimate disk usage of '/Users/UserName/.cpan/build/Module-Build-0.3607-I4zUIB' CPAN: Time::HiRes loaded ok (v1.9711) I have neither the -x permission nor the permission to change the permission; cannot estimate disk usage of '/Users/UserName/.cpan/build/ExtUtils-ParseXS-2.2206-B4lARK' .I have neither the -x permission nor the permission to change the permission; cannot estimate disk usage of '/Users/UserName/.cpan/build/Archive-Tar-1.68-iBgXA9' I have neither the -x permission nor the permission to change the permission; cannot estimate disk usage of '/Users/UserName/.cpan/build/Package-Constants-0.02-J8ScNh' .I have neither the -x permission nor the permission to change the permission; cannot estimate disk usage of '/Users/UserName/.cpan/build/CPAN-1.9402-XsnneC' .I have neither the -x permission nor the permission to change the permission; cannot estimate disk usage of '/Users/UserName/.cpan/build/File-HomeDir-0.93-MvF95u' .I have neither the -x permission nor the permission to change the permission; cannot estimate disk usage of '/Users/UserName/.cpan/build/Mac-SystemDirectory-0.04-nG1jlE' I have neither the -x permission nor the permission to change the permission; cannot estimate disk usage of '/Users/UserName/.cpan/build/File-Which-1.09-oiS6yg' .I have neither the -x permission nor the permission to change the permission; cannot estimate disk usage of '/Users/UserName/.cpan/build/Test-Script-1.07-O5EI9k'

Any suggestions? Macglue ("install Mac::Glue") is up to date.


In reply to upgraded Macports broke working Perl environment by scubacuda

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.