基于Windows 7上的Perl [英] Based on Perl on Windows 7

查看:104
本文介绍了基于Windows 7上的Perl的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Windows 7上安装了Padre perl,perl IDE.每次运行程序时,我都会收到一条错误消息,

I installed Padre perl, perl IDE on windows 7.And every time i run a program, i am getting an error saying,

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").

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

I get outputs, but this error message is on the top of each and every output. i am tired of searching solutions for this problem,can some one tell me how to fix this problem ??

推荐答案

您需要将LC_ALLLANG环境变量设置为C:

You need to set the LC_ALL and LANG environment variables to C:

C:\>set LC_ALL=C
C:\>set LANG=C
C:\>perl x.pl 

如果要永久保留它,或者要在IDE中使用它,请转至控制面板"->系统和安全性"->系统"->高级系统设置",然后在高级"选项卡下,单击环境变量".然后,将LC_ALL和LANG添加到列表中.如果对这些变量进行更改,则可能需要重新启动IDE.

If you want to make this permanent, or work from your IDE, go to Control Panel->System and Security->System->Advanced System Settings, and under the Advanced tab, click Environment Variables. Then, add LC_ALL and LANG to the list. You might need to restart your IDE if you make changes to these variables.

这篇关于基于Windows 7上的Perl的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