Based on Perl on Windows 7

依然范特西╮ 提交于 2019-12-01 02:12:27

问题


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 ??


回答1:


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 

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.



来源:https://stackoverflow.com/questions/15846560/based-on-perl-on-windows-7

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!