bash: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8)

 

编译出现标题所述问题,网上找到解决方法。

sudo apt-get update
sudo apt-get install locales -y
sudo locale-gen en_US.UTF-8
sudo dpkg-reconfigure locales

sudo update-locale LC_ALL=en_US.UTF-8
#或者手动编辑
hubery@roaster:~$ cat /etc/default/locale
#LANG="en_IN"(old locale)
#LANGUAGE="en_IN:en"(old setting)
LC_ALL=en_US.UTF-8
LANG=en_US.UTF-8

 

posted @ 2019-03-11 14:40  XZHDJH  阅读(1548)  评论(0)    收藏  举报