Added Google PinYin Input Method to UbuntuiBus

Source: Internet
Author: User
Download Google PinYin Input Method (http://code.google.com/p/libgooglepinyin/downloads/list) unzip to the specified location root@www.linuxidc.com :~ /Desktop/ibus_google # cmake program "cmake" is not installed yet. You can use the following command to install: apt-getinstallcmakeroot@www.linuxidc.com :~ /Table

Download Google PinYin Input Method (http://code.google.com/p/libgooglepinyin/downloads/list) unzip to the specified location

Root@www.linuxidc.com :~ /Desktop/ibus_google # cmake
The program "cmake" has not been installed yet. You can use the following command to install:
Apt-get install cmake
Root@www.linuxidc.com :~ /Desktop/ibus_google # apt-get install cmake

Reading the package list... complete
Analyzing the dependency tree of the software package
Reading status information... complete
The following additional software packages will be installed:
C make-data emacsen-common libxmlrpc-core-c3-0
The following [new] software packages will be installed:
Cmake-data emacsen-common libxmlrpc-core-c3-0
0 software packages have been upgraded, 4 new software packages have been installed, and 0 software packages have to be uninstalled. 139 software packages have not been upgraded.
Download the 5,075 kB software package.
After decompression, 14.9 MB of extra space is consumed.
Do you want to continue? [Y/n] Y
Get: 1 http://cn.archive.Ubuntu.com/ubuntu/ oneiric/main libxmlrpc-core-c3-0 i386 1.16.32-0ubuntu4 [115 kB]
Get: 2 http://cn.archive.ubuntu.com/ubuntu/ oneiric/main emacsen-common all 1.4.19ubuntu2 [17.7 kB]
Get: 3 http://cn.archive.ubuntu.com/ubuntu/ oneiric/main cmake-data all 2.8.5-1ubuntu1 [709 kB]
Get: 4 http://cn.archive.ubuntu.com/ubuntu/ oneiric/main cmake i386 2.8.5-1ubuntu1 [4,234 kB]
Download 5,075 kB at 1 minute 25 seconds (59.4 kB/s)
Selected the software package libxmlrpc-core-c3-0 that was deselected.
(Reading the database... the system currently has 235285 files and directories installed .)
Extracting the libxmlrpc-core-c3-0 (from.../libxmlrpc-core-c3-0_1.16.32-0ubuntu4_i386.deb )...
Selected the software package emacsen-common that was canceled.
Extracting emacsen-common (from.../emacsen-common_1.4.19ubuntu2_all.deb )...
The software package cmake-data that has been deselected is selected.
Extracting cmake-data (from.../cmake-data_2.8.5-1ubuntu1_all.deb )...
Select the software package cmake that has been canceled.
Extracting cmake (from.../cmake_2.8.5-1ubuntu1_i386.deb )...
Processing the trigger for man-db...
Setting libxmlrpc-core-c3-0 (1.16.32-0ubuntu4 )...
Setting emacsen-common (1.4.19ubuntu2 )...
Emacsen-common: Handling install of emacsen flavor emacs
Setting cmake-data (2.8.5-1ubuntu1 )...
Emacsen-common: Handling install of emacsen flavor emacs
Setting cmake (2.8.5-1ubuntu1 )...
Processing the trigger for libc-bin...
Ldconfig deferred processing now taking place

 
Root@www.linuxidc.com:/home/coder/progam/ibus_google # libgooglepinyin-0.1.1 cd
Root@www.linuxidc.com:/home/coder/progam/ibus_google/libgooglepinyin-0.1.1 # mkdir build; cd build
Root@www.linuxidc.com:/home/coder/progam/ibus_google/libgooglepinyin-0.1.1/build # cmake ..-DCMAKE_INSTALL_PREFIX =/usr

-- The C compiler identification is GNU
-- The CXX compiler identification is GNU
-- Check for working C compiler:/usr/bin/gcc
-- Check for working C compiler:/usr/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info-done
-- Check for working CXX compiler:/usr/bin/c ++
-- Check for working CXX compiler:/usr/bin/c ++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info-done
-- Processing ing done
-- Generating done
-- Build files have been written to:/home/coder/progam/ibus_google/libgooglepinyin-0.1.1/build
Root@www.linuxidc.com:/home/coder/progam/ibus_google/libgooglepinyin-0.1.1/build # make
Scanning dependencies of target googlepinyin
[2, 5%] Building CXX object src/CMakeFiles/googlepinyin. dir/dictbuilder. cpp. o
[2, 11%] Building CXX object src/CMakeFiles/googlepinyin. dir/dictlist. cpp. o
[2, 16%] Building CXX object src/CMakeFiles/googlepinyin. dir/dicttrie. cpp. o
[2, 22%] Building CXX object src/CMakeFiles/googlepinyin. dir/lpicache. cpp. o
[2, 27%] Building CXX object src/CMakeFiles/googlepinyin. dir/matrixsearch. cpp. o
[2, 33%] Building CXX object src/CMakeFiles/googlepinyin. dir/mystdlib. cpp. o
[38%] Building CXX object src/CMakeFiles/googlepinyin. dir/ngram. cpp. o
[2, 44%] Building CXX object src/CMakeFiles/googlepinyin. dir/pinyinime. cpp. o
[2, 50%] Building CXX object src/CMakeFiles/googlepinyin. dir/searchutility. cpp. o
[2, 55%] Building CXX object src/CMakeFiles/googlepinyin. dir/spellingtable. cpp. o
[2, 61%] Building CXX object src/CMakeFiles/googlepinyin. dir/spellingtrie. cpp. o
[2, 66%] Building CXX object src/CMakeFiles/googlepinyin. dir/splparser. cpp. o
[2, 72%] Building CXX object src/CMakeFiles/googlepinyin. dir/sync. cpp. o
[2, 77%] Building CXX object src/CMakeFiles/googlepinyin. dir/userdict. cpp. o
[2, 83%] Building CXX object src/CMakeFiles/googlepinyin. dir/utf16char. cpp. o
[2, 88%] Building CXX object src/CMakeFiles/googlepinyin. dir/utf16reader. cpp. o
Linking CXX shared library libgooglepinyin. so
[88%] Built target googlepinyin
Scanning dependencies of target dictbuilder
[2, 94%] Building CXX object tools/CMakeFiles/dictbuilder. dir/pinyinime_dictbuilder.cpp.o
Linking CXX executable dictbuilder
[2, 94%] Built target dictbuilder
Scanning dependencies of target datafile
[2, 94%] Generating dict_pinyin.dat
Read successfully, lemma num: 65101
Spelling tree construct successfully.


------------ Stat info -------------
[Root is layer-1]
.. Max_sonbuf_len per layer (from layer 0 ):
413,259, 55, 6, 0, 0, 0, 0 ,-,
.. Max_homobuf_len per layer:
-, 312, 19, 2, 2, 0, 0, 0, 0,
.. Total_son_num per layer:
413,261 83, 13370,661 9, 0, 0, 0, 0 ,-,
.. Total_node_hasson per layer:
1,397,690 1, 6269, 0, 0, 0, 0, 0,
.. Total_sonbuf_num per layer:
1,397,690 1, 6269, 0, 0, 0, 0 ,-,
... Total_sonbuf_allnoson per layer:
0, 31,386 2, 6269, 0, 0, 0, 0 ,-,
... Total_node_in_sonbuf_allnoson per layer:
0,243,470 7, 6619, 0, 0, 0, 0 ,-,
.. Total_homo_num per layer:
0, 17033,340 70, 7372,662 6, 0, 0, 0, 0,
.. Son buf allocation number with only 1 son: 10732
.. Son buf allocation number with more than 1 son: 2836
.. Total lemma node number: 46586
Build dictionary successfully.
Save dictionary successfully.
[2, 100%] Built target datafile
Root@www.linuxidc.com:/home/coder/progam/ibus_google/libgooglepinyin-0.1.1/build # make install
[88%] Built target googlepinyin
[1, 94%] Built target dict
[2, 100%] Built target datafile
Install the project...
-- Install configuration :""
-- Installing:/usr/lib/libgooglepinyin. so.0.1.0
-- Installing:/usr/lib/libgooglepinyin. so.0
-- Installing:/usr/lib/libgooglepinyin. so
-- Installing:/usr/include/googlepinyin/atomdictbase. h
-- Installing:/usr/include/googlepinyin/dictbuilder. h
-- Installing:/usr/include/googlepinyin/dictdef. h
-- Installing:/usr/include/googlepinyin/dictlist. h
-- Installing:/usr/include/googlepinyin/dicttrie. h
-- Installing:/usr/include/googlepinyin/lpicache. h
-- Installing:/usr/include/googlepinyin/matrixsearch. h
-- Installing:/usr/include/googlepinyin/mystdlib. h
-- Installing:/usr/include/googlepinyin/ngram. h
-- Installing:/usr/include/googlepinyin/pinyinime. h
-- Installing:/usr/include/googlepinyin/searchutility. h
-- Installing:/usr/include/googlepinyin/spellingtable. h
-- Installing:/usr/include/googlepinyin/spellingtrie. h
-- Installing:/usr/include/googlepinyin/splparser. h
-- Installing:/usr/include/googlepinyin/sync. h
-- Installing:/usr/include/googlepinyin/userdict. h
-- Installing:/usr/include/googlepinyin/utf16char. h
-- Installing:/usr/include/googlepinyin/utf16reader. h
-- Installing:/usr/share/googlepinyin/dict_pinyin.dat
-- Installing:/usr/lib/pkgconfig/googlepinyin. pc
Root@www.linuxidc.com:/home/coder/progam/ibus_google/libgooglepinyin-0.1.1/build # cd ..
Root@www.linuxidc.com:/home/coder/progam/ibus_google/libgooglepinyin-0.1.1 # cd ..
Root@www.linuxidc.com:/home/coder/progam/ibus_google # ibus-googlepinyin-0.1.1 cd
Root@www.linuxidc.com:/home/coder/progam/ibus_google/ibus-googlepinyin-0.1.1 # mkdir build; cd build
Root@www.linuxidc.com:/home/coder/progam/ibus_google/ibus-googlepinyin-0.1.1/build # cmake ..-DCMAKE_INSTALL_PREFIX =/usr

-- The C compiler identification is GNU
-- The CXX compiler identification is GNU
-- Check for working C compiler:/usr/bin/gcc
-- Check for working C compiler:/usr/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info-done
-- Check for working CXX compiler:/usr/bin/c ++
-- Check for working CXX compiler:/usr/bin/c ++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info-done
-- Processing ing done
-- Generating done
-- Build files have been written to:/home/coder/progam/ibus_google/ibus-googlepinyin-0.1.1/build
Root@www.linuxidc.com:/home/coder/progam/ibus_google/ibus-googlepinyin-0.1.1/build # make
Root@www.linuxidc.com:/home/coder/progam/ibus_google/ibus-googlepinyin-0.1.1/build # make install

Install the project...
-- Install configuration :""
-- Installing:/usr/share/ibus-googlepinyin/main. py
-- Installing:/usr/share/ibus-googlepinyin/engine. py
-- Installing:/usr/share/ibus-googlepinyin/factory. py
-- Installing:/usr/share/ibus-googlepinyin/libopencc. py
-- Installing:/usr/share/ibus-googlepinyin/googlepinyin. py
-- Installing:/usr/share/ibus/component/googlepinyin. xml
-- Installing:/usr/share/ibus-googlepinyin/icons
-- Installing:/usr/share/ibus-googlepinyin/icons/simp-chinese.svg
-- Installing:/usr/share/ibus-googlepinyin/icons/half-punct.svg
-- Installing:/usr/share/ibus-googlepinyin/icons/chinese. svg
-- Installing:/usr/share/ibus-googlepinyin/icons/ibus-pinyin.svg
-- Installing:/usr/share/ibus-googlepinyin/icons/ibus-googlepinyin.png
-- Installing:/usr/share/ibus-googlepinyin/icons/trad-chinese.svg
-- Installing:/usr/share/ibus-googlepinyin/icons/half-letter.svg
-- Installing:/usr/share/ibus-googlepinyin/icons/full-letter.svg
-- Installing:/usr/share/ibus-googlepinyin/icons/english. svg
-- Installing:/usr/share/ibus-googlepinyin/icons/full-punct.svg
Root@www.linuxidc.com:/home/coder/progam/ibus_google/ibus-googlepinyin-0.1.1/build # pkill-f ibus-daemon; ibus-daemon-d-x
Root@www.linuxidc.com:/home/coder/progam/ibus_google/ibus-googlepinyin-0.1.1/build #

Related Article

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.