Ubuntu安装fcitx-googlepingyin

来源:互联网 发布:在交换机查ip端口号 编辑:程序博客网 时间:2024/05/19 07:07

不小心吧kylin自带的小企鹅弄坏了,终端输入fcitx提示与ibus的守护进程冲突,kill掉ibus的进程重启x-windows依然无法使用,无奈,卸载fcitx从新安装

之后安装fctix-googlepinyin又折腾许久,记录如下:


起初尝试下载源文件手动编译安装:

源文件地址:http://download.fcitx-im.org/


安装说明:

INSTALL:

To compile and install, go in the source directory and type:
mkdir build; cd build
cmake ..
(If you want to install in a different path, use instead:
cmake .. -DCMAKE_INSTALL_PREFIX=/install/path)
make

To install, become root if required:

make install

Once installed, you can restart fcitx and it will be enabled by default.

错误:

leo@leo-pc:~/fcitx-googlepinyin-0.1.6/build$ cmake ..-- The C compiler identification is GNU 4.8.1-- The CXX compiler identification is GNU 4.8.1-- Check for working C compiler: /usr/bin/cc-- Check for working C compiler: /usr/bin/cc -- works-- Detecting C compiler ABI info-- Detecting C compiler ABI info - done-- Check for working CXX compiler: /usr/bin/c++-- Check for working CXX compiler: /usr/bin/c++ -- works-- Detecting CXX compiler ABI info-- Detecting CXX compiler ABI info - done-- Found Gettext: /usr/bin/msgmerge (found version "0.18.1")CMake Error at CMakeLists.txt:6 (FIND_PACKAGE):  By not providing "FindFcitx.cmake" in CMAKE_MODULE_PATH this project has  asked CMake to find a package configuration file provided by "Fcitx", but  CMake did not find one.  Could not find a package configuration file provided by "Fcitx" (requested  version 4.2.0) with any of the following names:    FcitxConfig.cmake    fcitx-config.cmake  Add the installation prefix of "Fcitx" to CMAKE_PREFIX_PATH or set  "Fcitx_DIR" to a directory containing one of the above files.  If "Fcitx"  provides a separate development package or SDK, be sure it has been  installed.-- Configuring incomplete, errors occurred!


错误高不定,直接使用包安装:

sudo add-apt-repository ppa:fcitx-team/nightly
sudo apt-get update
sudo apt-get install fcitx fcitx-googlepinyin

sudo apt-get install fcitx fcitx-cloudpinyin    //提示找不到源


google拼音先将就用了,有成功安装云拼音的请赐教。。。


补充:

fcitx与ibus冲突的解决办法

卸载ibus:

  1. killall ibus-daemon
  2. sudo apt-get purge ibus ibus-gtk ibus-gtk3 ibus-pinyin* ibus-sunpinyin ibus-table python-ibus
  3. rm -rf ~/.config/ibus
把fcitx也卸载了
  1. sudo apt-get remove fcitx
重新安装fcitx:
  1. sudo apt-get install fcitx fcitx-googlepinyin
重启即可

因为卸载ibus会导致系统设置残缺,需要恢复系统设置

sudo apt-get install ubuntu-desktop

0 0
原创粉丝点击