Issue
- Errors appear under Node.js | Ruby Selectors
Error loading module LVEInfo - Can't locate Cpanel/CPAN/Locale/Maketext/Utils/MarkPhrase.pm in @INC (you may need to install the Cpanel::CPAN::Locale::Maketext::Utils::MarkPhrase module) (@INC contains: /usr/local/cpanel /usr/local/cpanel/whostmgr/docroot/3rdparty/cloudlinux /usr/share/l.v.e-manager/cpanel/cgi /usr/local/cpanel /usr/local/cpanel/3rdparty/perl/536/cpanel-lib/x86_64-linux /usr/local/cpanel/3rdparty/perl/536/cpanel-lib /usr/local/cpanel/3rdparty/perl/536/lib/x86_64-linux /usr/local/cpanel/3rdparty/perl/536/lib /opt/cpanel/perl5/536/site_lib/x86_64-linux /opt/cpanel/perl5/536/site_lib) at /usr/local/cpanel/Cpanel/LVEInfo.pm line 20. BEGIN failed--compilation aborted at /usr/local/cpanel/Cpanel/LVEInfo.pm line 20. Compilation failed in require at (eval 7) line 1. BEGIN failed--compilation aborted at (eval 7) line 1. at /usr/local/cpanel/Cpanel/LoadModule.pm line 27. Cpanel::LoadModule::_logger_warn("Error loading module LVEInfo - Can't locate Cpanel/CPAN/Local"...) called at /usr/local/cpanel/Cpanel/LoadModule.pm line 170
Environment
- cPanel
- CloudLinux
- Ruby
- Node.js Selector
- lvemanager < 7.10.15
Solution
Update lvemanager to 7.11.0-1 or higher
# yum update lvemanager --enablerepo=cloudlinux-updates-testing
If the package cannot be installed, the following workaround can be used:
# localectl set-locale LANG=en_US.UTF-8
# /usr/local/cpanel/scripts/perlinstaller Locale::Maketext
# /usr/local/cpanel/scripts/perlinstaller Locale::Maketext::Utils::MarkPhrase
Check that locale is set
# localectl
System Locale: LANG=en_US.UTF-8
VC Keymap: us
X11 Layout: us
Restart cPanel
# /scripts/restartsrv_cpsrvd
- In case the above does not help, check if the file
/usr/local/cpanel/Cpanel/CPAN/Locale/Maketext/Utils/MarkPhrase.pm
is missing, if so, please recreate and paste the following contents:package Cpanel::CPAN::Locale::Maketext::Utils::MarkPhrase;
sub import {
no strict 'refs';
*{ caller() . '::translatable' } = \&translatable;
}
sub translatable {
return $_[0];
}
1;
Cause
Broken Perl libraries and the wrong system language registered as CLOS-2483