redhat CentOS release 6.4 (Final),安装中文输入法的菜鸟历程

来源:互联网 发布:vb.net 数组 编辑:程序博客网 时间:2024/06/05 00:52

接触linux不多

看鸟哥liux私房菜,然后尝试安装linux虚拟机

版本是CentOS release 6.4 (Final)

进入系统发现不能输入中文,有点郁闷

就尝试进入:系统》》管理》》添加删除软件》》语言》》中文包

然后下载了所有的中文包支持

虽然能输入中文了,but,我不会用额……五笔,什么仓颉……

我还是要安装拼音!!

然后就网上搜了一下,说是安装ibus-pinyin 这个软件,但是linux安装软件不是你想安装就能安装的

我不熟悉额!!

就在网上下载了ibus-pinyin的安装包:

http://download.csdn.net/download/chenguibao/8641159

然后解压:得到了一堆文件。

然后搜了一下:

先下载 ibus-pinyin 包 。1、rpm包 就# rpm -ivh ibus-pinyin-***2、源程序   #./configure                       # make && make install
然后我就照着第二个搞

然后就出现了:

Your intltool is too old.  You need intltool 0.35.0 or later

解决方法:
用这个命令:
打开终端 -输入su-切换成root 用户-数人以下命令
wget http://ftp.gnome.org/pub/gnome/sources/intltool/0.40/intltool-0.40.6.tar.gz
tar zxvf intltool-0.40.6.tar.gz
cd intltool-0.40.6
./configure
make && make install

然后解决这个问题的时候,又出现了夏目按的问题:

问题:
checking for XML::Parser... configure: error: XML::Parser perl module is required for intltool
解决:
[root@localhost foifox]# yum install perl-XML-parser
Setting up Install Process
Parsing package install arguments
No package perl-XML-parser available.
Nothing to do
[root@localhost foifox]# yum install perl-XML-Parser
Setting up Install Process
Parsing package install arguments
Resolving Dependencies
--> Running transaction check
---> Package perl-XML-Parser.i386 0:2.34-8 set to be updated
--> Processing Dependency: perl(LWP) for package: perl-XML-Parser
--> Running transaction check
---> Package perl-libwww-perl.noarch 0:5.808-3.fc8 set to be updated
--> Processing Dependency: perl(HTML::Entities) for package: perl-libwww-perl
--> Processing Dependency: perl(Compress::Zlib) for package: perl-libwww-perl
--> Processing Dependency: perl-HTML-Parser >= 3.33 for package: perl-libwww-perl
--> Running transaction check
---> Package perl-Compress-Zlib.noarch 0:2.005-2.fc8 set to be updated
--> Processing Dependency: perl(IO::Compress::Gzip) >= 2.005 for package: perl-Compress-Zlib
--> Processing Dependency: perl(IO::Uncompress::Gunzip) >= 2.005 for package: perl-Compress-Zlib
--> Processing Dependency: perl(Compress::Raw::Zlib) >= 2.005 for package: perl-Compress-Zlib
--> Processing Dependency: perl(IO::Compress::Gzip::Constants) >= 2.005 for package: perl-Compress-Zlib
--> Processing Dependency: perl(IO::Compress::Base::Common) >= 2.005 for package: perl-Compress-Zlib
---> Package perl-HTML-Parser.i386 0:3.56-2.fc8 set to be updated
--> Processing Dependency: perl(HTML::Tagset) >= 3.03 for package: perl-HTML-Parser
--> Processing Dependency: perl(HTML::Tagset) for package: perl-HTML-Parser
--> Running transaction check
---> Package perl-IO-Compress-Zlib.noarch 0:2.005-2.fc8 set to be updated
---> Package perl-Compress-Raw-Zlib.i386 0:2.005-3.fc8 set to be updated
---> Package perl-IO-Compress-Base.noarch 0:2.005-2.fc8 set to be updated
---> Package perl-HTML-Tagset.noarch 0:3.10-6.fc8 set to be updated
--> Finished Dependency Resolution

Dependencies Resolved

=============================================================================
 Package                 Arch       Version          Repository        Size 
=============================================================================
Installing:
 perl-XML-Parser         i386       2.34-8           fedora            277 k
Installing for dependencies:
 perl-Compress-Raw-Zlib  i386       2.005-3.fc8      fedora             54 k
 perl-Compress-Zlib      noarch     2.005-2.fc8      fedora             34 k
 perl-HTML-Parser        i386       3.56-2.fc8       fedora            111 k
 perl-HTML-Tagset        noarch     3.10-6.fc8       fedora             15 k
 perl-IO-Compress-Base   noarch     2.005-2.fc8      fedora             53 k
 perl-IO-Compress-Zlib   noarch     2.005-2.fc8      fedora            135 k
 perl-libwww-perl        noarch     5.808-3.fc8      fedora            373 k

Transaction Summary
=============================================================================
Install      8 Package(s)         
Update       0 Package(s)         
Remove       0 Package(s)         

