in reply to Can't locate Config.pm in @INC

Path mentioned in @INC has Config.pm

If so, then the process has insufficient permissions to read both the directory and the file.

Replies are listed 'Best First'.
Re^2: Can't locate Config.pm in @INC
by powerperl (Initiate) on Jun 22, 2022 at 03:28 UTC
    It works fine when perl recompiled

      In the OP, you said the paths were in @INC. But since PERL5LIB simply adds to @INC, it appears that you were mistaken, and that was I operating under incorrect information.

      So, ignore that bit about permissions. What you have is a very broken installation of Perl. You shouldn't have to tell Perl where to find Config. You should reinstall it; you shouldn't be applying hacks like using PERL5LIB.