Tuesday, December 22, 2015

Centos cannot set locale

 Seems to be a perennial issue with Centos with the following errors :

locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory

Here's where i found the best fix.

http://blog.earth-works.com/2014/02/10/fixing-lc-locale-issues-in-centos-and-rhel/

You can do the following using your locale :

sed -i.bak 's/LANG=".*"/LANG="en_GB.UTF-8"/' /etc/sysconfig/i18n

source /etc/sysconfig/i18n

No comments:

Post a Comment