1.安装软件包cmake,cpp,gcc,g++;
sudo apt-get install cmake
sudo apt-get install gcc
sudo apt-get install cpp
sudo apt-get install g++
2.下载googlepinyin包,包括libgooglepinyin,和ibus-googlepinyin,我下载的是0.1.1
http://code.google.com/p/libgooglepinyin/downloads/list
1),安装libgooglepinyin
# cd libgooglepinyin
# mkdir build; cd build
# cmake .. -DCMAKE_INSTALL_PREFIX=/usr
# make
# sudo make install
2),安装ibus-googlepinyin,
# cd ibus-googlepinyin
# mkdir build; cd build
# cmake .. -DCMAKE_INSTALL_PREFIX=/usr
# make
# sudo make install
如果没有安装g++,会出现:
CMake Error: your CXX compiler: "CMAKE_CXX_COMPILER-NOTFOUND" was not found. Please set CMAKE_CXX_COMPILER to a valid compiler path or name.
3.重新启动ibus输入法,右击任务栏上的输入法图标->重新启动即可。也可以输入下述命令重启
# pkill -f ibus-daemon ; ibus-daemon -d -x
4.在ibus中选择谷歌输入法
右击任务栏上的输入法图标->首选项->选择输入法页签->点击选择输入法下拉列表(依次选择汉语、googlepinyin)->添加->关闭
出处:http://linux.cn/article-237-1.html