百度空间 | 百度首页 
 
查看文章
 
debian 5.0 安装 ibus中文输入法
2009-03-21 02:40 P.M.
在 Opensuse 和debian 下装了几次 ibus 输入法都没有成功,今天花了 几个小时终于把它搞定了。
ibus 的界面非常漂亮,速度也很快,和各种软件的 兼容性也非常不错,支持好多种输入法。
最重要的是,它可以在英文系统中输入中文。

debian的源里面并没有包含ibus的包,ubuntu的源里有,但 它要求的几个组件都比debian5.0rc 默认安装的要新,所以横下心,从源码打包安装ibus.

我基本的步骤都是按照
ubuntu 中文论坛上的 《如何从最新的源码打包ibus》这篇文章进行。([url]http://forum.ubuntu.org.cn /viewtopic.php?f=56&t=164360&start=0&st=0&sk=t& sd=a[/url])
但是按照他的做法我装上ibus后无法调用ibus-setup..总是说 no module named xdg...
google 了一下,发现少装了个包,python-xdg
---------------------------------
sudo apt-get install git-core
sudo apt-get install python-gtk2-dev
sudo apt-get install cvs
sudo apt-get install libtool
sudo apt-get install automake
sudo apt-get install python-enchant
sudo apt-get install libgtk2.0-dev
sudo apt-get install libdbus-1-dev libdbus-glib-1-dev
sudo apt-get install python-xdg
到 [url]http://dbus.freedesktop.org/releases/dbus-python/[/url] 下载0.83源代码,编译安装就可以了
---------------------
获得ibus最新源码,并打包
git clone git://github.com/phuang/ibus.git ibus
cd ibus
./autogen.sh
chmod +x debian/rules
dpkg-buildpackage

获得ibus-pinyin并打包,中间会自动下载码表。
git clone git://github.com/phuang/ibus-pinyin.git ibus-pinyin
cd ibus-pinyin
./autogen.sh
chmod +x debian/rules
dpkg-buildpackage
--------------------------如果只要拼音,那么下面的就不要装了。----------------------------
如果要装五笔之类的 ,go on...
其它同上,记得需要给 debian/rules 加上可执行权限:
git clone git://github.com/acevery/ibus-table.git ibus-table
git clone git://github.com/phuang/ibus-chewing.git ibus-chewing
git clone git://github.com/phuang/ibus-anthy.git ibus-anthy
git clone git://github.com/phuang/ibus-hangul.git ibus-hangul
git clone git://github.com/phuang/ibus-m17n.git ibus-m17n
git clone git://github.com/phuang/ibus-tmpl.git ibus-tmpl

如果需要修改打包的版本号,修改debian/changelog在最前面增加上去就好了。

-----------------------------------------------------------------------------------
接下来设置一下,
命令行输入   gtk-query-immodules-2.0 > /etc/gtk-2.0/gtk.immodules.32
然后在.bashrc 里面 加入

export GTK_IM_MODULE=ibus
export XMODIFIERS=@im=ibus
export QT_IM_MODULE=ibus
-----------------
接下来 ibus-setup 就可以了。
然后大功告成,退出x,重新登录就可以用ibus拉。。


from http://www.ajaxstu.com/Linuxzhuomianyingyong/317735.html

类别:Linux | 添加到搜藏 | 浏览() | 评论 (3)
 
最近读者:
 
网友评论:
1
2009-03-23 09:26 P.M. | 回复
安装失败,编译安装的时候总是出现这样那样的错误~~~
 
2
2009-04-14 10:00 A.M. | 回复
lcat@debian:~/tmp/ibus$ ./autogen.sh
+ autopoint --force
Copying file po/Makefile.in.in
+ intltoolize --copy --force
You should update your 'aclocal.m4' by running aclocal.
+ libtoolize --automake --copy --force
+ gtkdocize --copy
+ aclocal -I m4 --force
configure.ac:120: warning: macro `AM_GCONF_SOURCE_2' not found in library
+ autoheader --force
+ automake --add-missing --copy --force
bus/Makefile.am:91: variable `test_registry_SOURCES' is defined but no program or
bus/Makefile.am:91: library has `test_registry' as canonic name (possible typo)
data/Makefile.am:33: GCONF_SCHEMAS_INSTALL does not appear in AM_CONDITIONAL
+ exit 1

卡壳了,你能帮我看看吗?mail me
 
3
2009-04-15 10:54 A.M. | 回复
回复lcat:sorry ,无能无力
 
发表评论:
姓 名:
网址或邮箱: (选填)
内 容:
验证码: 请点击后输入四位验证码,字母不区分大小写
      

     

©2009 Baidu