执行./script/checkpatch.pl my.patch来检查补丁时报错"perl: warning: Setting locale failed. perl: warning: Please check that your locale settings: LANGUAGE = (unset), LC_ALL=(unset),"如何处理?
2023-09-11 14:16:47 时间
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
相关文章
- 反序列化失败Failed to deserialize --- local class incompatible: stream classdesc serialVersionUID
- keras 下载预训练模型报错SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:852)
- 【异常(待解决)】org.apache.http.NoHttpResponseException: api.weixin.qq.com:443 failed to respond
- Failed to load AppCompat ActionBar with unknown error
- Python pip install报错SSLError(SSLCertVerificationError(1, ‘[SSL: CERTIFICATE_VERIFY_FAILED]
- WSL(Linux子系统) gedit 报错 failed to commit changes to dconf: Failed to execute child process “dbus-launch” (No such file or directory)
- [FAQ] MEMORY ALLOC FAILED: mmap with HUGETLB failed, attempting without it (you should fix your kernel)
- [Kafka] |FAIL|rdkafka#producer-1 : Receive failed: Disconnected
- Jack server failed,Try jack-diagnose 7.1系统源码编译不过
- 成功解决Exception "unhandled ImportError" DLL load failed: 找不到指定的程序。 libimp.py, Line: 343
- 安装APK时报错:Failure [INSTALL_FAILED_TEST_ONLY: installPackageLI]
- ssl.SSLError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed
- 解决nvidia-docker 问题 nvidia-docker | Error: failed to run docker command
- Ubuntu 20.04.3 启动sshd失败,报错:Failed to start OpenBSD Secure Shell server
- Ubuntu 16.04 显卡报错NVIDIA-SMI has failed because it couldn‘t communicatewith the NVIDIA driver.....
- gradle问题,Failed to open zip file问题的解决
- Win10解决Android Studio:Gradle sync failed: Failed to open zip file.