大懒猴827:
在ubuntu上安装google输入法
注:本文仅适用于采用ibus输入法框架的情况
1.检查系统上是否已经安装了cmake,gcc,cpp,g++软件包,没有的话则运行下述命令进行安装。
#sudo apt-get install cmake gcc cpp g++
http://code.google.com/p/libgooglepinyin/downloads/list下载并解压libgooglepinyin,ibus-googlepinyin。下载页面在这里: http://vdisk.weibo.com/s/13Q8p/1320841264 http://vdisk.weibo.com/s/13Q8z/1320841242
2.先解压文件,在命令行中输入:
3.先安装libgooglepinyin,在shell中执行下述各行命令
1.
#cd libgooglepinyin-0.1.1
2.
# mkdir build; cd build
3.
# cmake .. -DCMAKE_INSTALL_PREFIX=/usr
4.
# make
5.
# sudo make install
再安装ibus-googlepinyin,在shell中执行下述各行命令
1.
# cd ibus-googlepinyin-0.1.1
2.
# mkdir build; cd build
3.
# cmake .. -DCMAKE_INSTALL_PREFIX=/usr
4.
# make
5.
# sudo make install
特别需要注意的是,如果没有安装g++,在执行cmake的过程中,是可能报如下异常的。
CMake Error: your CXX compiler: "CMAKE_CXX_COMPILER-NOTFOUND" was not found. Please set CMAKE_CXX_COMPILER to a valid compiler path or name.
重新启动ibus输入法:
1.右击任务栏上的输入法图标->重新启动即可。
2.也可以输入下述命令重启。
1.
# pkill -f ibus-daemon ; ibus-daemon -d -x
在ibus中选择谷歌输入法:
系统->首选项->ibus首选项->选择输入法页签->点击选择输入法下拉列表(依次选择汉语、googlepinyin)->添加->关闭
现在你就可以在你的ubuntu上面使用你习惯了的google拼音了