最近忍不住手痒又装回了Ubuntu,不过这次的版本是8.04。
输入法依然选择在7.10时就很喜欢用的scim-python。
最新版本0.1.13rc1下载地址:http://scim-python.googlecode.com/files/scim-python-0.1.13rc1.tar.gz
兴高采烈的从googlecode上下载了源码,按照官方的说明在终端中输入以下命令
[code]
$ sudo apt-get install scim-dev
$ sudo apt-get install python-enchant
$ sudo apt-get install python-gtk2-dev
$ sudo apt-get install libgtk2.0-dev
$ tar jxvf scim-python-${version}.tar.bz2
$ cd scim-python-${version}
$ ./configure –prefix=/usr
$ make
$ sudo make install
[/code]
但却出现了以下错误提示
[code]
../libtool: line 1311: g++: command not found
make[2]: *** [_scim_la-scim-python.lo] 错误 1
make[2]: Leaving directory `/home/leslie/scim-python-0.1.8/src'
make[1]: *** [install-recursive] 错误 1
make[1]: Leaving directory `/home/leslie/scim-python-0.1.8/src'
make: *** [install-recursive] 错误 1
[/code]
在搜索了Ubuntu.cn的论坛后终于找到解决办法,此办法由pengkuny提供
正确的安装步骤如下,原因是少安装了scim-python编译过程中需要的程序:
[code]
$ sudo apt-get install scim-dev
$ sudo apt-get install python-enchant
$ sudo apt-get install python-gtk2-dev
$ sudo apt-get install libgtk2.0-dev
$ sudo apt-get install build-essential gcc make autoconf automake libtool gdb g++
$ tar jxvf scim-python-${version}.tar.bz2
$ cd scim-python-${version}
$ ./configure –prefix=/usr
$ make
$ sudo make install
[/code]