CentOS 7 fix for “perl: warning: Please check that your locale settings are supported and installed on your system.”

Categories: bash, CentOS / RHEL

Issue:

Logging in via SSH you are greeted with:

perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LC_CTYPE = “en_US.UTF-8”,
LANG = “C.UTF-8”
are supported and installed on your system.
perl: warning: Falling back to the standard locale (“C”).

Solution:

Edit /etc/environment and add the following. Replace en_US with your actual locale if you are not using en_US:

LC_ALL="en_US.UTF-8"
LC_CTYPE="en_US.UTF-8"
LANGUAGE="en_US.UTF-8"

«
»

Leave a Reply to Macs R We Cancel reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.