Perl related issue
Hi,
When I'm trying to use /scripts/pkgacct I encounter an error as follows:
Same thing for /scripts/check_cpanel_rpms script. cPanel version is 82.0.16 and OS is CENTOS 6.10 Please advise. Thanks. Regards
Can't load '/root/perl5/lib/perl5/x86_64-linux-64int/auto/Cwd/Cwd.so' for module Cwd: /root/perl5/lib/perl5/x86_64-linux-64int/auto/Cwd/Cwd.so: undefined symbol: PL_sv_undef at /usr/local/cpanel/3rdparty/perl/528/lib/perl5/5.28.0/XSLoader.pm line 93.
at /root/perl5/lib/perl5/x86_64-linux-64int/Cwd.pm line 82.
Compilation failed in require at /usr/local/cpanel/Cpanel/SafeSync.pm line 11.
BEGIN failed--compilation aborted at /usr/local/cpanel/Cpanel/SafeSync.pm line 11.
Compilation failed in require at /usr/local/cpanel/Cpanel/NobodyFiles.pm line 14.
BEGIN failed--compilation aborted at /usr/local/cpanel/Cpanel/NobodyFiles.pm line 14.
Compilation failed in require at /scripts/pkgacct line 47.
BEGIN failed--compilation aborted at /scripts/pkgacct line 47.Same thing for /scripts/check_cpanel_rpms script. cPanel version is 82.0.16 and OS is CENTOS 6.10 Please advise. Thanks. Regards
-
We typically only see this when modifications to Perl have been made on the server, what is the output of the following? cd /root/ env|grep PERL cat .bashrc0 -
Thank you for your reply. Here you go: # env|grep PERL PERL5LIB=/root/perl5/lib/perl5 PERL_MB_OPT=--install_base "/root/perl5" PERL_LOCAL_LIB_ROOT=/root/perl5 PERL_MM_OPT=INSTALL_BASE=/root/perl5
# cat .bashrc # Source global definitions if [ -f /etc/bashrc ]; then . /etc/bashrc fi alias php="php -d disable_functions=" alias composer="php /bin/composer.phar" PATH="/root/perl5/bin${PATH:+:${PATH}}"; export PATH; PERL5LIB="/root/perl5/lib/perl5${PERL5LIB:+:${PERL5LIB}}"; export PERL5LIB; PERL_LOCAL_LIB_ROOT="/root/perl5${PERL_LOCAL_LIB_ROOT:+:${PERL_LOCAL_LIB_ROOT}}"; export PERL_LOCAL_LIB_ROOT; PERL_MB_OPT="--install_base \"/root/perl5\""; export PERL_MB_OPT; PERL_MM_OPT="INSTALL_BASE=/root/perl5"; export PERL_MM_OPT;
Regards0 -
None of that should be there in a default cPanel installation On my test server: [root@server ~]# env|grep PERL [root@server ~]#
# cat .bashrc # .bashrc # User specific aliases and functions alias rm='rm -i' alias cp='cp -i' alias mv='mv -i' # Source global definitions if [ -f /etc/bashrc ]; then . /etc/bashrc fi
I'd suggest doing the following: 1. Create a backup of the .bashrc file:cp .bashrc .bashrc.bk
2. Comment out the Perl related lines as follows:# cat .bashrc # Source global definitions if [ -f /etc/bashrc ]; then . /etc/bashrc fi alias php="php -d disable_functions=" alias composer="php /bin/composer.phar" #PATH="/root/perl5/bin${PATH:+:${PATH}}"; export PATH; #PERL5LIB="/root/perl5/lib/perl5${PERL5LIB:+:${PERL5LIB}}"; export PERL5LIB; #PERL_LOCAL_LIB_ROOT="/root/perl5${PERL_LOCAL_LIB_ROOT:+:${PERL_LOCAL_LIB_ROOT}}"; export PERL_LOCAL_LIB_ROOT; #PERL_MB_OPT="--install_base \"/root/perl5\""; export PERL_MB_OPT; #PERL_MM_OPT="INSTALL_BASE=/root/perl5"; export PERL_MM_OPT;
Then logout and back in again and let me know if you continue to experience the same issue0 -
That worked perfectly. Thank you so much. Cheers! 0 -
Awesome, I'm glad I could help you resolve that! 0
Please sign in to leave a comment.
Comments
5 comments