Source
Dependencies: cmake build-essential opencc mercurial
To install the dependencies, you can run:
sudo apt-get install cmake build-essential opencc mercurial ibus
这几个软件是编译以下源码所需,必须安装。
libgooglepinyin
The library.
To compile and install the googlepinyin library, you can run:
hg clone http://code.google.com/p/libgooglepinyin/ cd libgooglepinyin mkdir build; cd build cmake .. -DCMAKE_INSTALL_PREFIX=/usr make sudo make install
ibus-googlepinyin
The ibus wrapper
To compile and install ibus-googlepinyin, you can run:
hg clone http://code.google.com/p/libgooglepinyin.ibus-wrapper/ ibus-googlepinyin cd ibus-googlepinyin mkdir build; cd build cmake .. -DCMAKE_INSTALL_PREFIX=/usr make sudo make install
——————————————————————————–
(如果是IBUS框架,可不安装fcitx-googlepinyin.)
fcitx-googlepinyin
The fcitx wrapper
To compile and install fcitx-googlepinyin, you can run:
hg clone http://code.google.com/p/fcitx.fcitx-googlepinyin/ fcitx-googlepinyin cd fcitx-googlepinyin mkdir build; cd build cmake .. -DCMAKE_INSTALL_PREFIX=/usr make sudo make install
文档中是使用命令下载源码包,你也可以在以下网址下载他们:
http://code.google.com/p/libgooglepinyin/downloads/list
安装之后,重启ibus输入法,google pinyin就会出现在添加列表里面,选择添加即可。
另外,安装Ubuntu开机默认是不启动ibus的,可以采取下面的方法实现ibus开机启动:
方法一. System >> Administration >> Language Support
然后设置”Keyboard Input Method System”为ibus。
方法二:当然你也可以设置开机自己启动ibus
System >> Preferences >> Startup Applications
Click the button: Add
Name: IBus daemon
Command: /usr/bin/ibus-daemon -d
Comment: start IBus daemon when Gnome starts 。