5

We are running a Werewolf cluster and the node images are missing the locales. Only C and POSIX are available. The system uses CentOS 7 as base.

It isn't really an issue but it's a very annoying to receive warnings at each command, like those:

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_COLLATE to default locale: No such file or directory

I've double checked if glibc is installed and everything appears to be ok:

[root@n01 ~]# rpm -qa | grep -i glibc
glibc-common-2.17-106.el7_2.6.x86_64
glibc-headers-2.17-106.el7_2.6.x86_64
glibc-2.17-106.el7_2.6.x86_64
glibc-devel-2.17-106.el7_2.6.x86_64 

And locale -a outputs this:

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_COLLATE to default locale: No such file or directory
C
POSIX

Any idea to generate all the missing locales?

HBruijn
  • 84,206
  • 24
  • 145
  • 224

3 Answers3

4

A tad late, but yum has glibc-langpack-* modules:

yum list glibc-langpack-\*
1

You could try

yum reinstall glibc-common

which should just erm, reinstall the package.

user9517
  • 117,122
0

since I don't find any better answer, you fix this by setting LANG , LANGUAGE and LC_ALL on logon, for example on /etc/profile add :

export LANG=en_US.UTF-8
export LANGUAGE=en_US.UTF-8
export LC_ALL=en_US.UTF-8
Sérgio
  • 281