安装fcitx时出错的解决方案

来源:百度文库 编辑:神马文学网 时间:2024/04/28 13:53:49
nputWindow.o -MD -MP -MF .deps/InputWindow.Tpo -c -o InputWindow.oInputWindow.c
InputWindow.c:31:21: 错误:X11/xpm.h:没有那个文件或目录
InputWindow.c: 在函数‘DrawInputWindow’中:
InputWindow.c:237: 错误:‘XpmAttributes’未声明(在此函数内第一次使用)
InputWindow.c:237: 错误:(即使在一个函数内多次出现,每个未声明的标识符在其
InputWindow.c:237: 错误:所在的函数内也只报告一次。)
InputWindow.c:237: 错误:expected ‘;’ before ‘attrib’
InputWindow.c:415: 错误:‘attrib’未声明(在此函数内第一次使用)
InputWindow.c:436: 警告:隐式声明函数‘XpmCreateImageFromData’
InputWindow.c:437: 错误:‘XpmSuccess’未声明(在此函数内第一次使用)
make[2]: *** [InputWindow.o] 错误 1
make[2]: Leaving directory `/home/tig2/下载/fcitx/src'
make[1]: *** [all-recursive] 错误 1
make[1]: Leaving directory `/home/tig2/下载/fcitx'
make: *** [all] 错误 2

还有一些其它错误,大部分是因为,对应的依赖库没有安装.
  FCITX 通常以源码的方式发布,您需要编译安装后才能使用。编译 FCITX 需要(并不
仅限于)以下包:
    • GCC-2.95.3 或更新版本
    • XFree86-4.3.0/xorg 或更新(及其开发包)

解决办法:
1
sudo apt-get install libxpm-dev
从终端启动fcitx时可能会提示:
Error Creat Chinese Fonts:
只有安装XFT才能避免出现这样的问题

sudo apt-get install libxft-dev

some times you also need to install this software:
sudo apt-get install   libX11-dev
and this:
sudo apt-get install libxtst-dev

2
now it would be solve your problem. if there is still some error happens,try this method:

Install apt-file: sudo apt-get install apt-file, then do:
sudo apt-file update

3     aha, if bad luck again ,  you should install all of the nessary sofware....here are some reference links that may help you :
http://hi.baidu.com/netee/blog/item/ffad2fb7b39fd8fe31add11c.html
http://hi.baidu.com/cnwsn/blog/item/b46fd25c8f106447fbf2c016.html

4      #apt-get install fcitx
#sh -c ” echo ‘export XMODIFIERS=@im=fcitx ; exportGTK_IM_MODULE=”fcitx” ; fcitx ‘ > /etc/X11/Xsession.d/95xinput ”
#chmod +755 /etc/X11/Xsession.d/95xinput