现在的位置: 首页 > 综合 > 正文

perl: warning: Please check that your locale settings: /usr/local/webserver/php/bin/phpize Configur

2014年06月28日 ⁄ 综合 ⁄ 共 1019字 ⁄ 字号 评论关闭

每次安装软件的时候都报

/usr/local/webserver/php/bin/phpize 


Configuring for:
PHP Api Version:         20041225
Zend Module Api No:      20060613
Zend Extension Api No:   220060519
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
        LANGUAGE = (unset),
        LC_ALL = (unset),
        LANG = "zh_CN.GB2312;zh_CN.UTF-8;en_US;en_US.UTF-8"
    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),
        LANG = "zh_CN.GB2312;zh_CN.UTF-8;en_US;en_US.UTF-8"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").

在使用其它的某些命令时(如:mysqlhotcopy)也会也出现类似的提示。
搜索了好一段时间,并试了几次,找到一个解决此问题的简单方法,如下:

vi /root/.bashrc
再最底部加上
export LC_ALL=C
或者直接运行
echo "export LC_ALL=C" >> /root/.bashrc
然后执行一下:
source /root/.bashrc 

好了。

转自:http://hi.baidu.com/monobao/item/0a8ec110b52bac0ed0d66d24

抱歉!评论已关闭.