in reply to CPAN won't work on Mountain Lion following attempt to install Bundle::CPAN

Very definitely, you need to approach this from the point-of-view of “installing Perl as a non-root user” on a shared-hosting machine:   one does not touch, for any reason, the native Perl installation or configuration on the host machine.   You need to define your own local package repository, install your local versions of whatever-you-need there, and make very sure that nothing that you do (or consider doing) has anything to do with “root privileges.”

Mountain Lion, like Lion, changed the “native” Perl version.   It’s a long way from both Leopard and Snow Leopard.   (And for what it’s worth, I can tell you with authority that there are groups at Apple that were somewhat vexed by this.)   So, you are quite comparing apples and oranges in this case.

Replies are listed 'Best First'.
Re^2: CPAN won't work on Mountain Lion following attempt to install Bundle::CPAN
by tshori (Initiate) on Feb 06, 2013 at 12:02 UTC
    Thanks, everyone. I am really new at this, so anything helps. I have another question. So I set an virtual machine so I can try this things without ruining the system. I followed the suggestion and now I am using perlbrew, with perl 5.16. However, if I try to run cpan now without sudo, it tells me it can't do the installation. I checked the report and it is trying to install the module on the perlbrew folder. What am I doing wrong? You guys indicated that I should not install anything with root privileges, so I am avoiding doing that. Thanks!

    T.