perl: warning: Falling back to a fallback locale ("en_US.UTF-8").

If you are getting the following error in your VPS / Dedicated server running linux, there is a simple fix for it.

Error

perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LC_CTYPE = "UTF-8",
LANG = (unset)
are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
-bash: warning: setlocale: LC_CTYPE: cannot change locale (UTF-8): No such file or directory
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LC_CTYPE = "UTF-8",
LANG = "en_US.UTF-8"
are supported and installed on your system.
perl: warning: Falling back to a fallback locale ("en_US.UTF-8").
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LC_CTYPE = "UTF-8",
LANG = "en_US.UTF-8"
are supported and installed on your system.
perl: warning: Falling back to a fallback locale ("en_US.UTF-8").




Fix

edit the file /etc/environment and insert the following line.

LC_CTYPE="en_US.UTF-8"




  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

Install Linux, Apache, MySQL, PHP (LAMP) stack on Ubuntu 16.04 Server

Introduction A "LAMP" stack is a group of open source software that is typically installed...

Configuring IP aliasing / Additional IP Address on CentOS

Step 1: Create the configĀ file First, make a copy of the source file so that you can use it as a...

Install Linux, Apache, MySQL, PHP (LAMP) stack on CentOS 7 Server

Introduction A "LAMP" stack is a group of open source software that is typically installed...

Could not retrieve mirrorlist http://mirrorlist.centos.org/ on CentOS 7 or yum update failed

Could not retrieve mirrorlist http://mirrorlist.centos.org/ on CentOS 7 While updating the...