Centos6.5 install fctix five-stroke input method

Source: Internet
Author: User

After exploring for more than half a night, I finally got it done. I read more than N online articles, but it seems that I am still too young under different operating systems.

1. Delete the input method. This step is to clear the input method. After the operation is completed, the input method list in the IM chooser dialog box of the desktop/system/first item/input method will be cleared.

#> Yum remove ibus

2. Download and decompress fcitx-4.0.0.tar.gz, and enter the directory to ". Configure"

Download URL: http://download.fcitx-im.org/fcitx/

Decompression: Tar zxvf fcitx-4.28.tar.xz

#>./Autogen. Sh

3. Compile and install:

./configure

Mkdir build
CD build
Cmake...-dcmake_install_prefix = <installdir>
Make
Make install

The above compilation method is from the install file in the current directory.

Note:

1). Some Dependent libraries will be used in the/configure stage. Here, the dependent libraries are installed,

Yum install gettext-devel libxft-devel libxpm-devel automake Autoconf libxtst-devel GTK +-devel GCC zlib-devel libpng-devel gtk2-devel glib-devel-y

2) The makestep will download table.tar.gz, table.tar.gz. MD5, pinyin.tar.gz, and pinyin.tar.gz. MD5. Therefore, the URL will be connected to: Taobao.

Solution: manually download four files and put them under the error directory indicated above.

For example, the error is prompted like this: Make [3]: Entering directory '/pub/fcitx-4.0.0/data/table', You have to copy the four files to this directory.

4. Create a new configuration file:

gedit /etc/X11/xinit/xinput.d/fcitx.conf

Content:

Xim = fcitx
Xim_program =/usr/local/bin/fcitx make sure this file exists
Xim_args = "-d" here is capital D

Short_desc = "fcitx"
Gtk_im_module = xim
Qt_im_module = xim

In the/etc/alternatives/directory, delete the symbolic link xinputrc and recreate it:

mv /etc/alternatives/xinputrc /etc/alternatives/xinputrc.bakln -s /etc/X11/xinit/xinput.d/fcitx.conf /etc/alternatives/xinputrc

5. OK. Now you should see the penguin Input Method window in the middle of the desktop. Restart the machine and check whether the input method is normal?

6. If you press Ctrl + space to switch between Chinese and English after the preceding operations are completed, add the following in the. bashrc file:

# Export lang = "zh_CN.UTF-8"
# Export lc_ctype = "zh_CN.UTF-8"
Export xim = fcitx
Export xim_program = fcitx
Export gtk_im_module = xim
Export xmodifiers = "@ im = fcitx"

7. Success.

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.