There might be many situations in which you need to run some default cPanel scripts in the server. Recently i found an issue when running the script :

# /usr/local/cpanel/scripts/check_cpanel_rpms --fix

The error returned was something like :

# /usr/local/cpanel/scripts/check_cpanel_rpms --fix
/usr/local/cpanel/3rdparty/bin/perl: symbol lookup error: /usr/lib64/perl5/vendor_perl/5.8.8/x86_64-linux-thread-multi/auto/YAML/Syck/ undefined symbol: Perl_Gthr_key_ptr

After a lot of digging, I came to understand that this issue was due to the presence of  two Perl binaries, one provided by the default RPM and one from some other source.

You might need to remove the one not provided by RPMs and unset the Perl variable ‘PERL5LIB’, you can use this command to do it :

# unset PERL5LIB

Once this is done,  you should be able to run the scripts without any issues.

To fix Perl related issues, or if you need to re-install Perl, refer to this post HERE