ubuntu云输入法ibus cloud pinyin

在我的博文《ubuntu安装搜狗云输入法 》中介绍了ubuntu下搜狗云输入法的安装,ubuntu下搜狗云输入法的进化版本ubuntu云输入法ibus-cloud-pinyin已经出现,以下是安装笔记:

1、先升级ibus到1.3.7,对云输入法可能非必要,但升级后可以安装的输入法比较多。

1 wget http: //ibus.googlecode.com/files/ibus-1.3.7.tar.gz
2 tar zxf ibus-1.3.7.tar.gz
3 cd ibus-1.3.7
4 make
5 sudo make install

在安装期间可能会碰到很多错误,导致无法编译通过,一下是每个错误对应的解决方法:

1 configure: error: Your intltool is too old.  You need intltool 0.35.0 or later.
2     sudo apt-get install intltool
3 ERROR: No package 'gtk+-2.0' found
4     sudo apt-get install libgtk2.0-dev
5 ERROR: No package 'dbus-1' found
6     sudo apt-get install libdbus-1-dev
7 ERROR: No package 'gconf2' found
8     sudo apt-get install libgconf2-dev

安装完成后,做如下步骤,会触发系统更新,更新完成后,ibus才正式升级完成。不过我不知道为什么要这样做,还是说步骤上有多余,大家如果有测试出完整正确的安装步骤的还请告知,谢谢!

1 sudo add-apt-repository ppa:shawn-p-huang/ppa
2 sudo apt-get update
3 sudo apt-get install ibus-gtk ibus-qt ibus-pinyin ibus-pinyin-db-open-phrase

2、云输入法安装

1 svn checkout http: //ibus-cloud-pinyin.googlecode.com/svn/trunk/ ibus-cloud-pinyin-read-only
2 cd ibus-cloud-pinyin-read-only
3 make
4 sudo make install

同样,在安装过程中,会遇到错误,错误及对策如下:

01 ERROR: Required program valac not found
02    sudo apt-get install valac
03 ERROR: Required program lua not found
04    sudo apt-get install lua5.1-0-dev
05 ERROR: Required program sqlite3 not found
06    sudo apt-get install libsqlite3-dev
07 ERROR: Required pkg lua5.1 >= 5.1 not found
08 ERROR: Required pkg gee-1.0 >= 0 not found
09    sudo apt-get install libgee-dev
10 ERROR: Required pkg dbus-glib-1 >= 0 not found
11    sudo apt-get install dbus-glib-1-dev
12 ERROR: Required pkg libnotify >= 0 not found
13    sudo apt-get install libnotify-dev
14 ERROR: Runtime-required luasocket not found
15    sudo apt-get install luasocket5.1-socket2
16 另外可能需要安装的包 : compiz-dev libgtk2.0-dev

3、配置方法

如果需要更改默认配置,目前的版本需要手工修改配置文件:

全局配置文件:/usr/share/ibus-cloud-pinyin/lua/config.lua

用户配置文件:${XDG_CONFIG_HOME:-$HOME/.config}/ibus/cloud-pinyin/config.lua

修改完配置后,记得将配置项周围的注释–[[ 和 --]]删除

01 sudo gedit /usr/share/ibus-cloud-pinyin/lua/config.lua
02 set_switch{
03      default_chinese_mode = true,
04      default_offline_mode = false,
05      default_traditional_mode = false,
06      double_pinyin = true,
07      background_request = true,
08      show_raw_in_auxiliary = true,
09      always_show_candidates = true,
10      show_pinyin_auxiliary = true,
11 }

error

1 main.vala:28.7-28.22: error: The name `thread_init ' does not exist in the context of `DBus'
2        DBus.thread_init();
3 Compilation failed: 1 error(s), 0 warning(s)
4 make[1]: *** [main.c] 错误 1

http://live.gnome.org/Vala/Release

1 wget http: //download.gnome.org/sources/vala/0.10/vala-0.10.2.tar.bz2
2 tar jxf vala-0.10.2.tar.bz2
3 cd vala-0.10.2
4 ./configure
5 make && make install
6 sudo ln -s /usr/local/lib/libvala-0.10.so.0.0.0 /usr/lib64/libvala-0.10.so.0
7 # if need flex
8 sudo apt-get install flex

最新更新:

1 Updates
2  
3      * 2010.11.24 消除编译时 libgee 警告,一个其他小改进

你可能感兴趣的:(sqlite,ubuntu,Flex,输入法,搜狗,compilation)