歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Linux基礎 >> Linux教程 >> Fedora 11源碼安裝設置fcitx3.6輸入法

Fedora 11源碼安裝設置fcitx3.6輸入法

日期:2017/2/28 16:44:12   编辑:Linux教程
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.
無事可做

Copyright © Linux教程網 All Rights Reserved