in reply to Re: Perlbrew mismatched error
in thread Perlbrew mismatched error

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.

Replies are listed 'Best First'.
Re^3: Perlbrew mismatched error
by soonix (Chancellor) on Apr 18, 2017 at 07:21 UTC
    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've spent an hour looking and googling and I have no idea where they come from. I'm renaming the whole perl5 directory and reinstalling perlbrew to see better how a clean install works.
      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.