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