Page 1 of 2 12 LastLast
Results 1 to 10 of 12

Thread: HOWTO: Install ibus-sunpinyin on Ubuntu (Ubuntu ibus

  1. #1
    Join Date
    Dec 2008
    Location
    /home/chenxiaolong&/root
    Beans
    474
    Distro
    Ubuntu Development Release

    HOWTO: Install ibus-sunpinyin on Ubuntu (Ubuntu ibus

    In Ubuntu 10.10 and up, it's really easy to install sunpinyin. Just run,

    Code:
    sudo apt-get install ibus-sunpinyin sunpinyin-data
    The information below is not required anymore!

    SunPinyin is an excellent 拼音 project by the SunPinyin group. In my experience, it has the best dictionary I've ever used (on Linux) and I'm going to show you how to install it the proper way by creating deb packages.

    1. First, you need to install the packages: libtool libibus-dev sqlite3 libsqlite3-dev libgtk2.0-dev build-essential debhelper autotools-dev git-core scons:

    Code:
    sudo apt-get install libtool libibus-dev sqlite3 libgtk2.0-dev build-essential debhelper autotools-dev git-core scons
    2. Then, you need to install the "cdbs" package from the Debian Sid repository as the Ubuntu version is too old and doesn't include the file: "/usr/share/cdbs/1/class/scons.mk"

    Code:
    wget http://ftp.us.debian.org/debian/pool/main/c/cdbs/cdbs_0.4.89_all.deb
    sudo dpkg -i cdbs_0.4.89_all.deb
    3. Create a directory and change to it in a terminal:

    Code:
    mkdir ~/build_sunpinyin
    cd ~/build_sunpinyin
    4. Download the latest source from the git repository:

    Code:
    git clone git://github.com/sunpinyin/sunpinyin.git
    5. Change to the "sunpinyin" directory within the "~/build_sunpinyin" directory:

    Code:
    cd sunpinyin
    6. Generate the "debian/control" file for building a deb package.

    Code:
    DEB_AUTO_UPDATE_DEBIAN_CONTROL=yes fakeroot debian/rules clean
    7. Build the deb package:

    Code:
    dpkg-buildpackage -us -uc
    8. Step 7 creates 4 deb packages in ~/build_sunpinyin:

    ibus-sunpinyin*.deb
    sunpinyin-data-be*.deb
    sunpinyin-data-le*.deb
    xsunpinyin*.deb
    DO NOT INSTALL ALL OF THEM!

    Only install (3 packages: libsunpinyin, libsunpinyin-dev, sunpinyin-data-le): libsunpinyin3*.deb sunpinyin-data-le*.deb:

    Code:
    sudo dpkg -i libsunpinyin3*.deb sunpinyin-data-le*.deb
    9. Change into the "~/build_sunpinyin/sunpinyin/wrapper/ibus" directory.

    Code:
    cd ~/build_sunpinyin/sunpinyin/wrapper/ibus
    10. Once again, generate the "debian/control" file.

    Code:
    DEB_AUTO_UPDATE_DEBIAN_CONTROL=yes fakeroot debian/rules clean
    11. Then, generate the [COLOR="Blue"]ibus-sunpinyin[/CODE] deb package.

    Code:
    dpkg-buildpackage -us -uc
    12. Change to the parent directory: "~/build_sunpinyin/sunpinyin/wrapper"

    Code:
    cd ~/build_sunpinyin/sunpinyin/wrapper
    13. Install the ibus-sunpinyin package.

    Code:
    sudo dpkg -i ibus-sunpinyin*.deb
    14. Right or left click the iBus icon in the system tray and click Restart.

    15. Goto System > Preferences > iBus Preferences.

    16. Goto the Input Method tab.

    17. Under "Select an input method," choose Chinese > SunPinyin and click Add.

    18. Close the preferences, right click the iBus icon in the system tray, and click Restart.

    19. Enjoy typing in Chinese!
    Last edited by chenxiaolong; May 2nd, 2011 at 06:09 PM. Reason: package update
    Laptop broke ...

  2. #2
    Join Date
    Jun 2006
    Location
    San Jose, CA
    Beans
    83
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: HOWTO: Install ibus-sunpinyin on Ubuntu (Ubuntu ibus

    Step 1, package libsqlite3-dev needed, I couldn't complete step 5
    Step 5, typo for prefix?

    Also, use the restart feature in the tray for the iBus icon before adding in Sunpinyin

    Thanks for the guide in English, it made installing go faster.

  3. #3
    Join Date
    Dec 2008
    Location
    /home/chenxiaolong&/root
    Beans
    474
    Distro
    Ubuntu Development Release

    Re: HOWTO: Install ibus-sunpinyin on Ubuntu (Ubuntu ibus

    Sorry about those mistakes. I tried to think of the dependencies off the top of my head because I already had everything installed.

    About step 5....yeah....my touchpad tends to be a little (VERY) jumpy.

    I'll correct the mistakes in the first post.
    Laptop broke ...

  4. #4
    Join Date
    Jun 2006
    Location
    San Jose, CA
    Beans
    83
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: HOWTO: Install ibus-sunpinyin on Ubuntu (Ubuntu ibus

    You should left click on the ibus icon to bring the menu up, if you right click you bring up the regular Gnome Applet menu.

  5. #5
    Join Date
    Dec 2008
    Location
    /home/chenxiaolong&/root
    Beans
    474
    Distro
    Ubuntu Development Release

    Re: HOWTO: Install ibus-sunpinyin on Ubuntu (Ubuntu ibus

    Shoot, I forgot about the indicator applet thingy . I was using a different theme.
    Laptop broke ...

  6. #6
    Join Date
    Jul 2010
    Beans
    1

    Re: HOWTO: Install ibus-sunpinyin on Ubuntu (Ubuntu ibus

    Where is "autogen.sh"? There is no such file in the directory.

  7. #7
    Join Date
    Dec 2008
    Location
    /home/chenxiaolong&/root
    Beans
    474
    Distro
    Ubuntu Development Release

    Re: HOWTO: Install ibus-sunpinyin on Ubuntu (Ubuntu ibus

    The ibus-sunpinyin developers recently updated their method of compilation. I'll modify my first post sometime tomorrow .
    Laptop broke ...

  8. #8
    Join Date
    Dec 2008
    Location
    /home/chenxiaolong&/root
    Beans
    474
    Distro
    Ubuntu Development Release

    Re: HOWTO: Install ibus-sunpinyin on Ubuntu (Ubuntu ibus

    Sorry for the the late reply. One of my hard drives in my RAID0 configuration died .

    Anyway, I've updated the first post of this thread to include the new instructions .
    Laptop broke ...

  9. #9
    Join Date
    Aug 2007
    Beans
    8

    Re: HOWTO: Install ibus-sunpinyin on Ubuntu (Ubuntu ibus

    when needs lib dependency like the following
    dpkg-checkbuilddeps: Unmet build dependencies: libsqlite3-dev (>= 3.6)
    dpkg-buildpackage: warning: Build dependencies/conflicts unsatisfied; aborting.
    dpkg-buildpackage: warning: (Use -d flag to override.)

    Install lib here-
    sudo apt-get install libsqlite3-dev
    Last edited by adellalin; September 10th, 2010 at 03:38 AM.

  10. #10
    Join Date
    Sep 2010
    Location
    深圳-China
    Beans
    60
    Distro
    Ubuntu 11.10 Oneiric Ocelot

    Re: HOWTO: Install ibus-sunpinyin on Ubuntu (Ubuntu ibus

    New version out so
    wget http://ftp.us.debian.org/debian/pool...0.4.88_all.deb
    sudo dpkg -i cdbs_0.4.88_all.deb
    should be change to
    wget http://ftp.us.debian.org/debian/pool...0.4.89_all.deb
    sudo dpkg -i cdbs_0.4.89_all.deb
    Sony Vaio SA i7 SandyBridge Radeon 6630m&Intel HD 3000 graphics
    Ubuntu 11.10 32-bit

Page 1 of 2 12 LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •