首页 > 其他 > 详细

执行./script/checkpatch.pl my.patch来检查补丁时报错"perl: warning: Setting locale failed. perl: warning: Please check that your locale settings: LANGUAGE = (unset), LC_ALL=(unset),"如何处理?

时间:2020-03-25 21:15:53      阅读:120      评论:0      收藏:0      [点我收藏+]

1. 情形

linux-kernel$ ./scripts/checkpatch.pl my.patch
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LANG = "en_US.UTF-8"
are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
Can‘t locate Term/ANSIColor.pm in @INC (you may need to install the Term::ANSIColor module)

2. 如何解决?

指定正确的perl路径,笔者的路径为:

/usr/bin/perl,因此

$ export PATH=/usr/bin:$PATH

执行./script/checkpatch.pl my.patch来检查补丁时报错"perl: warning: Setting locale failed. perl: warning: Please check that your locale settings: LANGUAGE = (unset), LC_ALL=(unset),"如何处理?

原文:https://www.cnblogs.com/dakewei/p/12569032.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!