QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 1063|回复: 13

How to use scim under Gentoo?

[复制链接]
发表于 2004-2-28 13:45:21 | 显示全部楼层 |阅读模式
I've installed my gentoo properly. And I was planning to install the scim to allow me input chinese characters. So I downloaded the source pack, extracted it, and did something as follow:
[code:1]
$su
#tar xzf ~/scim-0.9.2.tar.gz
#./configure
#make
#make check
#make install
[/code:1]
Then I downloaded the Pinyin binary package and did somethings as follow:
[code:1]
$su
#rpm2targz scim-chinese-0.2.7-1.i586.rpm
#mkdir t
#cd t
#tar xzf ../scim-chinese-0.2.7-1.i586.tar.gz
#cp -a etc/* /usr/local/etc
#cp -a usr/* /usr/local/
[/code:1]
I also downloaded the source data for Generic Table Input Method Server module and installed it.
[code:1]
$su
#tar xzf ~/scim-tables-0.3.3.tar.gz
#./configure
#make
#make install
[/code:1]
After that, I modified my .xinitrc with adding the following lines:
[code:1]
export XMODIFIERS="@im=scim"
scim -c simple -d
[/code:1]
I thought it would be fine, so I started my X system. I also saw the little keyboard icon appeared at the right of the taskbar. But when I started the KWrite and pressed Ctrl+Space, nothing happeded! Letters were still letters, not been changed into chinese characters.
I've tried to remove "scim -c simple -d" from the .xinitrc and run it in a term window. Everything seems fine, it said like:
[code:1]
$scim -c simple -d
Smart Common Input Method 0.9.2

Loading simple Config module ...
Creating backend ...
Loading Server module: pinyin ...
    Loading Server Factory 0 ... : Failed
pinyin Server module is successfully loaded.
Loading Server module: rawcode ...
    Loading Server Factory 0 ... : OK
rawcode Server module is successfully loaded.
Loading Server module: socket ...
Failed to load socket Server module.
Loading Server module: table ...
    Loading Server Factory 0 ... : OK
    Loading Server Factory 1 ... : OK
    Loading Server Factory 2 ... : OK
    Loading Server Factory 3 ... : OK
    Loading Server Factory 4 ... : OK
    Loading Server Factory 5 ... : OK
    Loading Server Factory 6 ... : OK
    Loading Server Factory 7 ... : OK
    Loading Server Factory 8 ... : OK
    Loading Server Factory 9 ... : OK
    Loading Server Factory 10 ... : OK
    Loading Server Factory 11 ... : OK
    Loading Server Factory 12 ... : OK
    Loading Server Factory 13 ... : OK
    Loading Server Factory 14 ... : OK
    Loading Server Factory 15 ... : OK
table Server module is successfully loaded.
Loading x11 FrontEnd module ...
Starting SCIM as daemon ...
$
[/code:1]
But it didn't become any better. I don't understand what is the relationship between "pinyin Server module is successfully loaded" and "Loading Server Factory 0 ... : Failed".
Did I do anything wrong? Or something else must to be configured?
发表于 2004-2-29 09:45:31 | 显示全部楼层
WHY YOU TYPE THAT IN ENGLISH ?!
NOT EVERYBODY CAN READ THAT CLEARLY ...
回复

使用道具 举报

发表于 2004-2-29 11:17:44 | 显示全部楼层
[code:1]export XMODIFIERS="@im=SCIM"[/code:1]
回复

使用道具 举报

 楼主| 发表于 2004-2-29 11:52:32 | 显示全部楼层
To winme:
It's just because my scim doesn't work.

And to Kuye:
It still doesn't work after changed scim into SCIM. My gentoo is absolute pour. Could there be any libs that should have been installed first?
Well, after all, thanks for your attention. We are both busy now. I'm going to have the NMET on June 6 so I don't have much time to touch my Linux System.  Maybe this problem won't be sloved until I have done that damn examination.
回复

使用道具 举报

发表于 2004-2-29 14:22:44 | 显示全部楼层
$ tar zxf scim-0.9.2.tar.gz
$ tar zxf scim-tables-0.3.3.tar.gz
$ cd scim-0.9.2
$ ./configure --prefix=/usr --sysconfdir=/etc
$ make; make install
$ cd ../scim-tables-0.3.3
$ ./configure --prefix=/usr
$ make; make install
回复

使用道具 举报

发表于 2004-2-29 16:39:18 | 显示全部楼层
你的locale是什么?
把locale设成zh_CN.GBK
然后运行命令locale看是否正常。
回复

使用道具 举报

 楼主| 发表于 2004-2-29 19:21:45 | 显示全部楼层
locale did't take any effect.
And konsole becomes ugly to see, the space between two English words has been doubled
回复

使用道具 举报

发表于 2004-4-29 03:23:44 | 显示全部楼层
用root登陆x试试scim能不能用
回复

使用道具 举报

发表于 2004-4-29 11:01:57 | 显示全部楼层
拼音模块要用rpm2tgz把suzhe主页上面发布的rpm包手动解开,是放到 / 下面,gentoo的那个ebuild有问题。
回复

使用道具 举报

发表于 2004-6-22 11:35:32 | 显示全部楼层
Come on. Are you using Gentoo linux?

Just.

# emerge scim scim-chinese

That's it.

And in a konsole, type

$ scim -d

After 2 seconds, you should be able to invoke SCIM by typing CTRL+SPACE

Of course, set locale properly before you do that.
回复

使用道具 举报

发表于 2004-6-23 06:56:33 | 显示全部楼层
为什么这些Linux下的中文输入法都需要set locale properly? 如果象在Windows下, 在英文的桌面环境下也能输入中文就好勒.
回复

使用道具 举报

发表于 2004-6-23 16:03:46 | 显示全部楼层
也能的,8过要修改gtk的某个配置文件,你搜索一下论坛就知道了,在桌面美化版有关于英文locale下面中文输入的帖子。
回复

使用道具 举报

发表于 2004-6-23 22:39:54 | 显示全部楼层
[quote:8213295093="dzho002"]为什么这些Linux下的中文输入法都需要set locale properly? 如果象在Windows下, 在英文的桌面环境下也能输入中文就好勒.[/quote]
export LC_CTYPE=zh_CN (or zh_CN.GBK)

This is the onlything you need!
回复

使用道具 举报

发表于 2004-6-24 09:08:43 | 显示全部楼层
export LC_CTYPE=zh_CN (or zh_CN.GBK)
This is the onlything you need!

我试了试,SCIM和FCITX工作。
看了许多相关文档,还不如这一句话说的明白。多谢
回复

使用道具 举报

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

本版积分规则

GMT+8, 2024-10-5 12:21 , Processed in 0.042858 second(s), 16 queries .

© 2021 Powered by Discuz! X3.5.

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