sudo apt-get install cmake sudo apt-get install gcc sudo apt-get install cpp sudo apt-get install g++
http://code.google.com/p/libgooglepinyin/downloads/list html
# cd libgooglepinyin # mkdir build; cd build # cmake .. -DCMAKE_INSTALL_PREFIX=/usr # make # sudo make install
# 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.
# pkill -f ibus-daemon ; ibus-daemon -d -x
右击任务栏上的输入法图标->首选项->选择输入法页签->点击选择输入法下拉列表(依次选择汉语、googlepinyin)->添加->关闭 linux
出处:http://linux.cn/article-237-1.html shell