Author: dingyichen
Date: Tue Apr 14 21:17:31 2009
New Revision: 111
Modified:
wiki/Install.wiki
Log:
Edited wiki page through web user interface.
Modified: wiki/Install.wiki
==============================================================================
--- wiki/Install.wiki (original)
+++ wiki/Install.wiki Tue Apr 14 21:17:31 2009
@@ -1,10 +1,9 @@
#summary Installation relative topics, including building and testing.
#labels Featured,Phase-Requirements
- # [FromGit From Git]
-
-= FromGit =
-== System Dependencies ==
+<wiki:toc max_depth="2" />
+= Package Dependencies =
+== ibus itself ==
* python >= 2.5
* dbus-glib >= 0.74
* dbus-python >= 0.83.0
@@ -32,20 +31,44 @@
* python-enchant
* hunspell-en
-
-== Build & Install iBus ==
+= Build & Install IBus =
+== Obtain source code ==
+IBus source code can either be download from
[http://code.google.com/p/ibus/downloads/list IBus download page] or
obtained from git with following commands:
{{{
$ git clone git://github.com/phuang/ibus.git ibus
$ cd ibus
- $ ./autogen.sh --prefix=/usr --sysconfdir=/etc
+}}}
+
+== 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
- $ update-gtk-immodules `uname -i`
+}}}
+*(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 >
/etc/gtk-2.0/i386-redhat-linux-gnu/gtk.immodules
+{{{
+ $ 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
}}}
-*(the path _/etc/gtk-2.0/i386-redhat-linux-gnu/gtk.immodules_ may be
different in your system)*
+*(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 PinYin engine ==
{{{
$ git clone git://github.com/phuang/ibus-pinyin.git ibus-pinyin
@@ -109,29 +132,53 @@
$ sudo make install
}}}
-
-== Build iBus Rpms ==
+= RPM =
+IBus itself and most of the components support source RPM building:
+{{{
+ $ make srpm
+}}}
+and RPM building:
{{{
- $ git clone git://github.com/phuang/ibus.git ibus
- $ cd ibus
- $ ./autogen.sh --prefix=/usr
$ make rpm
- # list rpms
- $ ls `uname -i`
}}}
+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.
+
= 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:
{{{
- # use ibus-setup to enable ibus and engines
- $ /usr/bin/ibus-setup
+ $ GTK_IM_MODULE=ibus
}}}
-== Run gnome, kde or old X applications ==
+For KDE:
+{{{
+ $ QT_IM_MODULE=ibus
+}}}
+and other X applications
{{{
- # gtk application
- $ GTK_IM_MODULE=ibus gedit
- # kde application
- $ QT_IM_MODULE=ibus kwrite
- # old X application
- $ XMODIFIERS="@im=ibus" xterm
+ $ XMODIFIERS="@im=ibus"
}}}
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "ibus-devel" group.
iBus project web page: http://code.google.com/p/ibus/
iBus dev group: http://groups.google.com/group/ibus-devel?hl=en
-~----------~----~----~----~------~----~------~--~---