LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1113|回复: 14

fcitx在slackware中的安装方法请教!经多次尝试仍然没有成功(问题已经解决,文中总结

[复制链接]
发表于 2005-5-10 18:32:17 | 显示全部楼层 |阅读模式
我使用slackware有一段时间了,但是中文输入法确从来没有安装成功!非常打击我对slackware的信心!
在这里我希望能有朋友给我的过程与方法指点,或者能给出一个完整的过程,和其中的原理。

我的安装方法是:
1:安装slackware10。1
2:下载fcitx预编译包fcitx-3.1.1-bin.tar.bz2(自己编译老是不能通过,有两个错误)
3:拷贝simsun.ttf到了字体的一个TTC目录
4:新建.bashrc文件
在这个文件最后面加上:
export LC_ALL=zh_CN.gbk
export LANG=zh_CN.gbk
export XMODIFIERS=@im=fcitx
5:logout再login
在终端里输入命令:
fcitx
应该有一个图标出现在桌面顶部的中间了
6:qtconfig把xim的选项改成over the spot。
7:但是不管是在什么情况下,不能输入汉字,用Ctrl+Blank没有反应

尝试很多次,包括在10。0上,都是同样的情况,请朋友指点。谢谢
发表于 2005-5-10 20:01:43 | 显示全部楼层
Post by rawbean
我使用slackware有一段时间了,但是中文输入法确从来没有安装成功!非常打击我对slackware的信心!
在这里我希望能有朋友给我的过程与方法指点,或者能给出一个完整的过程,和其中的原理。

我的安装方法是:
1:安装slackware10。1
2:下载fcitx预编译包fcitx-3.1.1-bin.tar.bz2(自己编译老是不能通过,有两个错误)
3:拷贝simsun.ttf到了字体的一个TTC目录
4:新建.bashrc文件
在这个文件最后面加上:
export LC_ALL=zh_CN.gbk
export LANG=zh_CN.gbk
export XMODIFIERS=@im=fcitx
5:logout再login
在终端里输入命令:
fcitx
应该有一个图标出现在桌面顶部的中间了
6:qtconfig把xim的选项改成over the spot。
7:但是不管是在什么情况下,不能输入汉字,用Ctrl+Blank没有反应

尝试很多次,包括在10。0上,都是同样的情况,请朋友指点。谢谢

首先改一下在  /etc/profile.d/lang.sh中加一行。

export LANG=zh_CN

注掉:
#export LANG=en_US
#export LANG=en_US.ISO8859-1
等。。。

然后再改加 ~/.bashrc 的内容。 如果没有,创建一下。

内容如下:

alias ls="ls --color"
export PS1="[\u@\h \W]\\$"
export LANG=zh_CN
export XMODIFIERS="@im=fcitx"



然后运行

[root@S02 beinan]#source   /etc/profile.d/lang.sh
[beinan@S02 ~]$source ~/.bashrc
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-5-10 22:00:17 | 显示全部楼层
bad luck...
I still can not type chinese..

I fllowed your method..but failed agine..

不能输入汉字,用Ctrl+Blank没有反应
回复 支持 反对

使用道具 举报

发表于 2005-5-10 23:02:20 | 显示全部楼层
把locale帖出来看看。另外安装一个 simsun的字体。。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-5-10 23:11:02 | 显示全部楼层
[root@rawbean ~]#locale
LANG=zh_CN
LC_CTYPE="zh_CN"
LC_NUMERIC="zh_CN"
LC_TIME="zh_CN"
LC_COLLATE=C
LC_MONETARY="zh_CN"
LC_MESSAGES="zh_CN"
LC_PAPER="zh_CN"
LC_NAME="zh_CN"
LC_ADDRESS="zh_CN"
LC_TELEPHONE="zh_CN"
LC_MEASUREMENT="zh_CN"
LC_IDENTIFICATION="zh_CN"
LC_ALL=
[root@rawbean ~]#
simsun have installed...
I can find it from the font list...
回复 支持 反对

使用道具 举报

发表于 2005-5-11 08:44:25 | 显示全部楼层
再把 /etc/profile.d/lang.sh 的内容帖一下。

按 [ctrl]+f2,进入text模式,用你用的ID登一录,然后运行一下 locale ,看看是不是和上面一致。

另外参考一下这帖。

http://www.linuxsir.cn/bbs/showthread.php?t=197336
回复 支持 反对

使用道具 举报

发表于 2005-5-11 10:03:05 | 显示全部楼层
可能是预编译包有问题,我用的是 10.1,我在sl 中也编译了一个,刚才测试了一下,没有发现问题。就按我上面说的做。

下载地址 :

http://www.fcitx.org/download/fcitx-3.1.1sl101.tar.bz2

解包后:

#make install

然后把上面那些都设置好了,重启一下机器。

需要输入命令来运行fcitx

试试看。
回复 支持 反对

使用道具 举报

发表于 2005-5-11 11:41:24 | 显示全部楼层
试试将locale改为zh_CN.gbk
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-5-11 12:48:08 | 显示全部楼层
/etc/profile.d/lang.sh

#!/bin/sh
# Set the system locale.  (no, we don't have a menu for this ;-)
# For a list of locales which are supported by this machine, type:
#   locale -a

# en_US is the Slackware default locale:
#export LANG=en_US



export LANG=zh_CN

# 'C' is the old Slackware (and UNIX) default, which is 127-bit
# ASCII with a charmap setting of ANSI_X3.4-1968.  These days,
# it's better to use en_US or another modern $LANG setting to
# support extended character sets.
#export LANG=C

# There is also support for UTF-8 locales, but be aware that
# some programs are not yet able to handle UTF-8 and will fail to
# run properly.  In those cases, you can set LANG=C before
# starting them.  Still, I'd avoid UTF unless you actually need it.
#export LANG=en_US.UTF-8

# Another option for en_US:
#export LANG=en_US.ISO8859-1

# One side effect of the newer locales is that the sort order
# is no longer according to ASCII values, so the sort order will
# change in many places.  Since this isn't usually expected and
# can break scripts, we'll stick with traditional ASCII sorting.
# If you'd prefer the sort algorithm that goes with your $LANG
# setting, comment this out.
export LC_COLLATE=C

# End of /etc/profile.d/lang.sh
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-5-11 13:30:46 | 显示全部楼层
Post by Yuking
试试将locale改为zh_CN.gbk


I followed this method...

then changed

----------------------------------------------------------------------------
/etc/profile.d/lang.sh

#!/bin/sh
# Set the system locale. (no, we don't have a menu for this ;-)
# For a list of locales which are supported by this machine, type:
# locale -a

# en_US is the Slackware default locale:
#export LANG=en_US

export LANG=zh_CN.gbk
---------------------------------------------------------------------------
然后再改加 ~/.bashrc 的内容。 如果没有,创建一下。

内容如下:

alias ls="ls --color"
export PS1="[\u@\h \W]\\$"
export LANG=zh_CN.gbk
export XMODIFIERS="@im=fcitx"
-------------------------------------------------------------------------------
done this...[Ctrl]+Blank can change the Fcitx's model...but under pingyin model,I can not type any symbol.......
-----------------------------------------------------
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表