加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 综合聚焦 > 服务器 > Windows > 正文

基于Windows 7上的Perl

发布时间:2020-12-14 02:22:45 所属栏目:Windows 来源:网络整理
导读:我在 Windows 7上安装了Padre perl,perl IDE.每次运行程序时,我都会收到错误消息, perl: warning: Setting locale failed.perl: warning: Please check that your locale settings:LC_ALL = (unset),LANG = (unset)are supported and installed on your syst
我在 Windows 7上安装了Padre perl,perl IDE.每次运行程序时,我都会收到错误消息,

perl: warning: Setting locale failed.

perl: warning: Please check that your locale settings:

LC_ALL = (unset),LANG = (unset)

are supported and installed on your system.

perl: warning: Falling back to the standard locale ("C").

我得到输出,但此错误消息位于每个输出的顶部.
我厌倦了为这个问题寻找解决方案,有人可以告诉我如何解决这个问题吗?

解决方法

您需要将LC_ALL和LANG环境变量设置为C:

C:&;set LC_ALL=C
C:&;set LANG=C
C:&;perl x.pl

如果要使其成为永久性或从IDE工作,请转到“控制面板” – >“系统和安全性” – >“系统” – >“高级系统设置”,然后在“高级”选项卡下单击“环境变量”.然后,将LC_ALL和LANG添加到列表中.如果对这些变量进行更改,则可能需要重新启动IDE.

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读