当前位置: > Ubuntu >

Ubuntu 配置VNC时,出现“perl: warning: Falling back to the s

时间:2014-10-28 01:04来源:linux.it.net.cn 作者:it
Ubuntu 配置VNC时,出现“perl: warning: Falling back to the standard locale ("C").”等提示错误解决方法

再配置Ubuntu的VNC时,务必小心配置xstartup(/root/.vnc/xstartup)这个文件,很容易弄错!!!

  在启动窗口时,执行命令为:#sudo vncserver :1

    发现提示如下内容的警告:

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

===========================================

  过程:

    #sudo vim /root/.bashrc

    在尾部加入以下三条定义:

      export LANGUAGE="en_US.UTF-8" 

      export LANG=en_US:zh_CN.UTF-8 

      export LC_ALL=C 

 

    #source /root/.bashrc   ——>使用环境即时生效

   添加后,即可去掉那些提示或警告了!

(责任编辑:IT)
------分隔线----------------------------
栏目列表
推荐内容