-
Notifications
You must be signed in to change notification settings - Fork 180
Install
Installation related topics, including building and testing.
Featured,Phase-Requirements
- python >= 2.5
- dbus-glib >= 0.74
- dbus-python >= 0.83.0
- notify-python
- iso-codes
- cmake
- qt >= 4.5
- anthy
- Build dependencies:
- CMake >= 2.4
- gob2
- libchewing >= 0.3.2
- GConf2
- Run dependencies:
- libchewing >= 0.3.2
- GConf2
- libhangul
- python-enchant
- hunspell-en
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/ibus/ibus.git ibus
$ cd ibus
-
git clone --help
shows the usage.
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.)
$ 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
$ 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
$ ls /usr/lib/gtk-3.0/3.0.0/immodules/im-ibus.so
/usr/lib/gtk-3.0/3.0.0/immodules/im-ibus.so
$ sudo gtk-query-immodules-3.0-32 --update-cache
$ grep ibus /usr/lib/gtk-3.0/3.0.0/immodules.cache
"/usr/lib/gtk-3.0/3.0.0/immodules/im-ibus.so"
"ibus" "IBus (Intelligent Input Bus)" "ibus" "" "ja:ko:zh:*"
$ ls /usr/lib*/gtk-3.0/3.0.0/immodules/im-ibus.so
/usr/lib64/gtk-3.0/3.0.0/immodules/im-ibus.so
$ sudo gtk-query-immodules-3.0-64 --update-cache
$ grep ibus /usr/lib*/gtk-3.0/3.0.0/immodules.cache
"/usr/lib64/gtk-3.0/3.0.0/immodules/im-ibus.so"
"ibus" "IBus (Intelligent Input Bus)" "ibus" "" "ja:ko:zh:*"
(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.)
$ 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
$ ls /etc/dconf/db/ibus.d/
00-upstream-settings
$ sudo dconf update
$ ls /etc/dconf/db/ibus
$ rm /etc/dconf/db/ibus
$ ls /usr/share/glib-2.0/schemas/org.freedesktop.ibus.gschema.xml
/usr/share/glib-2.0/schemas/org.freedesktop.ibus.gschema.xml
$ glib-compile-schemas /usr/share/glib-2.0/schemas
Download ibus-qt source from IBus download page or Use git clone git://github.com/ibus/ibus-qt.git ibus-qt
$ 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.
Download ibus-pinyin source from IBus download page or Use git clone git://github.com/ibus/ibus-pinyin.git ibus-pinyin
$ 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.
Download anthy source from Anthy Web
$ zcat anthy-xx.tar.gz | tar xfv -
$ ./configure --prefix=/usr
$ make
$ sudo make install
- The 'xx' is a version number.
Download kasumi source from Kasumi Web and install it (kasumi is not required but probably useful for you.)
Download ibus-anthy source from IBus download page or Use git clone git://github.com/fujiwarat/ibus-anthy.git ibus-anthy
$ 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.
Download ibus-chewing source from IBus download page or Use git clone git://github.com/definite/ibus-chewing.git ibus-chewing
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.
make uninstall_schemas
sudo make install
make install_schemas
- To see other available build targets, use:
make help
Download ibus-hangul source from IBus download page or Use git clone git://github.com/phuang/ibus-hangul.git ibus-hangul
$ 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.
Download ibus-m17n source from IBus download page or Use git clone git://github.com/ibus/ibus-m17n.git ibus-m17n
$ 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.
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:
- ibus
- ibus-libs
- ibus-gtk
- ibus-devel
- 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-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
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.