scubacuda has asked for the wisdom of the Perl Monks concerning the following question:

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.

  • Comment on upgraded Macports broke working Perl environment

Replies are listed 'Best First'.
Re: upgraded Macports broke working Perl environment
by Corion (Patriarch) on Mar 21, 2011 at 20:49 UTC

    Most likely, your upgrade of Macports left behind installed modules with the old version of Perl. You will need to reinstall all modules that got left behind. Maybe the Macports (whatever that is) also offers packaged Perl modules?

    Your secondary error seems to be somehow related to permissions of the directory /users/UserName/.cpan or something below it. You don't show the permissions, so I can only guess, but you will need to give the user running perl -MCPAN -e 'shell' the appropriate permissions for the directory.