Thank you for supporting the Cloud Customer Connect Community in 2024. It's a gift to work with you!

Look back
You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

perl -V Command Fails with "Can't locate Config.pm: /usr/local/lib64/perl5/Config.pm"

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

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!