LinuxSir.cn,穿越时空的Linuxsir!

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

编译安装scim,请教一个问题 (急)

[复制链接]
发表于 2008-5-4 16:28:13 | 显示全部楼层 |阅读模式
在电脑上编译源码安装scim,之后运行scim -d,只有一个scim-launcher进程,不能使用scim输入法,想问下这是怎么回事?
发表于 2008-5-4 16:38:42 | 显示全部楼层
你得装上相应的输入法才行,比如scim-pinyin。
推荐你试试scim-python,其带的拼音和形码都不错。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2008-5-4 16:50:36 | 显示全部楼层
Post by acevery;1845613
你得装上相应的输入法才行,比如scim-pinyin。
推荐你试试scim-python,其带的拼音和形码都不错。
我也安装了scim-pinyin了,装了好几次了 ,都是上面的情况。只有用yum install scim-pinyin安装的时候才可以用。可是我想编译安装scim。
回复 支持 反对

使用道具 举报

发表于 2008-5-4 21:49:40 | 显示全部楼层
这说明你自己编译的有问题。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2008-5-5 10:39:54 | 显示全部楼层
Post by acevery;1845740
这说明你自己编译的有问题。
我在./configure的时候,有下面这些信息:
Build options:
  Version                  1.4.7
  Install prefix           /usr/local
  Build shared libs        yes
  Build static libs        yes
  Build tests/*            no
  Enable debug             no
  Enable ld version script no

Module options:
  Simple config module     yes
  Socket config module     yes

  X11 FrontEnd module      no
  Socket FrontEnd module   yes

  RawCode IMEngine module  yes
  Socket IMEngine module   yes

  SCTC Filter module       yes

  GTK2 Utility Library     no
  X11 Utility Library      no

  GTK2 IMModule            no
  GTK2 IMModule dir        

  GUI Setup Utility        no

  GTK2 Panel GUI           no

  Enable TrayIcon          no
是不是GTK2 Panel GUI没有被编译,所以不能看到输入法的界面? 那要怎么样让它变成yes呢?
回复 支持 反对

使用道具 举报

发表于 2008-5-5 11:01:28 | 显示全部楼层
可能是你没有装需要的gtk包,具体我不知道,我用的是Gentoo,给你是看看我直接./configure的结果:
  1. Module options:
  2.   Simple config module     yes
  3.   Socket config module     yes
  4.   X11 FrontEnd module      yes
  5.   Socket FrontEnd module   yes
  6.   RawCode IMEngine module  yes
  7.   Socket IMEngine module   yes
  8.   SCTC Filter module       yes
  9.   GTK2 Utility Library     yes
  10.   X11 Utility Library      yes
  11.   GTK2 IMModule            yes
  12.   GTK2 IMModule dir        /usr/lib/gtk-2.0/immodules
  13.   GUI Setup Utility        yes
  14.   GTK2 Panel GUI           yes
  15.   Enable TrayIcon          yes
复制代码
回复 支持 反对

使用道具 举报

 楼主| 发表于 2008-5-5 13:47:31 | 显示全部楼层
安装了libgtk2-devel 之后,解决了几项no,现在还有x11的了,不知道这个要怎么解决?

Module options:
  Simple config module     yes
  Socket config module     yes

  X11 FrontEnd module      no
  Socket FrontEnd module   yes

  RawCode IMEngine module  yes
  Socket IMEngine module   yes

  SCTC Filter module       yes

  GTK2 Utility Library     yes
  X11 Utility Library      no

  GTK2 IMModule            yes
  GTK2 IMModule dir        /usr/lib/gtk-2.0/immodules

  GUI Setup Utility        yes

  GTK2 Panel GUI           yes

  Enable TrayIcon          no
回复 支持 反对

使用道具 举报

发表于 2008-5-5 19:38:37 | 显示全部楼层
你看看libX11,atk,libXt有没有装。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2008-5-6 14:03:59 | 显示全部楼层
Post by acevery;1846069
你看看libX11,atk,libXt有没有装。
你说的那几个我都装了,可还是不行,X11 FrontEnd module 还是no , 我make的时候出现下面的错误:
,/usr/local/lib
../../utils/.libs/libscim-gtkutils-1.0.so: undefined reference to `scim_x11_keymask_x11_to_scim(_XDisplay*, unsigned int)'
collect2: ld returned 1 exit status
make[3]: *** [scim-panel-gtk] 错误 1
make[3]: Leaving directory `/home/abby.xie/Download/scim-1.4.7/extras/panel'
make[2]: *** [all-recursive] 错误 1
make[2]: Leaving directory `/home/abby.xie/Download/scim-1.4.7/extras'
make[1]: *** [all-recursive] 错误 1
make[1]: Leaving directory `/home/abby.xie/Download/scim-1.4.7'
make: *** [all] 错误 2

不知道是不是 我装错了x11?
回复 支持 反对

使用道具 举报

发表于 2008-5-7 10:24:38 | 显示全部楼层
如果想自己编译,建议下载fedora的src.rpm包,里面有编译的spec文件,里面有正确的编译脚本以及编译依赖的关系。建议你研究一下scim.spec文件。
回复 支持 反对

使用道具 举报

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

本版积分规则

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