إدارة السيرفراتسيرفرات لينوكس

CloudLinux مكتبات بيرل ناقصة وترميز لغة نظام

تفاصيل المشكلة

الخطأ التالي يظهر عند محاولة استخدام أو إضافة تطبيق Node.js | Ruby

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 8) line 1. BEGIN failed--compilation aborted at (eval 8) 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 Cpanel::LoadModule::_modloader("LVEInfo") called at /usr/local/cpanel/Cpanel/LoadModule.pm line 109 Cpanel::LoadModule::loadmodule("LVEInfo") called at /usr/local/cpanel/Cpanel/Api2/Exec.pm line 44 Cpanel::Api2::Exec::api2_preexec("LVEInfo", "getLvemanagerVersion") called at /usr/local/cpanel/Cpanel/Template/Plugin/Api2.pm line 204 Cpanel::Template::Plugin::Api2::_api2_exec("LVEInfo", "getLvemanagerVersion", HASH(0x2e984f0)) called at /usr/local/cpanel/base/frontend/jupiter/lveversion/nodejs-selector.html.tt line 2 eval {...} called at /usr/local/cpanel/base/frontend/jupiter/lveversion/nodejs-selector.html.tt line 2 eval {...} called at /usr/local/cpanel/base/frontend/jupiter/lveversion/nodejs-selector.html.tt line 7 Template::Document::__ANON__(Template::Context=HASH(0x2cc8c30)) called at /usr/local/cpanel/3rdparty/perl/536/cpanel-lib/x86_64-linux/Template/Document.pm line 165 eval {...} called at /usr/local/cpanel/3rdparty/perl/536/cpanel-lib/x86_64-linux/Template/Document.pm line 163 Template::Document::process(Template::Document=HASH(0x3011be8), Template::Context=HASH(0x2cc8c30)) called at /usr/local/cpanel/3rdparty/perl/536/cpanel-lib/x86_64-linux/Template/Context.pm line 352 eval {...} called at /usr/local/cpanel/3rdparty/perl/536/cpanel-lib/x86_64-linux/Template/Context.pm line 322 Template::Context::process(Template::Context=HASH(0x2cc8c30), Template::Document=HASH(0x3011be8)) called at /usr/local/cpanel/3rdparty/perl/536/cpanel-lib/x86_64-linux/Template/Service.pm line 94 eval {...} called at /usr/local/cpanel/3rdparty/perl/536/cpanel-lib/x86_64-linux/Template/Service.pm line 91 Template::Service::process(Template::Service=HASH(0x2cc8810), "/usr/local/cpanel/base/frontend/jupiter/lveversion/nodejs-sel"..., HASH(0x2cc7d48)) called at /usr/local/cpanel/3rdparty/perl/536/cpanel-lib/x86_64-linux/Template.pm line 66 Template::process(Template=HASH(0x2cc8450), "/usr/local/cpanel/base/frontend/jupiter/lveversion/nodejs-sel"..., HASH(0x2cc7d48), SCALAR(0x1d1e968)) called at /usr/local/cpanel/Cpanel/Template.pm line 485 Cpanel::Template::process_template("cpanel", HASH(0x2cc7d48), HASH(0x1d26078)) called at cpanel.pl line 1108 cpanel::cpanel::cptt_exectag("/usr/local/cpanel/base/frontend/jupiter/lveversion/nodejs-sel"..., 1) called at cpanel.pl line 4643 cpanel::cpanel::run_standard_mode() called at cpanel.pl line 931 cpanel::cpanel::script("cpanel::cpanel", "./frontend/jupiter/lveversion/nodejs-selector.html.tt") called at cpanel.pl line 324

بيئة العمل

  • cPanel
  • CloudLinux
  • Ruby
  • Node.js Selector
  • lvemanager < 7.10.15

الحل

تحديث lvemanager  كالتالي

# yum update lvemanager --enablerepo=cloudlinux-updates-testing

إذا تعذر تثبيت الحزمة، فيمكن استخدام الحل البديل التالي:

# localectl set-locale LANG=en_US.UTF-8
# /usr/local/cpanel/scripts/perlinstaller Locale::Maketext
# /usr/local/cpanel/scripts/perlinstaller Locale::Maketext::Utils::MarkPhrase

تأكد من تعيين اللغة

# localectl
   System Locale: LANG=en_US.UTF-8
       VC Keymap: us
      X11 Layout: de,us
     X11 Variant: ,

أعد تشغيل cPanel

# /scripts/restartsrv_cpsrvd

إذا لم تفلح الخطوات السابقة، تأكد ما إذا كان الملف التالي موجودًا.

/usr/local/cpanel/Cpanel/CPAN/Locale/Maketext/Utils/MarkPhrase.pm 

وإذا لم يكن الملف موجودًا، يرجى إعادة إنشاء الملف وإدراج المحتويات التالية فيه:

package Cpanel::CPAN::Locale::Maketext::Utils::MarkPhrase;

sub import {
    no strict 'refs';
    *{ caller() . '::translatable' } = \&translatable;
}

sub translatable {
    return $_[0];
}

1;

سبب المشكلة

مكتبات بيرل معطوبة ولغة نظام خاطئة كما هو موضح في CLOS-2483

بواسطة
Ahmed ElShafaie

Mohamed Elsayed

Linux system administrator

مقالات ذات صلة

اترك تعليق

زر الذهاب إلى الأعلى

اكتشاف المزيد من الدعم العربي التطويري

اشترك الآن للاستمرار في القراءة والحصول على حق الوصول إلى الأرشيف الكامل.

Continue reading