Running /Usr/Local/Bin/Ipconf -Verify Results In 'Perl: Warning: Setting Locale Failed.' (Doc ID 1393517.1)

Last updated on NOVEMBER 14, 2016

Applies to:

Oracle Exadata Storage Server Software - Version: 11.2.2.2.0 to 11.2.2.4.2 - Release: 11.2 to 11.2
Linux OS - Version: Oracle Linux 5.1 and later    [Release: OL5U1 and later]
Information in this document applies to any platform.

Symptoms

You are running the ipconf tool and are getting a perl error:

[root@dmcel01 ~]# /usr/local/bin/ipconf -verify
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = "en_US.UTF-8",
LC_ALL = "UTF-8",
LC_CTYPE = "UTF-8",
LANG = "en_US.UTF-8"
are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").


Issue seems with PERL
Following error is thrown when locale -a command is given:

locale -a
locale: Cannot set LC_CTYPE to default locale: No such file or directory



Changes

If you run the following command to view environment variables, you should see nothing returned:

[root@dmcel01 ~]# env | grep LC
[root@dmcel01 ~]#

Somehow the environment variable LC_CTYPE is a non-default value - ie, some value instead of the expected blank/null.

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms