VPS侦探论坛

 找回密码
 注册
查看: 10704|回复: 0

[总结] perl: warning: Please check that your locale settings 错误解决方法

[复制链接]
发表于 2012-4-25 20:18:55 | 显示全部楼层 |阅读模式

perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:

LANGUAGE = "en_US:en",

LC_ALL = (unset),

LANG = "en_US.UTF-8"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory

apt-get 安装软件时报如上错误
解决方法:编辑 /etc/profile 或 /root/.bashrc
加上
LC_CTYPE="en_US.UTF-8"
export LC_CTYPE
LC_MESSAGES="en_US.UTF-8"
export LC_MESSAGES
LC_ALL="en_US.UTF-8"
export LC_ALL

再运行一次看看,错误没了
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|Archiver|VPS侦探 ( 鲁ICP备16040043号-1 )

GMT+8, 2024-9-19 09:13 , Processed in 0.024856 second(s), 16 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表