[问题已解决]fcitx死活装不上了,求教!!!

系统安装、升级讨论
版面规则
我们都知道新人的确很菜,也喜欢抱怨,并且带有浓厚的Windows习惯,但既然在这里询问,我们就应该有责任帮助他们解决问题,而不是直接泼冷水、简单的否定或发表对解决问题没有任何帮助的帖子。乐于分享,以人为本,这正是Ubuntu的精神所在。
回复
lans
帖子: 232
注册时间: 2006-11-11 18:37

[问题已解决]fcitx死活装不上了,求教!!!

#1

帖子 lans » 2007-02-26 12:14

fcitx死活装不上了,求教!!!

去年装fcitx非常顺利,今天重装了一次系统,再装,死活装不上了,情况如下:

1、sudo apt-get install im-switch fcitx
安装完成后执行sudo im-switch -s fcitx
提示update-alternatives: Cannot find alternative `/etc/X11/xinit/xinput.d/fcitx'.
到/etc/X11/xinit/xinput.d下面去看了一下,fcitx文件是存在的。

2、sudo apt-get remove fcitx
到fcitx的主页上下载fcitx3.4.2的源码
执行configure正常
执行make出错,提示如下:
InputWindow.c:30:21: error: X11/xpm.h: 沒有此一檔案或目錄
InputWindow.c: In function ‘DrawInputWindow’:
InputWindow.c:228: error: ‘XpmAttributes’ undeclared (first use in this function)
InputWindow.c:228: error: (Each undeclared identifier is reported only once
InputWindow.c:228: error: for each function it appears in.)
InputWindow.c:228: error: expected ‘;’ before ‘attrib’
InputWindow.c:397: error: ‘attrib’ undeclared (first use in this function)
InputWindow.c:418: warning: implicit declaration of function ‘XpmCreateImageFromData’
InputWindow.c:419: error: ‘XpmSuccess’ undeclared (first use in this function)
make[2]: *** [InputWindow.o] Error 1
make[2]: Leaving directory `/home/lans/Desktop/fcitx-3.5/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/lans/Desktop/fcitx-3.5'
make: *** [all] Error 2

这两种方法都装不成fcitx了,不知道为什么。
上次由 lans 在 2007-02-28 16:17,总共编辑 1 次。
头像
BigSnake.NET
帖子: 12522
注册时间: 2006-07-02 11:16
来自: 廣州
联系:

#2

帖子 BigSnake.NET » 2007-02-26 12:18

^_^ ~~~
要理解递归,首先要理解递归。

地球人都知道,理论上,理论跟实际是没有差别的,但实际上,理论跟实际的差别是相当大滴。
头像
Decease
帖子: 834
注册时间: 2006-12-14 20:33

#3

帖子 Decease » 2007-02-26 12:19

sudo apt-get -f install
lans
帖子: 232
注册时间: 2006-11-11 18:37

#4

帖子 lans » 2007-02-26 18:26

用二楼的帖子中的包装后仍然是update-alternatives: Cannot find alternative `/etc/X11/xinit/xinput.d/fcitx'.
头像
skyx
论坛版主
帖子: 9202
注册时间: 2006-12-23 13:46
来自: Azores Islands
联系:

#5

帖子 skyx » 2007-02-26 18:29

楼主其它部分我没有看:只是下面的命令不加sudo 也是可以的,能不加sudo ,则没有必要加sudo

im-switch -s fcitx
no security measure is worth anything if an attacker has physical access to the machine
lans
帖子: 232
注册时间: 2006-11-11 18:37

#6

帖子 lans » 2007-02-26 19:00

不加也不行,一开始就试过了
头像
BigSnake.NET
帖子: 12522
注册时间: 2006-07-02 11:16
来自: 廣州
联系:

#7

帖子 BigSnake.NET » 2007-02-26 19:18

update-alternatives --config xinput-zh_CN
^_^ ~~~
要理解递归,首先要理解递归。

地球人都知道,理论上,理论跟实际是没有差别的,但实际上,理论跟实际的差别是相当大滴。
回复