在ubuntu 11.10 下安裝谷歌輸入法

摘要: 注:本文僅適用於採用ibus輸入法框架的狀況 檢查系統上是否已經安裝了cmake,gcc,cpp,g++軟件包,沒有的話則運行下述命令進行安裝。 # sudo apt-get insall cmake,gcc,cpp,g++ 下載並解壓libgooglepinyin,ibus-google ...

注:本文僅適用於採用ibus輸入法框架的狀況 html

檢查系統上是否已經安裝了cmake,gcc,cpp,g++軟件包,沒有的話則運行下述命令進行安裝。 linux

·········10········20········30········40········50········60········70········80········90
1. # sudo apt-get insall cmake,gcc,cpp,g++

下載並解壓libgooglepinyin,ibus-googlepinyin。下載頁面在這裏:  shell

http://code.google.com/p/libgooglepinyin/downloads/list 框架

先安裝libgooglepinyin,在shell中執行下述各行命令 ui

·········10········20········30········40········50········60········70········80········90
1. # cd libgooglepinyin
2. # mkdir build; cd build
3. # cmake .. -DCMAKE_INSTALL_PREFIX=/usr
4. # make
5. # sudo make install

再安裝ibus-googlepinyin,在shell中執行下述各行命令 google

·········10········20········30········40········50········60········70········80········90
1. # cd ibus-googlepinyin
2. # mkdir build; cd build
3. # cmake .. -DCMAKE_INSTALL_PREFIX=/usr
4. # make
5. # sudo make install

特別須要注意的是,若是沒有安裝g++,在執行cmake的過程當中,是可能報以下異常的。 spa

CMake Error: your CXX compiler: "CMAKE_CXX_COMPILER-NOTFOUND" was not found. Please set CMAKE_CXX_COMPILER to a valid compiler path or name. .net

從新啓動ibus輸入法,右擊任務欄上的輸入法圖標->從新啓動便可。也能夠輸入下述命令重啓。 code

·········10········20········30········40········50········60········70········80········90
1. # pkill -f ibus-daemon ; ibus-daemon -d -x

在ibus中選擇谷歌輸入法 htm

右擊任務欄上的輸入法圖標->首選項->選擇輸入法頁籤->點擊選擇輸入法下拉列表(依次選擇漢語、googlepinyin)->添加->關閉

VIA http://www.linuxde.net/2011/11/1686.html

相關文章
相關標籤/搜索