載自:http://code.google.com/p/scim-googlepinyin/wiki/install
並修改了一些內容
install
how to build and install scim-googlepinyin
* Introduction
* grab the source
* build depends
* runtime depends
* build and install
Introduction
This document is intended to help you to build and install scim-googlepinyin from scratch.
grab the source
Scim-googlepinyin still has some critical bugs. And it is still under active development. I'd like to suggest you always try the latest version by:
$ git clone git://github.com/tchaikov/scim-googlepinyin.git
$ cd scim-googlepinyin.git
If the git command is not available in your system, you may want to install it to continue checking out the source.
build depends
You will need install following package before building this software:
* automake
* libtool
* autotools-dev
* libgtk2.0-dev
* libscim-dev
Although these packages' names vary, they are available on most GNU/Linux distribution. On Debian or Ubuntu, following command should work for you.
$ sudo aptitude install automake libtool autotools-dev libgtk2.0-dev libscim-dev
//建議經常使用aptitude而不是apt-get,因為前者在發現缺少依賴的時候會自動安裝缺失的內容。昨天在配置android編譯環境時因為需要安裝libsdl-dev,媽的死活找不到依賴的包,我甚至都下了個deb包安裝,結果也不行。到今天早上才看到一個文章中用aptitude安裝,果然解決了問題
runtime depends
* scim
$ sudo aptitude install scim
build and install
Following commands installs scim-googlepinyin into your system.
$ ./autogen.sh
$ make
$ sudo make install
最後在scim中配置一下就好了,發現一個小大bug,就是候選字翻頁後,候選字會向左位移一位。試著將候選字個數由預設的8改為7後解決問題,不過候選字列表中還是顯示9個字,這不影響什麼。