|
Install
Package Dependenciesibus itself
ibus-qt
Individual Input Method Dependenciesibus-anthy
ibus-chewing
ibus-hangul
ibus-pinyin & demo engine
Build & Install IBusObtain source codeIBus 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
or obtained from git with following commands: $ git clone git://github.com/phuang/ibus.git ibus $ cd ibus
Build and InstallAfter 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 immoduleFor 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 componentsBuild & Install IBus Qt input method plugin
$ zcat ibus-qt-xx.tar.gz | tar xfv - $ cd ibus-qt $ cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Debug $ make $ sudo make install Build & Install PinYin engine
$ zcat ibus-pinyin-xx.tar.gz | tar xfv - $ cd ibus-pinyin $ ./autogen.sh --prefix=/usr $ make $ sudo make install Build & Install Anthy engine
$ zcat anthy-xx.tar.gz | tar xfv - $ ./configure --prefix=/usr $ make $ sudo make install $ zcat ibus-anthy-xx.tar.gz | tar xfv - $ cd ibus-anthy $ ./autogen.sh --prefix=/usr $ make $ sudo make install Build & Install Chewing engine
zcat ibus-chewing-xx.tar.gz | tar xfv - cd ibus-chewing cmake . -DCMAKE_INSTALL_PREFIX='/usr' -DLIBEXEC_DIR='/usr/libexec' make make uninstall_schemas sudo make install make install_schemas
make help Build & Install Hangul engine
$ zcat ibus-hangul-xx.tar.gz | tar xfv - $ cd ibus-hangul $ ./autogen.sh --prefix=/usr $ make $ sudo make install Build & Install M17n engine
$ zcat ibus-m17n-xx.tar.gz | tar xfv - $ cd ibus-m17n $ ./autogen.sh --prefix=/usr $ make $ sudo make install RPMIBus 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:
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 iBusRun ibus-daemon to start ibus daemon with either way:
$ 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 applicationsSet 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. | |
+ autopoint --force ./autogen.sh: 1: autopoint: not found what should I do?
weishigogo,
Which package did you encounter this problem?
autopoint命令在gettext包中。。。
有deb包发布吗?
zengkid: ubuntu 好像是 liliaobin 在打包
./autogen.sh: 1: autopoint: not found in pinyin
Can someone explain how to build with the qt4 im module?
wait for deb package
I have the same question "./autogen.sh: 1: autopoint: not found "
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!
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
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.
dionmoult,
What distribution did you work with?
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?
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
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.
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.
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.
3 > python > 2.5
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
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
dsga