哈哈,我刚刚碰到你那种情况,fcitx在xfce4里能运行,就是用ctrl+space调不出中文输入法,郁闷了两天,终于解决啦。
其实我的locale和.xinitrc都设为zh_CN和fcitx了,中文字体也安装了,编译的firefox能看中文网页,但是终端不能显示中文,最后是在USE选项中加啦gtk和gtk2,重新emerge glibc就全好啦,fcitx奇迹般地调出来了,rxvt 终端也能显示中文了,happy ;-)
下面是我的配置文件,提供给需要的朋友一个参考,我也刚刚第一次把gentoo编译成功的菜鸟,不要笑哟,高手请指点。
#cat /etc/make.conf
- # These settings were set by the catalyst build script that automatically built this stage
- # Please consult /etc/make.conf.example for a more detailed example
- CFLAGS="-march=athlon-xp -O3 -pipe -fomit-frame-pointer"
- CHOST="i686-pc-linux-gnu"
- CXXFLAGS="${CFLAGS} -fvisibility-inlines-hidden"
- LDFLAGS="-Wl,-O1"
- USE="alsa cjk java nls nptl nptlonly nvidia threads unicode gtk gtk2"
- ACCEPT_KEYWORDS="~x86"
- MAKEOPTS="-j2"
- LINGUAS="zh_CN"
- PORTDIR_OVERLAY="/usr/local/glc"
- GENTOO_MIRRORS="http://gentoo.gg3.net/ http://mirror.gentoo.ru/pub/mirror/gentoo/ http://ftp.gentoo.or.kr/ http://mirror.gentoo.gr.jp/ http://mirror.usu.edu/mirrors/gentoo/"
- SYNC="rsync://rsync.gg3.net/gentoo-portage/
复制代码
#cat /etc/locales.build
- # This file names the list of locales to be built when glibc is installed.
- # The format is <locale>/<charmap>, where <locale> is a locale from the
- # /usr/share/i18n/locales directory, and <charmap> is name of one of the files
- # in /usr/share/i18n/charmaps/. All blank lines and lines starting with # are
- # ignored. Here is an example:
- # en_US/ISO-8859-1
- en_US/ISO-8859-1
- en_US.UTF-8/UTF-8
- zh_CN/GB18030
- zh_CN.GB2312/GB2312
- zh_CN.UTF-8/UTF-8
复制代码
#cat /etc/env.d/99local
- LANG="zh_CN"
- LC_ALL="zh_CN"
- XMODIFIERS="@im=fcitx"
- XIM="fcitx"
- XIM_PROGRAM="fcitx"
复制代码
#cat ~/.xinitrc
- #! /bin/sh
- export XMODIFIERS=@im=fcitx
- export XIM=fcitx
- export XIM_PROGRAM=fcitx
- export GTK_IM_MODULE=xim
- fcitx&
- startxfce4
复制代码 |