Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

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

by Anonymous Monk
on Jun 06, 2019 at 14:19 UTC ( [id://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 (Priest) 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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11101054]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (5)
As of 2024-04-19 07:17 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found