Total download size: 1.0 M
Is this ok [y/N]: y
Downloading Packages:
(1/8): perl-XML-Parser-2. 100% |=========================| 277 kB    01:12     
(2/8): perl-HTML-Tagset-3 100% |=========================|  15 kB    00:02     
(3/8): perl-libwww-perl-5 100% |=========================| 373 kB    01:26     
(4/8): perl-IO-Compress-B 100% |=========================|  53 kB    00:19     
(5/8): perl-HTML-Parser-3 100% |=========================| 111 kB    00:22     
(6/8): perl-Compress-Raw- 100% |=========================|  54 kB    00:08     
(7/8): perl-IO-Compress-Z 100% |=========================| 135 kB    00:34     
(8/8): perl-Compress-Zlib 100% |=========================|  34 kB    00:07     
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing: perl-Compress-Raw-Zlib       ######################### [1/8] 
  Installing: perl-IO-Compress-Base        ######################### [2/8] 
  Installing: perl-IO-Compress-Zlib        ######################### [3/8] 
  Installing: perl-Compress-Zlib           ######################### [4/8] 
  Installing: perl-HTML-Tagset             ######################### [5/8] 
  Installing: perl-HTML-Parser             ######################### [6/8] 
  Installing: perl-libwww-perl             ######################### [7/8] 
  Installing: perl-XML-Parser              ######################### [8/8] 

Installed: perl-XML-Parser.i386 0:2.34-8
Dependency Installed: perl-Compress-Raw-Zlib.i386 0:2.005-3.fc8 perl-Compress-Zlib.noarch 0:2.005-2.fc8 perl-HTML-Parser.i386 0:3.56-2.fc8 perl-HTML-Tagset.noarch 0:3.10-6.fc8 perl-IO-Compress-Base.noarch 0:2.005-2.fc8 perl-IO-Compress-Zlib.noarch 0:2.005-2.fc8 perl-libwww-perl.noarch 0:5.808-3.fc8
Complete!

好了,解决好了。

但是最后回到最初的问题,还是不行!!

如下:

[root@localhost ibus-pinyin-1.3.11]# ./configure 
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for style of include used by make... GNU
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking dependency style of gcc... gcc3
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking minix/config.h usability... no
checking minix/config.h presence... no
checking for minix/config.h... no
checking whether it is safe to define __EXTENSIONS__... yes
checking nano version... 0 (release)
checking whether build environment is sane... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking for gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ISO C89... (cached) none needed
checking dependency style of gcc... (cached) gcc3
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... gcc3
checking whether gcc and cc understand -c and -o together... yes
checking for library containing strerror... none required
checking for ANSI C header files... (cached) yes
checking whether NLS is requested... yes
checking for intltool >= 0.35.0... 0.40.6 found
checking for intltool-update... /usr/local/bin/intltool-update
checking for intltool-merge... /usr/local/bin/intltool-merge
checking for intltool-extract... /usr/local/bin/intltool-extract
checking for xgettext... /usr/bin/xgettext
checking for msgmerge... /usr/bin/msgmerge
checking for msgfmt... /usr/bin/msgfmt
checking for gmsgfmt... /usr/bin/msgfmt
checking for perl... /usr/bin/perl
checking for perl >= 5.8.1... 5.10.1
checking for XML::Parser... ok
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking for a sed that does not truncate output... /bin/sed
checking for fgrep... /bin/grep -F
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1966080
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking for /usr/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for ar... ar
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for dlfcn.h... yes
checking whether we are using the GNU C++ compiler... (cached) yes
checking whether g++ accepts -g... (cached) yes
checking dependency style of g++... (cached) gcc3
checking how to run the C++ preprocessor... g++ -E
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC -DPIC
checking if gcc PIC flag -fPIC -DPIC works... yes
checking if gcc static flag -static works... no
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
checking for ld used by g++... /usr/bin/ld -m elf_x86_64
checking if the linker (/usr/bin/ld -m elf_x86_64) is GNU ld... yes
checking whether the g++ linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking for g++ option to produce PIC... -fPIC -DPIC
checking if g++ PIC flag -fPIC -DPIC works... yes
checking if g++ static flag -static works... no
checking if g++ supports -c -o file.o... yes
checking if g++ supports -c -o file.o... (cached) yes
checking whether the g++ linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for IBUS... configure: error: Package requirements (
    ibus-1.0
) were not met:


No package 'ibus-1.0' found


Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.


Alternatively, you may set the environment variables IBUS_CFLAGS
and IBUS_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.
还是不行!!!!

我擦啊!!!
最后发现了有效的方法…………

好累啊!!

su root

yum install "@Chinese Support"

exit

然后设置Input Methord即可。

最后一步:logout,注意是注销,然后再次登录此用户

看来,这样说来,在我刚开始使用的方法也可以,就是需要注销而已……这是为什么么!!!


0 0
原创粉丝点击