ssh连接linux的时候总是提示字符集的错误

周梦康
  • 8.9k

下面是我执行phpize的时候的截图

perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
    LANGUAGE = (unset),
    LC_ALL = (unset),
    LC_CTYPE = "UTF-8",
    LANG = "C"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
    LANGUAGE = (unset),
    LC_ALL = (unset),
    LC_CTYPE = "UTF-8",
    LANG = "C"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").

我找了半天不知道在哪配置,有经验的朋友告知下,谢谢。

回复
阅读 3.6k
2 个回答
baoz
  • 164
✓ 已被采纳

感觉跟MAC没关系吧,你找个windows是不是也报这个错?

这个perl执行的时候报的

CentOS 6.5为例
#cat /etc/profile.d/lang.sh

宣传栏