My favorites | Sign in
Project Home Downloads Wiki Issues Source
Search
for
Install  
Installation related topics, including building and testing.
Featured, Phase-Requirements
Updated Aug 3, 2011 by Shawn.P....@gmail.com

Package Dependencies

ibus itself

  • python >= 2.5
  • dbus-glib >= 0.74
  • dbus-python >= 0.83.0
  • notify-python
  • iso-codes

ibus-qt

  • cmake
  • qt >= 4.5

Individual Input Method Dependencies

ibus-anthy

  • anthy

ibus-chewing

  • Build dependencies:
    • CMake >= 2.4
    • gob2
    • libchewing >= 0.3.2
    • GConf2
  • Run dependencies:
    • libchewing >= 0.3.2
    • GConf2

ibus-hangul

  • libhangul

ibus-pinyin & demo engine

  • python-enchant
  • hunspell-en

Build & Install IBus

Obtain source code

IBus source code can either be download from IBus download page (If you use ibus for the first time, the download page is more stable than git.)

 $ zcat ibus-xx.tar.gz | tar xfv -
 $ cd ibus-xx
  • The 'xx' is a version number.

or obtained from git with following commands:

 $ git clone git://github.com/phuang/ibus.git ibus
 $ cd ibus
  • 'git clone --help' shows the usage.

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

 $ sudo gtk-query-immodules-2.0-32 /usr/lib/gtk-2.0/2.10.0/immodules/im-ibus.so >> /etc/gtk-2.0/i386-redhat-linux-gnu/gtk.immodules

For x86_64

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

or

 $ sudo gtk-query-immodules-2.0-64 /usr/lib/gtk-2.0/2.10.0/immodules/im-ibus.so >> /etc/gtk-2.0/x86_64-redhat-linux-gnu/gtk.immodules

(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.)

Update icon caches

  $ ls /usr/share/icons/*/*/*/ibus*
/usr/share/icons/hicolor/16x16/apps/ibus-keyboard.png
/usr/share/icons/hicolor/22x22/apps/ibus-keyboard.png
/usr/share/icons/hicolor/24x24/apps/ibus-keyboard.png
/usr/share/icons/hicolor/32x32/apps/ibus-keyboard.png
/usr/share/icons/hicolor/48x48/apps/ibus-keyboard.png
/usr/share/icons/hicolor/scalable/apps/ibus-keyboard.svg
  $ sudo gtk-update-icon-cache /usr/share/icons/hicolor

Build & Install IBus components

Build & Install IBus Qt input method plugin

  1. Download ibus-qt source from IBus download page or Use git clone git://github.com/phuang/ibus-qt.git ibus-qt
  2.  $ zcat ibus-qt-xx.tar.gz | tar xfv -
     $ cd ibus-qt
     $ cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Debug
     $ make
     $ sudo make install
    • The 'xx' is a version number.

Build & Install PinYin engine

  1. Download ibus-pinyin source from IBus download page or Use git clone git://github.com/phuang/ibus-pinyin.git ibus-pinyin
  2.  $ zcat ibus-pinyin-xx.tar.gz | tar xfv -
     $ cd ibus-pinyin
     $ ./autogen.sh --prefix=/usr
     $ make
     $ sudo make install
    • The 'xx' is a version number.

Build & Install Anthy engine

  1. Download anthy source from Anthy Web
  2.  $ zcat anthy-xx.tar.gz | tar xfv -
     $ ./configure --prefix=/usr
     $ make
     $ sudo make install
    • The 'xx' is a version number.
  3. Download kasumi source from Kasumi Web and install it (kasumi is not required but probably useful for you.)
  4. Download ibus-anthy source from IBus download page or Use git clone git://github.com/fujiwarat/ibus-anthy.git ibus-anthy
  5.  $ zcat ibus-anthy-xx.tar.gz | tar xfv -
     $ cd ibus-anthy
     $ ./autogen.sh --prefix=/usr
     $ make
     $ sudo make install
    • The 'xx' is a version number.

Build & Install Chewing engine

  1. Download ibus-chewing source from IBus download page or Use git clone git://github.com/definite/ibus-chewing.git ibus-chewing
  2. Make ibus-chewing
  3. zcat ibus-chewing-xx.tar.gz | tar xfv -
    cd ibus-chewing
    cmake . -DCMAKE_INSTALL_PREFIX='/usr' -DLIBEXEC_DIR='/usr/libexec'
    make
    • The 'xx' is a version number.
  4. If you have previous version installed, then need to:
  5. make uninstall_schemas
  6. Install and register schemas
  7. sudo make install
    make install_schemas
  8. Use iBus UI or run ibus-setup to add ibus-chewing.
  9. Restart iBus and Enjoy!
  • To see other available build targets, use:
  • make help

Build & Install Hangul engine

  1. Download ibus-hangul source from IBus download page or Use git clone git://github.com/phuang/ibus-hangul.git ibus-hangul
  2.  $ zcat ibus-hangul-xx.tar.gz | tar xfv -
     $ cd ibus-hangul
     $ ./autogen.sh --prefix=/usr
     $ make
     $ sudo make install
    • The 'xx' is a version number.

