Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: Symbol lookup error for my ~/perl5/lib/perl5

by Anonymous Monk
on Jun 06, 2019 at 14:19 UTC ( #11101054=note: print w/replies, xml ) Need Help??


in reply to Symbol lookup error for my ~/perl5/lib/perl5

TL;DR: mv ~/perl5 ~/perl5.bak should restore scripts such as cpan that depend on List::Util but get the version compiled for older version of Perl from ~/perl5.

This has happened because Debian Jessie has Perl v5.20, Debian Stretch has v5.24, both Perls expect their modules to be in ~/perl5 (probably via local::lib) but are binary incompatible. It is likely that you have the compatible version of List::Util (and other cpan dependencies) installed somewhere in /usr, but modules installed via local::lib take precedence and manage to crash the interpreter before it can use right one.

One your Perl installation works, you can visit ~/perl5.bak to see which modules you would need to install again, for the new version of Perl.

Replies are listed 'Best First'.
Re^2: Symbol lookup error for my ~/perl5/lib/perl5
by Lady_Aleena (Curate) on Jun 06, 2019 at 16:37 UTC

    Will cpan rebuild ~/perl5 when I go to reinstall the modules or do I need to recreate some of the directory structure?

    No matter how hysterical I get, my problems are not time sensitive. So, relax, have a cookie, and a very nice day!
    Lady Aleena

      Splendid advice was already given by some fellow monks. Just a little addendum: For the future i would recommend that you make it so. Didn‘t I mention this already 😎 ? Best regards, Karl

      «The Crux of the Biscuit is the Apostrophe»

      perl -MCrypt::CBC -E 'say Crypt::CBC->new(-key=>'kgb',-cipher=>"Blowfish")->decrypt_hex($ENV{KARL});'Help

      I think that cpan should be able to rebuild everything by itself. At most, mkdir ~/perl5 might be needed but probably isn't.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (7)
As of 2019-11-18 11:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Strict and warnings: which comes first?



    Results (89 votes). Check out past polls.

    Notices?