注:本文僅适用于采用ibus輸入法架構的情況
檢查系統上是否已經安裝了cmake,gcc,cpp,g++軟體包,沒有的話則運作下述指令進行安裝。
下載下傳并解壓libgooglepinyin,ibus-googlepinyin。下載下傳頁面在這裡:
<a href="http://code.google.com/p/libgooglepinyin/downloads/list" target="_blank">http://code.google.com/p/libgooglepinyin/downloads/list</a>
先安裝libgooglepinyin,在shell中執行下述各行指令
再安裝ibus-googlepinyin,在shell中執行下述各行指令
特别需要注意的是,如果沒有安裝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輸入法,右擊工作列上的輸入法圖示->重新啟動即可。也可以輸入下述指令重新開機。
在ibus中選擇谷歌輸入法
右擊工作列上的輸入法圖示->首選項->選擇輸入法頁簽->點選選擇輸入法下拉清單(依次選擇漢語、googlepinyin)->添加->關閉
<b>原文釋出時間為:2011-11-10</b>
<b>本文來自雲栖社群合作夥伴“linux中國”</b>