Fedora 11源码安装设置fcitx3.6输入法


Fedora 11下默认的输入法是ibus,虽然比scim好用那么一些,但还是感觉没有fcitx好用,于是就下载最新但fcitx3.6源码编译安装。

现在fcitx项目已经放在狗狗上了,地址如下:http://code.google.com/p/fcitx/ 去地址http://code.google.com/p/fcitx/downloads/list下载当前最新的fcitx3.6版。下载解压并安装:
tar -xvf fcitx-3.6.0-rc.tar.bz2
cd fcitx-3.6.0-rc
./autogen.sh
./configure
make
make install

        在make的时候报错:
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/mgqw/install/fcitx-3.6.0-rc/src'
make[1]: *** [all-recursive] 错误 1
make[1]: Leaving directory `/home/mgqw/install/fcitx-3.6.0-rc'
make: *** [all] 错误
	网上一搜索说是没有libxpm开发包,并且给出里Ubuntu的解决办法:
sudo apt-get install libxpm-dev

从终端启动fcitx时可能会提示:
Error Creat Chinese Fonts:

只有安装XFT才能避免出现这样的问题
sudo apt-get install libxft-dev
我的Fedora 11依样画葫芦,把apt改成yum,发现找不到rpm包让我很郁闷:
[root@mgqw linuxqq_v1.0]# yum install libxpm-dev
载入插件: fastestmirror, presto, refresh-packagekit
Loading mirror speeds from cached hostfile
* fedora: ftp.cuhk.edu.hk
* rpmfusion-free: mirrors.tummy.com
* rpmfusion-free-updates: mirrors.tummy.com
* rpmfusion-nonfree: mirrors.tummy.com
* rpmfusion-nonfree-updates: mirrors.tummy.com
* updates: mirror.nus.edu.sg
设置安装进程
No package libxpm-dev available.
无事可做
 
  • 1
  • 2
  • 下一页

相关内容