Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: Perlbrew mismatched error

by Anonymous Monk
on Apr 17, 2017 at 21:09 UTC ( [id://1188171]=note: print w/replies, xml ) Need Help??


in reply to Perlbrew mismatched error

So apparently it tries to load Encode compiled with different version of perl. What's the output of perlbrew info and perl -E 'say for @INC'?

Replies are listed 'Best First'.
Re^2: Perlbrew mismatched error
by LunarCowgirl (Sexton) on Apr 18, 2017 at 04:44 UTC
    For 5.22.0:
    perlbrew info Current perl: Name: perl-5.22.0 Path: /home/autumn/perl5/perlbrew/perls/perl-5.22.0/bin/perl Config: -de -Dprefix=/home/autumn/perl5/perlbrew/perls/perl-5.22.0 - +Aeval:scriptdir=/home/autumn/perl5/perlbrew/perls/perl-5.22.0/bin Compiled at: Dec 1 2015 17:22:55 perlbrew: version: 0.78 ENV: PERLBREW_ROOT: /home/autumn/perl5/perlbrew PERLBREW_HOME: /home/autumn/.perlbrew PERLBREW_PATH: /home/autumn/perl5/perlbrew/bin:/home/autumn/perl5/ +perlbrew/perls/perl-5.22.0/bin PERLBREW_MANPATH: /home/autumn/perl5/perlbrew/perls/perl-5.22.0/ma +n perl -E 'say for @INC' /home/autumn/perl5/lib/perl5/x86_64-linux /home/autumn/perl5/lib/perl5 /home/autumn/perl5/perlbrew/perls/perl-5.22.0/lib/site_perl/5.22.0/x86 +_64-linux /home/autumn/perl5/perlbrew/perls/perl-5.22.0/lib/site_perl/5.22.0 /home/autumn/perl5/perlbrew/perls/perl-5.22.0/lib/5.22.0/x86_64-linux /home/autumn/perl5/perlbrew/perls/perl-5.22.0/lib/5.22.0 .
    For 5.24.1:
    perlbrew info Current perl: Name: perl-5.24.1 Path: /home/autumn/perl5/perlbrew/perls/perl-5.24.1/bin/perl Config: -de -Dprefix=/home/autumn/perl5/perlbrew/perls/perl-5.24.1 - +Aeval:scriptdir=/home/autumn/perl5/perlbrew/perls/perl-5.24.1/bin Compiled at: Apr 17 2017 12:09:32 perlbrew: version: 0.78 ENV: PERLBREW_ROOT: /home/autumn/perl5/perlbrew PERLBREW_HOME: /home/autumn/.perlbrew PERLBREW_PATH: /home/autumn/perl5/perlbrew/bin:/home/autumn/perl5/ +perlbrew/perls/perl-5.24.1/bin PERLBREW_MANPATH: /home/autumn/perl5/perlbrew/perls/perl-5.24.1/ma +n perl -E 'say for @INC' /home/autumn/perl5/lib/perl5/x86_64-linux /home/autumn/perl5/lib/perl5 /home/autumn/perl5/perlbrew/perls/perl-5.24.1/lib/site_perl/5.24.1/x86 +_64-linux /home/autumn/perl5/perlbrew/perls/perl-5.24.1/lib/site_perl/5.24.1 /home/autumn/perl5/perlbrew/perls/perl-5.24.1/lib/5.24.1/x86_64-linux /home/autumn/perl5/perlbrew/perls/perl-5.24.1/lib/5.24.1 .
    Output seems similar for both versions.
      Being on Windows, I don't have perlbrew, but my guess is the two .../perl5/lib/perl5 entries in @INC should be after the version specific ones. Or omitted, if they stem from the system perl.
        Yes, these entries shouldn't be there at all. LunarCowgirl, you need to figure out where /home/autumn/perl5/lib/perl5/x86_64-linux and /home/autumn/perl5/lib/perl5 come from, don't think that's perlbrew...
        I'm not 100% sure of how perlbrew works, so I don't know if this is how it's supposed to be, but those first two paths in @INC are where all my Perl modules are stored. All those modules are compiled to run with 5.22.0, so, yes, that's the problem. If I rename the directory where those modules are stored, perlbrew works fine, BUT I have no modules in either Perl version. I'm not sure how to fix that problem. I'm going to rename the whole perl5 directory and try a clean install of perlbrew with 5.24.1. I'll see how things work then.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others scrutinizing the Monastery: (4)
As of 2024-04-25 21:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found