My favorites | Sign in
Logo
                
Search
for
Updated Nov 27, 2009 by takao.fujiwara1
Labels: Featured, Phase-Requirements
Install  
Installation related topics, including building and testing.

Package Dependencies

ibus itself

ibus-qt

Individual Input Method Dependencies

ibus-anthy

ibus-chewing

ibus-hangul

ibus-pinyin & demo engine

Build & Install IBus

Obtain source code

IBus source code can either be download from IBus download page or obtained from git with following commands:

 $ git clone git://github.com/phuang/ibus.git ibus
 $ cd ibus

Build and Install

After source code is extracted from tarball or git, use following command to build and install:

 $ ./autogen.sh --prefix='/usr' --sysconfdir='/etc' --libdir='/usr/lib' --enable-gtk-doc
 $ make
 $ sudo make install

(Change the paths '/usr', '/etc', '/usr/lib' according to your system configuration.)

Register IBus as a Gtk immodule

For i386

 $ sudo update-gtk-immodules i386-redhat-linux-gnu

or

 $ gtk-query-immodules-2.0-32 /usr/lib/gtk-2.0/2.10.0/immodules/im-ibus.so

For x86_64

 $ sudo update-gtk-immodules x86_64-redhat-linux-gnu

or

 $ gtk-query-immodules-2.0-64 /usr/lib/gtk-2.0/2.10.0/immodules/im-ibus.so

(Replace the string i386-redhat-linux-gnu or path /usr/lib/gtk-2.0/2.10.0/immodules/im-ibus.so with the setting that matches your system.)

Build & Install IBus components

Build & Install IBus Qt input method plugin

 $ git clone git://github.com/phuang/ibus-qt.git ibus-qt
 $ cd ibus-qt
 $ cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Debug
 $ make
 $ sudo make install

Build & Install PinYin engine

 $ git clone git://github.com/phuang/ibus-pinyin.git ibus-pinyin
 $ cd ibus-pinyin
 $ ./autogen.sh --prefix=/usr
 $ make
 $ sudo make install

Build & Install Anthy engine

 $ git clone git://github.com/fujiwarat/ibus-anthy.git ibus-anthy
 $ cd ibus-anthy
 $ ./autogen.sh --prefix=/usr
 $ make
 $ sudo make install

Build & Install Chewing engine

  1. Get ibus-chewing source
  2. git clone git://github.com/definite/ibus-chewing.git
    cd ibus-chewing
  3. Make ibus-chewing
  4. cmake . -DCMAKE_INSTALL_PREFIX='/usr' -DLIBEXEC_DIR='/usr/libexec'
    make
  5. If you have previous version installed, then need to:
  6. make uninstall_schemas
  7. Install and register schemas
  8. sudo make install
    make install_schemas
  9. Use iBus UI or run ibus-setup to add ibus-chewing.
  10. Restart iBus and Enjoy!

Build & Install Hangul engine

 $ git clone git://github.com/phuang/ibus-hangul.git ibus-hangul
 $ cd ibus-hangul
 $ ./autogen.sh --prefix=/usr
 $ make
 $ sudo make install

Build & Install M17n engine

 $ git clone git://github.com/phuang/ibus-m17n.git ibus-m17n
 $ cd ibus-m17n
 $ ./autogen.sh --prefix=/usr
 $ make
 $ sudo make install

RPM

IBus itself and most of the components support source RPM building:

 $ make srpm

and RPM building:

 $ make rpm

The built RPMs are usually in dir ${ARCH} or RPMS/${ARCH}. Following RPMs will be built by default:

  1. ibus
  2. ibus-libs
  3. ibus-gtk
  4. ibus-devel
  5. ibus-debuginfo

End users only need first three, only components and input method developer need the rest. RPMs can be install by either:

 $ sudo rpm -hiv <rpm file list>

or with yum:

 $ sudo yum localinstall <rpm file list>

or with PackageKit:

 $ sudo pkcon install <rpm file list>

