in reply to Re^3: what should be in PERL5LIB after installing from source the 5.40.1 version on MacOS (am64)
in thread what should be in PERL5LIB after installing from source the 5.40.1 version on MacOS (am64)

Thanks again for clarification. That means that I confused cpanm on the intial installation of cpanm and it is perpetually confused. So I don't even need a PERL5LIB at all? I don't create or bundle my modules; everything comes with Perl or comes from CPAN, so it should know where to go...AWESOME!

I use cpanm over cpan to install Perl modules, so my install install of cpanm via cpan must be correct, then I'll be on the correct path going forwards.

Thanks, I'll work on that.

  • Comment on Re^4: what should be in PERL5LIB after installing from source the 5.40.1 version on MacOS (am64)

Replies are listed 'Best First'.
Re^5: what should be in PERL5LIB after installing from source the 5.40.1 version on MacOS (am64)
by ikegami (Patriarch) on Feb 24, 2025 at 01:54 UTC

    So I don't even need a PERL5LIB at all?

    Correct.

    PERL_MM_OPT and PERL_MB_OPT should be unset. That way, modules will be installed in the default directory for the perl being used.

    And since you're installing modules in the default directory for the perl being used, you don't need to tell Perl where to look, so PERL5LIB should also be unset.

    Finally, make sure you used the correct perl (e.g. by using the cpan installed by it) when installing modules.

    If you have any further questions, please provide the output of perl -V:'inst.*' (capital "V") so I can provide concrete examples.