在Ubuntu下安裝谷歌輸入法

1.安裝軟件包cmake,cpp,gcc,g++;

sudo apt-get install cmake
sudo apt-get install gcc
sudo apt-get install cpp
sudo apt-get install g++

2.下載googlepinyin包,包括libgooglepinyin,和ibus-googlepinyin,我下載的是0.1.1


http://code.google.com/p/libgooglepinyin/downloads/list html

   1),安裝libgooglepinyin

# cd libgooglepinyin
# mkdir build; cd build
# cmake .. -DCMAKE_INSTALL_PREFIX=/usr
# make
# sudo make install

   2),安裝ibus-googlepinyin,


# 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.

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


# pkill -f ibus-daemon ; ibus-daemon -d -x

4.在ibus中選擇谷歌輸入法

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

出處:http://linux.cn/article-237-1.html shell

相關文章
相關標籤/搜索