Can't require Encode::ConfigLocal: Can't locate Encode/ConfigLocal.pm in @INC

DReade83

Well-Known Member
Oct 20, 2006
196
0
166
Cheshire, UK
Hi.

Can anyone please tell me how I can fix the error I'm having below?

perlmod--Install done
Tested 96, 96 ok, 0 failed.
require Encode;
require Encode::KR;
require Encode::Encoding;
require Encode::Guess;
require Encode::GSM0338;
require Encode::Config;
require Encode::JP;
require Encode::CN;
require Encode::Symbol;
require Encode::Alias;
require Encode::CJKConstants;
require Encode::Byte;
require Encode::Unicode;
require Encode::EBCDIC;
require Encode::TW;
require Encode::Encoder;
require Encode::MIME::Header;
require Encode::MIME::Name;
require Encode::MIME::Header::ISO_2022_JP;
require Encode::KR::2022_KR;
require Encode::CN::HZ;
require Encode::Unicode::UTF7;
require Encode::JP::H2Z;
require Encode::JP::JIS7;
require Encode;
require Encode::KR;
require Encode::Encoding;
require Encode::ConfigLocal;
Can't require Encode::ConfigLocal: Can't locate Encode/ConfigLocal.pm in @INC (@INC contains: /usr/lib/perl5/site_perl/5.8.8/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.7/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.6/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.5/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl/5.8.7 /usr/lib/perl5/site_perl/5.8.6 /usr/lib/perl5/site_perl/5.8.5 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.8.8/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.7/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.6/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.5/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.8 /usr/lib/perl5/vendor_perl/5.8.7 /usr/lib/perl5/vendor_perl/5.8.6 /usr/lib/perl5/vendor_perl/5.8.5 /usr/lib/perl5/vendor_perl /usr/lib/perl5/5.8.8/i386-linux-thread-multi /usr/lib/perl5/5.8.8 .) at (eval 32) line 1.

[[email protected] ~]# perl -v

This is perl, v5.8.8 built for i386-linux-thread-multi

Copyright 1987-2006, Larry Wall

Perl may be copied only under the terms of either the Artistic License or the
GNU General Public License, which may be found in the Perl 5 source kit.

Complete documentation for Perl, including FAQ lists, should be found on
this system using "man perl" or "perldoc perl". If you have access to the
Internet, point your browser at http://www.perl.org/, the Perl Home Page.

[[email protected] ~]#
Already tried running "/scripts/perlinstaller --force Encode" to no avail!
 

cPanelNick

Administrator
Staff member
Mar 9, 2015
3,481
35
208
cPanel Access Level
DataCenter Provider
Try this

#perl

Code:
if ($] >= 5.008) {
    my $has_encode_config_local;
    eval '
            require Encode::ConfigLocal;
            $has_encode_config_local=1;
    ';
    if (!$has_encode_config_local) {
        if (! -e '/var/cpanel/enc2xs_sandbox') {
            mkdir('/var/cpanel/enc2xs_sandbox',0700);
        }
        if (my $pid = fork()) {
            waitpid($pid,0);
        } else {
            chdir ('/var/cpanel/enc2xs_sandbox') || die;
            exec 'enc2xs', '-C';
            exit 1;
        }
    }
}
[hit ctrl+d]
 

DReade83

Well-Known Member
Oct 20, 2006
196
0
166
Cheshire, UK
To be honest, rather than firing things my way that aren't certain whether they'll cure the problem, can you reply with the correct solution please? The last thing I want to do is screw up my server anymore than it already is!
 

AndyReed

Well-Known Member
PartnerNOC
May 29, 2004
2,217
4
193
Minneapolis, MN
To be honest, rather than firing things my way that aren't certain whether they'll cure the problem, can you reply with the correct solution please? The last thing I want to do is screw up my server anymore than it already is!
Run the following command at the prompt:
/scripts/checkperlmodules
If you get the same error message, re-install Perl v5.8.8. Follow these instructions and you should be good to go:
http://servertune.com/kbase/entry/132/