Edward T.

Member
Feb 7, 2017
9
2
3
Delaware, United States
cPanel Access Level
Root Administrator
Hi,
When I'm trying to use /scripts/pkgacct I encounter an error as follows:

Code:
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
 

Edward T.

Member
Feb 7, 2017
9
2
3
Delaware, United States
cPanel Access Level
Root Administrator
Thank you for your reply.

Here you go:

Code:
# 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
Code:
# 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;
Regards
 

cPanelLauren

Forums Analyst II
Staff member
Nov 14, 2017
7,972
638
263
Houston
cPanel Access Level
DataCenter Provider
None of that should be there in a default cPanel installation

On my test server:

Code:
[[email protected] ~]# env|grep PERL
[[email protected] ~]#
Code:
# 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:

Code:
cp .bashrc .bashrc.bk
2. Comment out the Perl related lines as follows:

Code:
# 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 issue
 
  • Like
Reactions: Edward T.