Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

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/DynaLoader.pm line 207. Compilation failed in require at /usr/share/perl/5.14/Pod/Man.pm line +34. BEGIN failed--compilation aborted at /usr/share/perl/5.14/Pod/Man.pm 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?

Comment on I broke my system with cpan
Download Code
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 thisscript.pl 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?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://1042927]
Approved by Perlbotics
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (8)
As of 2014-10-02 06:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    What is your favourite meta-syntactic variable name?














    Results (49 votes), past polls