Yanıtlar:
locale-geniçinde mevcut değil Centos/Fedora.
Kullanmanız gerekenler localedef:
localedef -v -c -i en_US -f UTF-8 en_US.UTF-8
Gönderen man localedef:
NAME
localedef - define locale environment
SYNOPSIS
localedef [-c][-f charmap][-i sourcefile][-u code_set_name] name
DESCRIPTION
The localedef utility shall convert source definitions for locale cate‐
gories into a format usable by the functions and utilities whose opera‐
tional behavior is determined by the setting of the locale environment
variables defined in the Base Definitions volume of
IEEE Std 1003.1-2001, Chapter 7, Locale. It is implementation-defined
whether users have the capability to create new locales, in addition to
those supplied by the implementation. If the symbolic constant
POSIX2_LOCALEDEF is defined, the system supports the creation of new
locales. On XSI-conformant systems, the symbolic constant
POSIX2_LOCALEDEF shall be defined.
ldd /usr/bin/localedef.
localekomut. Eğer u docker biliyorsanız, sen de docker run -i -t centos bashkontrol etmek için çalıştırabilirsiniz .
@Gnouc cevabına dayalı ekstra bilgi sağladım (centos'ta localedefkullanılacak)
centos dockerMinimal paketleri sağlayan özel bir görüntü, senaryoyu görüyor olduğunu https://github.com/dotcloud/docker/blob/master/contrib/mkimage-yum.sh
rm -rf "$target"/usr/{{lib,share}/locale,{lib,lib64}/gconv,bin/localedef,sbin/build-locale-archive}
İç komut localedefkaldırıldı, glibc-commonbunu içeren paket yeniden yüklenecek
yum reinstall glibc-common
elbette boyut artırılacak
yum reinstall glibc-commonlocaledef'i Amazon Linux 2.17-196.172.amzn1Docker kapsayıcısında benim için kullanılabilir hale getirdi : hub.docker.com/r/ambakshi/amazon-linux ve iksiri yüklememe izin verdi.
yum whatprovides */localedefiçin raporlar mevcut olmasa da. garip, docker yüzünden mi?glibc-common/usr/bin/localedef