安装valgrind时报如下错误,导致make不成功
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LANG = "zh_CN.GB2312;zh_CN.UTF-8;en_US;en_US.UTF-8"
are supported and installed on your system.
解决方法:
1、
vi /root/.bashrc
在最底部加上
export LC_ALL=C
2、
直接运行
echo "export LC_ALL=C" >> /root/.bashrc
然后执行一下:
source /root/.bashrc