歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Linux基礎 >> Linux教程 >> Ubuntu中安裝Fcitx輸入法詳細攻略

Ubuntu中安裝Fcitx輸入法詳細攻略

日期:2017/2/28 17:10:56   编辑:Linux教程

Ubuntu中安裝Fcitx輸入法詳細方法見下:

1、安裝前所需文件
sudo apt-get install build-essential
sudo apt-get build-dep Fcitx

2,下載Fcitx安裝
一、如果是Ubuntu系統
sudo apt-get install im-switch Fcitx

sudo im-switch -s Fcitx -z default

im-switch -s Fcitx -z default

Fcitx

如果能成功的話當然很好,但是這樣做有兩個問題,一是Ubuntu源上的Fcitx的版本很老,
二是這樣做未必就可行,因為有時候安裝之後在執行上面第二條命令的時候系統提示
“update-alternatives: Cannot find alternative `/etc/X11/xinit/xinput.d/Fcitx'.”
而這時候查看該文件夾,發現Fcitx文件確實是存在的。

二、到Fcitx官方網站下載源碼包。
http://www.Fcitx.org/download/Fcitx-3.5-070703.tar.bz2

./configure -prefix=/usr

make

sudo make install

Fcitx

然後編譯安裝,這種情況通常會遇到一個問題,就是在make的時候說找不到X11/xpm.h,
這是因為有個組件沒有安裝,使用“sudo apt-get install xlibs-dev”就可以了。

Copyright © Linux教程網 All Rights Reserved