Install SunPinYin on the Ibus input platform in Ubuntu and solutions to a series of problems

Source: Internet
Author: User
Ubuntu comes with the ibus input platform by default. It provides an input method called pinyin. I don't like it very much. I heard SunPinYin is good, so I just installed it !!! (Refer to here) Step 1: download and install the input method: installation.

Ubuntu comes with the ibus input platform by default. It provides an input method called pinyin. I don't like it very much. I heard SunPinYin is good, so I just installed it !!! (Refer to here)

Step 1: download and install the Input Method

: Http://code.google.com/p/sunpinyin/downloads/list

Download the latest two packages: sunpinyin-2.0.3.tar.gz,ibus-sunpinyin-2.0.3.tar.gz

Step 2: Install dependency Components

C ++ Compiler (sudo aptitude install build-essential)

Sqlite3 (sudo apt-get install sqlite3 libsqlite3-dev)

SCons (sudo apt-get install scons)

Step 3: Install the input method Engine

1) decompress sunpinyin-2.0.3.tar.gz using sudo tar-zxvf sunpinyin-2.0.3.tar.gz. Enter this directory

2) use scons -- prefix =/usr for compilation (-- prefix =/usr indicates to install the file to/usr, which is installed under/usr/local by default)

3) use the sudo scons install command for installation, after installation, use pkg-config sunpinyin-2.0 -- modversion to check whether 2.0.3 appears, indicating that the installation is successful

Step 4: Install the ibus Interface

1) decompress ibus-sunpinyin-2.0.3.tar.gz using sudo tar-zxvf ibus-sunpinyin-2.0.3.tar.gz. Enter this directory

2) use scons -- prefix =/usr for compilation (-- prefix =/usr indicates to install the file to/usr, which is installed under/usr/local by default)

3) use the sudo scons install command for installation. After installation, restart ibus to use the sunpinyin input method.

The following are possible problems during installation:

1)

  1. <Strong>Scons: Reading SConscript files...
  2. ImportError: No module named textfile:
  3. File "/home/lgmtest/download/ibus-sunpinyin-2.0.3/SConstruct", line 2:
  4. Import SCons. Tool. textfile Strong>  

Cause: the scons version is too low. You can use scons -- version to view the version. It is found that the version is 1.2.

Solution: Go to http://www.scons.org/to download the latest scons, download and decompress it, enter the directory, and use Python setup. py install for installation.

2)

  1. Scons: Reading SConscript files...
  2. Checking for pkg-config... yes
  3. Checking for ibus-1.0... no

Cause: libibus-dev is not installed. Use sudo apt-get install libibus-dev to install ibus.

Finally, the input method for successful installation is included:

In addition, Google Pinyin input method is recommended.

Refer:

Install Google PinYin Input Method http://www.linuxidc.com/Linux/2010-06/26440.htm in Ubuntu 10.04

Ubuntu 10.10 install Google PinYin input method detailed process http://www.linuxidc.com/Linux/2011-03/33838.htm

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.