perl -V Command Fails with "Can't locate Config.pm: /usr/local/lib64/perl5/Config.pm"
in Linux
APPLIES TO
Oracle Cloud Infrastructure - Version N/A and later
Linux x86-64 on Oracle Public Cloud
SYMPTOMS
perl -V
command fails with error below:
root@test# Perl -V Can't locate Config.pm: /usr/local/lib64/perl5/Config.pm: Permission denied.
Begin FAILED—compilation aborted.
CAUSE
The ownership and permission of the directory /usr/local was changed as below:
root@test# ls -ld /usr/local
drwx----- 14 telegraf telegraf 157 May 7 14:01 /usr/local
SOLUTION
Change the ownership and permission of /usr/local as root and 755 respectively
root@test# chown root:root /usr/local
root@test# chmod 755 /usr/local
Tagged:
0