utf-8 - 如何修复 'character map file ` UTF-8' not found'

正在设置一个 UBI rhel8 容器。我需要执行这个命令:

localedef -f UTF-8 -i en_US en_US.UTF-8

失败了:
character map file `UTF-8' not found: No such file or directory
cannot read character map directory `/usr/share/i18n/charmaps': No such file or directory

 

最佳答案

你需要安装这些包

yum -y install glibc-locale-source glibc-langpack-en

然后重新运行 localedef 命令

 

关于utf-8 - 如何修复 'character map file ` UTF-8' not found',我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/58304278/

posted @ 2022-12-27 11:21  牧之丨  阅读(1648)  评论(0编辑  收藏  举报