Build & Install M17n engine

  1. Download ibus-m17n source from IBus download page or Use git clone git://github.com/phuang/ibus-m17n.git ibus-m17n
  2.  $ zcat ibus-m17n-xx.tar.gz | tar xfv -
     $ cd ibus-m17n
     $ ./autogen.sh --prefix=/usr
     $ make
     $ sudo make install
    • The 'xx' is a version number.

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.

Run iBus

Run ibus-daemon to start ibus daemon with either way:

  • Distribution tool likes im-chooser, im-switch
  • Add a new /etc/xdg/autostart/ibus.desktop to invoke 'ibus-daemon --xim'
  • Manual
  •  $ pkill -9 ibus
     $ ps -ef | grep ibus
     $ /usr/bin/ibus-daemon --xim &

After ibus-daemin is invoked, Run ibus-setup to set the preference, enable input methods, also start ibus daemon.

e.g.

 $ ps -ef | grep ibus
foo 15735 15518  0 11:30 pts/3    00:00:17 /usr/bin/ibus-daemon --xim
foo 20037 15735  0 12:58 pts/3    00:00:00 /usr/libexec/ibus-gconf
foo 20039 15735  0 12:58 pts/3    00:00:06 python /usr/share/ibus/ui/gtk/main.py
foo 20041     1  0 12:58 pts/3    00:00:00 /usr/libexec/ibus-x11 --kill-daemon
foo 20042 15735  0 12:58 pts/3    00:00:01 python /usr/share/ibus-anthy/engine/main.py --ibus

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"

e.g.

 $ env GTK_IM_MODULE=ibus gedit

To enable input method, Type Ctrl + Space.

Comment by weishig...@gmail.com, Mar 7, 2009

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

Comment by project member dingyichen, Mar 15, 2009

weishigogo,

Which package did you encounter this problem?

Comment by InterMa.BMY, Mar 21, 2009

autopoint命令在gettext包中。。。

Comment by zeng...@gmail.com, Mar 23, 2009

有deb包发布吗?

Comment by project member dingyichen, Apr 14, 2009

zengkid: ubuntu 好像是 liliaobin 在打包

Comment by miguelam...@gmail.com, Apr 17, 2009

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

Comment by nicola.f...@gmail.com, 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 thm...@gmail.com, May 16, 2009

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

Comment by dionmo...@gmail.com, 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.A...@gmail.com, 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 project member dingyichen, Jul 28, 2009

dionmoult,

What distribution did you work with?

Comment by rosco...@gmail.com, 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 teddueth...@gmail.com, Nov 8, 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

Comment by zhh...@gmail.com, Jan 26, 2010

In order install ibus on centos 4.5 x86_64 system, a lot of software need to be updated!

I update the pkg-config to version 0.18, then pkg-config tool can not found the glib-2.0 package. $ ./pkgconfig-0.18/bin/pkg-config --modversion glib-2.0 Package glib-2.0 was not found in the pkg-config search path. Perhaps you should add the directory containing `glib-2.0.pc' to the PKG_CONFIG_PATH environment variable No package 'glib-2.0' found

but the system original pkg-config tool which version is 0.15, can find the glib-2.0 package.

$ /usr/bin/pkg-config --version 0.15.0

$ /usr/bin/pkg-config --modversion glib-2.0 2.4.7

the ibus require a glibc-2.0 version > 2.18, so the system glib-2.0 is OK. but pkg-config tool can not found the glib in system.

Comment by theskyce...@gmail.com, Feb 21, 2010

A full dependency for building ibus from scratch can be found here. http://www.theskycenter.info/blfs/ibus

This is a BLFS system with only fluxbox and firefox built. So I would say that page contains full dependency list for a non-gnome user.

Comment by aus.dem....@gmail.com, Apr 1, 2010

In Sabayon-Linux, which is Gentoo-based OS, the currect step of registering IBus as a Gtk immodule is:

sudo gtk-query-immodules-2.0 /usr/lib/gtk-2.0/2.10.0/immodules/im-ibus.so >> /etc/gtk-2.0/gtk.immodules

regardless of whether you are running a 32-bit or 64-bit OS.

Comment by mayaga...@gmail.com, Jun 3, 2010

3 > python > 2.5

Comment by bingchun...@gmail.com, Apr 18, 2011

What's wrong? Could anyone help me?

ben@ben-HP-Compaq-2710p:~/ibus-chewing-1.3.9.2-Source$ make install_schemas 0% Installing schemas Error copying file "/home/ben/ibus-chewing-1.3.9.2-Source/data/ibus-chewing.schemas" to "/gconf/schemas/ibus-chewing.schemas". make3?: [CMakeFiles/install_schemas] Error 1 make2?: [CMakeFiles/install_schemas.dir/all] Error 2 make1?: [CMakeFiles/install_schemas.dir/rule] Error 2 make: install_schemas? Error 2

Comment by zhmyl...@narod.ru, Aug 20, 2011

Author! You must fix error (!)

gtk-update-icon-cache -f -t /usr/share/icons/hicolor -f = --force -t = ignore .index file (because this is not a theme)

PS Disro: LFS 6.3 Yours faithfully, KorG

Comment by jlok2...@gmail.com, Oct 6, 2011

dsga


Sign in to add a comment
Powered by Google Project Hosting