Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things

I broke my system with cpan

by Anonymous Monk
on Jul 06, 2013 at 16:57 UTC ( #1042927=perlquestion: print w/replies, xml ) Need Help??
Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

After using /usr/bin/cpan to update many modules, I've gotten versions confused:

$ perldoc perldoc Encode object version 2.42_01 does not match bootstrap parameter 2.51 +at /usr/lib/perl/5.14/ line 207. Compilation failed in require at /usr/share/perl/5.14/Pod/ line +34. BEGIN failed--compilation aborted at /usr/share/perl/5.14/Pod/ l +ine 34. Compilation failed in require at /usr/bin/pod2man line 19. BEGIN failed--compilation aborted at /usr/bin/pod2man line 19. Got a 0-length file from /usr/share/perl/5.14/pod/perldoc.pod via Pod: +:Perldoc::ToMan!?

Where should I start looking?

Replies are listed 'Best First'.
Re: I broke my system with cpan
by sundialsvc4 (Abbot) on Jul 06, 2013 at 18:57 UTC

    Please tell us more about what you did.   How many Perls are on your system, where are they located and what is the version of each?   How many CPAN libraries are on the system, where are they, and which one did you intend to update?   What is the output of o conf?   Were you attempting to update the package-supplied Perl imp. of a Linux “distro?”   etc. ...

Re: I broke my system with cpan
by Khen1950fx (Canon) on Jul 06, 2013 at 21:53 UTC
    Try debugging with this:
    #!/usr/bin/perl BEGIN { sub DEBUG { use strict; use warnings; $ENV{'PERLDOCDEBUG'} = 1; } eval { &DEBUG; if ($@) { die "WHAT? Couldn't eval..."; } }; } use strict; use warnings; use Pod::Perldoc; Pod::Perldoc->run();

    Note: run as
    perl perldoc
Re: I broke my system with cpan
by Anonymous Monk on Dec 11, 2013 at 19:29 UTC
    Anonymous Monk back again. I found that many of the packages (rather, their directories and files) that I installed via sudo /usr/bin/cpan were inaccessible to non-root users! Directories 'drwxr-x---', some files '-rwxr-----'. Carefule use of sudo chmod fixed the problem.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://1042927]
Approved by Perlbotics
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (6)
As of 2018-06-21 15:07 GMT
Find Nodes?
    Voting Booth?
    Should cpanminus be part of the standard Perl release?

    Results (118 votes). Check out past polls.