warning:

Fixing "perl: warning: Setting locale failed."

谁都会走 提交于 2020-01-09 20:32:08
【推荐】2019 Java 开发者跳槽指南.pdf(吐血整理) >>> 错误提示: perl: warning: Setting locale failed. perl: warning: Please check that your locale settings: LANGUAGE = "en_US:en", LC_ALL = (unset), LC_PAPER = "en_US", LC_ADDRESS = "en_US", LC_MONETARY = "en_US", LC_NUMERIC = "en_US", LC_TELEPHONE = "en_US", LC_IDENTIFICATION = "en_US", LC_MEASUREMENT = "en_US", LC_TIME = "en_US", LC_NAME = "en_US", LANG = "en_US.UTF-8" are supported and installed on your system. perl: warning: Falling back to the standard locale ("C"). 解决办法: apt-get install language-pack-en-base /usr/sbin/locale-gen en_US.UTF-8 /usr/sbin/update

[git] warning: LF will be replaced by CRLF | fatal

浪子不回头ぞ 提交于 2019-12-20 22:38:11
【推荐】2019 Java 开发者跳槽指南.pdf(吐血整理) >>> 遇到这两个错误, 基本上都是叫你将 autocrlf 设置为 false. 但是我觉得这样很不妥。 如果你的源文件中是换行符是LF,而autocrlf=true, 此时git add就会遇到 fatal: LF would be replaced by CRLF 的错误。有两个解决办法: 1. 将你的源文件中的LF转为CRLF即可【推荐】 2. 将autocrlf 设置为 false 如果你的源文件中是换行符是CRLF,而autocrlf=input, 此时git add也会遇到 fatal: CRLF would be replaced by LF 的错误。有两个解决办法: 1. 将你源文件中的CRLF转为LF【推荐】 2. 将autocrlf 设置为true 或者 false 我的建议:在Mac上设置 autocrlf = input, 在Windows上设置autocrlf = true(默认值)。 ---------------------------------------------------------------------------------------------------------------------------------- 这样的话, Windows:(true) 提交时