or any other GUI package manager that supports RPM.

Test iBus

Run iBus

Run ibus-setup to set the preference, enable input methods, also start ibus daemon. Run ibus-daemon to start ibus daemon immediately.

Run gnome, kde or old X applications

Set following environment varible for Gtk:

 $ GTK_IM_MODULE=ibus 

For KDE:

 $ QT_IM_MODULE=ibus

and other X applications

 $ XMODIFIERS="@im=ibus"

Comment by weishigogo, Mar 07, 2009

+ autopoint --force ./autogen.sh: 1: autopoint: not found what should I do?

Comment by dingyichen, Mar 15, 2009

weishigogo,

Which package did you encounter this problem?

Comment by InterMa.BMY, Mar 21, 2009

autopoint命令在gettext包中。。。

Comment by zengkid, Mar 23, 2009

有deb包发布吗?

Comment by dingyichen, Apr 14, 2009

zengkid: ubuntu 好像是 liliaobin 在打包

Comment by miguelamartinez, Apr 17, 2009

./autogen.sh: 1: autopoint: not found in pinyin

Comment by nicola.feltrin, Apr 20, 2009

Can someone explain how to build with the qt4 im module?

Comment by amoiz.sh...@gmail.com, Apr 24, 2009

wait for deb package

Comment by thmono, May 16, 2009

I have the same question "./autogen.sh: 1: autopoint: not found "

Comment by dionmoult, May 24, 2009

The three export variables by themselves didn't work. I needed these too:

export GDM_LANG=zh_CN.UTF-8/GB18030 export LANG=en_US.UTF-8 export LC_ALL=en_US.UTF-8 export LANGUAGE=en_US.UTF-8 export LC_CTYPE=zh_CN.UTF-8 export XMODIFIERS="@im=ibus" export XIM=ibus export XIM_ARGS="-d" export XIM_PROGRAM_SETS_ITSELF_AS_DAEMON=yes export DEPENDS="ibus" export XIM_PROGRAM=/usr/bin/ibus-daemon export GTK_IM_MODULE=ibus export QT_IM_MODULE=ibus export SMB_CODESET=GB18030

Hope it helps somebody having issues!

Comment by lvscar, Jul 11, 2009

build ibus 1.2 on ubuntu 9.04 you need these package:

hunspell,gettext,cvs,autoconf,libtool,docbook,libgconf2-dev,debhelper,html2text,libgtk2.0-dev,gtk-doc-tools ,autoconf

Comment by Jiang.Adam, Jul 18, 2009

Here is build instructions on Ubuntu Jaunty: $ sudo apt-get install hunspell gettext cvs autoconf libtool docbook libgconf2-dev debhelper html2text libgtk2.0-dev gtk-doc-tools $ git ... $ cd .. $ ./autogen.sh --prefix=... --lib=...

The build-dep of debian packages are not right anyway.

Comment by dingyichen, Jul 28, 2009

dionmoult,

What distribution did you work with?

Comment by roscoe.x, Sep 11, 2009

I run cmake . -DCMAKE_INSTALL_PREFIX='/usr' -DLIBEXEC_DIR='/usr/libexec'

But it show this error: -- checking for module 'chewing>=0.3.2' -- package 'chewing>=0.3.2' not found -- Configuring incomplete, errors occurred!

libchewing 0.3.2 already installed in the system. I use Fedora11. What should I do?

Comment by riin...@gmx.de, Nov 08, 2009

I get the following error trying to install jyutping input

teddue@Selma:~/Downloads/ibus-tables/ibus-table-jyutping-1.2.0.20090824$ ./autogen.sh --prefix='/usr' --sysconfdir='/etc' --libdir='/usr/lib' --enable-gtk-doc + aclocal -I m4 ./autogen.sh: 1: aclocal: not found

I'm running Ubunu 9.10 Karmic Koala, amd64


Sign in to add a comment
Hosted by Google Code