安装输入法引发LOCALE变量出错问题修复

JACK posted @ 2009年6月26日 20:17 in linux with tags ibus fcitx 输入法 SunPinyin locale 环境变量 , 4642 阅读

jack@jack-laptop:~$ locale
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

LANG=en_US.UTF-8
LANGUAGE=en_US.UTF-8
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_PAPER="en_US.UTF-8"
LC_NAME="en_US.UTF-8"
LC_ADDRESS="en_US.UTF-8"
LC_TELEPHONE="en_US.UTF-8"
LC_MEASUREMENT="en_US.UTF-8"
LC_IDENTIFICATION="en_US.UTF-8"
LC_ALL=en_US.UTF-8

之前安装ibus和fcitx输入法,还修改了.bashrc的一些环境变量,导致我的系统语言变成了en,不但ibus和fcitx都没有装成功,还出现上面的莫名其妙的错误,解决办法是在对照相应的错误导入正确的环境变量,如export LC_CTYPE=zh_CN.UTF-8,或者在.bashrc加入相应的行就可以了,这样我把相关的编码也都全部设置成了中文。这样设置后的环境变量变为了

jack@jack-laptop:~$ locale
LANG=zh_CN.UTF-8
LANGUAGE=zh_CN.UTF-8
LC_CTYPE="zh_CN.UTF-8"
LC_NUMERIC="zh_CN.UTF-8"
LC_TIME="zh_CN.UTF-8"
LC_COLLATE="zh_CN.UTF-8"
LC_MONETARY="zh_CN.UTF-8"
LC_MESSAGES="zh_CN.UTF-8"
LC_PAPER="zh_CN.UTF-8"
LC_NAME="zh_CN.UTF-8"
LC_ADDRESS="zh_CN.UTF-8"
LC_TELEPHONE="zh_CN.UTF-8"
LC_MEASUREMENT="zh_CN.UTF-8"
LC_IDENTIFICATION="zh_CN.UTF-8"
LC_ALL=zh_CN.UTF-8

输入法后来没辙了,装了一个SunPinyin,貌似是基于scim,还可以和scim兼容,暂时感觉还不错的样子,以前用的小企鹅和ibus在我的ubuntu 9.04上是没法用了。
 

Avatar_small
Jacqueline Johns 说:
Mar 24, 2020 07:25:49 PM

All the mutual parts of the field accurately flow for the team. The option of the college-paper.org reviews is ensured for the elements. The part is fit for humans. The apex position is held for the listened elements. Joy is ensured for the mid of the paths for humans.


登录 *


loading captcha image...
(输入验证码)
or Ctrl+Enter