perl: warning: Setting locale failed
来源:互联网 发布:吴师自通 知乎 编辑:程序博客网 时间:2024/05/21 11:11
运行某些perl 编写的脚本时 报如下错误:
Locale is set of language/user input/keyboard characters specific to regions. For instance, "en_US" represents US english character set. It has to be set to correct value (en_US.UTF-8 or anything else, there are lots for different regions)for server to understand the character sequence keyboard input provides. "setlocale" enables the user to set the locale.
To read more on the theory of Locales, please divert here.
export LANGUAGE=en_US.UTF-8export LANG=en_US.UTF-8export LC_ALL=en_US.UTF-8locale-gen en_US.UTF-8dpkg-reconfigure locales
What eventually worked for me
These two commands:
执行下面这两行命令:
sudo locale-gen en_US.UTF-8sudo dpkg-reconfigure locales
The error "bash: warning: setlocale: LC_ALL: cannot change locale (en_US)" occurs when the remote server does not understand the locale "en_US.UTF-8". The fix is to generate the locale using the command "sudo locale-gen en_US.UTF-8" and update the locale repository to store this locale, such that future connections(ssh) can understand this locale. The command "sudo dpkg-reconfigure locales" updates the local repository with the newly generated locale, i.e en_US.UTF-8.
- perl: warning: Setting locale failed
- perl: warning: Setting locale failed.
- perl: warning: Setting locale failed.
- perl: warning: Setting locale failed
- "perl: warning: Setting locale failed."的解决
- 解决perl: warning: Setting locale failed.
- Fixing "perl: warning: Setting locale failed."解决
- "perl: warning: Setting locale failed."的解决
- ubuntu 14.04 perl: warning: Setting locale failed.
- ubuntu 14.04 perl: warning: Setting locale failed.
- 解决 perl: warning: Setting locale failed.
- 解决perl: warning: Setting locale failed. perl: warning: Please check that your locale settings:
- Fix perl: warning: Setting locale failed. perl: warning: Please check that your locale settings:
- 解决perl: warning: Setting locale failed. perl: warning: Please check that your locale settings:
- perl: warning: Setting locale failed.引发的问题
- perl: warning: Setting locale failed.引发的问题
- setting locale failed
- How can I fix a locale warning from perl?
- 匀速运动之停止条件
- python中复制列表的正确方法
- 高效率编辑器 VIM-操作篇,非常适合 VIM 新手
- oracle如何查询和停止正在运行的job
- Eclipse项目上有红色感叹号的解决方法
- perl: warning: Setting locale failed
- ANDROID内存优化(大汇总——中)
- RabbitMQ
- 设置hadoop的client端的jvm参数
- 算法--算法运行时间比较
- xml系列(四)------创建xml文件
- IOS-UIImageView
- 录制脚本时,一直显示0 events,最后蒙对了!
- WebView中的Cookies问题