Ubuntu 10.04安装google拼音输入法

系统字体配置、中文显示和输入法问题
回复
头像
denglin216
帖子: 46
注册时间: 2008-08-29 19:27
来自: 四川成都
联系:

Ubuntu 10.04安装google拼音输入法

#1

帖子 denglin216 » 2010-05-18 21:17

看到论坛很多人问这问题,我就贴出来吧 :em02
安装步骤(需要自己编译):

A. 获取代码:(没有git的先安装git:sudo apt-get install git-core)

$ git clone git://github.com/tchaikov/scim-googlepinyin.git

$ cd scim-googlepinyin.git

B. 编译前提:

上面给的链接里面有介绍怎么编译的,但少提了几个必需组件,这里列一下:

* autotools-dev

* libgtk2.0-dev

* libscim-dev

* libtool

* automake

用下面命令看看是不是安装了,如果没有,会自动帮你安装上:

$ aptitude install autotools-dev libgtk2.0-dev libscim-dev libtool automake

C. 编译:

记住系统必须先存在SCIM(没有的话 sudo apt-get install scim 一下)

$ ./autogen.sh

$ make

$ sudo make install

现在重启scim:

关闭scim:pkill scim

然后启动: scim -d

OK,去首选项里的“语言支持”的“输入法”选择scim作为默认输入法就OK了。
自己的命运由自己来主宰,将脆弱悲哀全都就地掩埋。
头像
wowoto
帖子: 3050
注册时间: 2009-04-11 12:17
系统: windows7

Re: Ubuntu 10.04安装google拼音输入法

#2

帖子 wowoto » 2010-05-19 4:59

把标题改一下,nnnnnnd,scim-googlepinyin@
wowoto>ubuntu8.04>ubuntu9.04>Archlinux>FreeBSD8.0>Archlinux & end here.
nikitaluo
帖子: 8
注册时间: 2007-11-25 21:45
来自: 广州

Re: Ubuntu 10.04安装google拼音输入法

#3

帖子 nikitaluo » 2010-05-19 12:35

denglin216 写了:看到论坛很多人问这问题,我就贴出来吧 :em02
安装步骤(需要自己编译):

A. 获取代码:(没有git的先安装git:sudo apt-get install git-core)

$ git clone git://github.com/tchaikov/scim-googlepinyin.git

$ cd scim-googlepinyin.git
“cd”这段有问题,应该是“cd scim-googlepinyin”才对
头像
chenzw
帖子: 76
注册时间: 2008-11-03 14:59
联系:

Re: Ubuntu 10.04安装google拼音输入法

#4

帖子 chenzw » 2010-05-20 21:51

原生的谷歌拼音?
和win下一样好用?也支持词库同步
抱歉现在在win下不方便立即尝试,用过的说明一下吧
要好好混论坛

blog: http://zhiwei.in
易水辰
帖子: 111
注册时间: 2008-06-11 12:30

Re: Ubuntu 10.04安装google拼音输入法

#5

帖子 易水辰 » 2010-05-21 14:45

楼主 请教一下 8.04里 可以安装吗
易水辰
帖子: 111
注册时间: 2008-06-11 12:30

Re: Ubuntu 10.04安装google拼音输入法

#6

帖子 易水辰 » 2010-05-21 14:51

yuchen@yuchen-laptop:~$ cd scim-googlepinyin
yuchen@yuchen-laptop:~/scim-googlepinyin$ ./autogen.sh

checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
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 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 locale.h usability... yes
checking locale.h presence... yes
checking for locale.h... yes
checking for LC_MESSAGES... yes
checking libintl.h usability... yes
checking libintl.h presence... yes
checking for libintl.h... yes
checking for ngettext in libc... yes
checking for dgettext in libc... yes
checking for bind_textdomain_codeset... yes
checking for msgfmt... no
./configure: line 5245: ./po/POTFILES.in: No such file or directory
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for SCIM... yes
checking for SCIM_GTKUTILS... yes
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... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
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 for g++... no
checking for c++... no
checking for gpp... no
checking for aCC... no
checking for CC... no
checking for cxx... no
checking for cc++... no
checking for cl.exe... no
checking for FCC... no
checking for KCC... no
checking for RCC... no
checking for xlC_r... no
checking for xlC... no
checking whether we are using the GNU C++ compiler... no
checking whether g++ accepts -g... no
checking dependency style of g++... none
checking for a BSD-compatible install... /usr/bin/install -c
checking for a sed that does not truncate output... /bin/sed
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for /usr/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /usr/bin/nm -B
checking whether ln -s works... yes
checking how to recognize dependent libraries... pass_all
checking dlfcn.h usability... no
checking dlfcn.h presence... no
checking for dlfcn.h... no
checking for g77... no
checking for xlf... no
checking for f77... no
checking for frt... no
checking for pgf77... no
checking for cf77... no
checking for fort77... no
checking for fl32... no
checking for af77... no
checking for xlf90... no
checking for f90... no
checking for pgf90... no
checking for pghpf... no
checking for epcf90... no
checking for gfortran... no
checking for g95... no
checking for xlf95... no
checking for f95... no
checking for fort... no
checking for ifort... no
checking for ifc... no
checking for efc... no
checking for pgf95... no
checking for lf95... no
checking for ftn... no
checking whether we are using the GNU Fortran 77 compiler... no
checking whether accepts -g... no
checking the maximum length of command line arguments... 98304
checking command to parse /usr/bin/nm -B output from gcc object... failed
checking for objdir... .libs
checking for ar... ar
checking for ranlib... ranlib
checking for strip... strip
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC
checking if gcc PIC flag -fPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking whether the gcc linker (/usr/bin/ld) 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... yes
configure: creating libtool
appending configuration tag "CXX" to libtool
appending configuration tag "F77" to libtool
checking for X... libraries /usr/lib, headers
checking for ANSI C header files... (cached) yes
checking assert.h usability... no
checking assert.h presence... no
checking for assert.h... no
checking iconv.h usability... no
checking iconv.h presence... no
checking for iconv.h... no
checking fcntl.h usability... no
checking fcntl.h presence... no
checking for fcntl.h... no
checking for locale.h... (cached) yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking for unistd.h... (cached) yes
checking for libintl.h... (cached) yes
checking for an ANSI C-conforming const... no
checking for inline... no
checking for size_t... no
checking for stdlib.h... (cached) yes
checking for unistd.h... (cached) yes
checking for getpagesize... no
checking for working mmap... no
checking for memset... no
checking for munmap... no
checking for setlocale... no
checking for strdup... no
checking for log2... no
checking for exp2... no
configure: creating ./config.status
config.status: creating Makefile
config.status: creating data/Makefile
config.status: creating src/Makefile
config.status: creating src/include/Makefile
config.status: creating src/data/Makefile
config.status: creating src/share/Makefile
config.status: creating src/command/Makefile
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing default-1 commands
config.status: executing depfiles commands
yuchen@yuchen-laptop:~/scim-googlepinyin$ make
make all-recursive
make[1]: 正在进入目录 `/home/yuchen/scim-googlepinyin'
Making all in src
make[2]: 正在进入目录 `/home/yuchen/scim-googlepinyin/src'
Making all in share
make[3]: 正在进入目录 `/home/yuchen/scim-googlepinyin/src/share'
source='dictbuilder.cpp' object='libpinyinime_la-dictbuilder.lo' libtool=yes \
DEPDIR=.deps depmode=none /bin/bash ../../depcomp \
/bin/bash ../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../.. -Wall -c -o libpinyinime_la-dictbuilder.lo `test -f 'dictbuilder.cpp' || echo './'`dictbuilder.cpp
libtool: ignoring unknown tag CXX
g++ -DHAVE_CONFIG_H -I. -I../.. -Wall -c dictbuilder.cpp -fPIC -DPIC -o .libs/libpinyinime_la-dictbuilder.o
env: g++: No such file or directory
make[3]: *** [libpinyinime_la-dictbuilder.lo] 错误 1
make[3]:正在离开目录 `/home/yuchen/scim-googlepinyin/src/share'
make[2]: *** [all-recursive] 错误 1
make[2]:正在离开目录 `/home/yuchen/scim-googlepinyin/src'
make[1]: *** [all-recursive] 错误 1
make[1]:正在离开目录 `/home/yuchen/scim-googlepinyin'
make: *** [all] 错误 2
yuchen@yuchen-laptop:~/scim-googlepinyin$
易水辰
帖子: 111
注册时间: 2008-06-11 12:30

Re: Ubuntu 10.04安装google拼音输入法

#7

帖子 易水辰 » 2010-05-21 14:52

前面 都没有问题 就是make 命令以后

yuchen@yuchen-laptop:~/scim-googlepinyin$ make
make all-recursive
make[1]: 正在进入目录 `/home/yuchen/scim-googlepinyin'
Making all in src
make[2]: 正在进入目录 `/home/yuchen/scim-googlepinyin/src'
Making all in share
make[3]: 正在进入目录 `/home/yuchen/scim-googlepinyin/src/share'
source='dictbuilder.cpp' object='libpinyinime_la-dictbuilder.lo' libtool=yes \
DEPDIR=.deps depmode=none /bin/bash ../../depcomp \
/bin/bash ../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../.. -Wall -c -o libpinyinime_la-dictbuilder.lo `test -f 'dictbuilder.cpp' || echo './'`dictbuilder.cpp
libtool: ignoring unknown tag CXX
g++ -DHAVE_CONFIG_H -I. -I../.. -Wall -c dictbuilder.cpp -fPIC -DPIC -o .libs/libpinyinime_la-dictbuilder.o
env: g++: No such file or directory
make[3]: *** [libpinyinime_la-dictbuilder.lo] 错误 1
make[3]:正在离开目录 `/home/yuchen/scim-googlepinyin/src/share'
make[2]: *** [all-recursive] 错误 1
make[2]:正在离开目录 `/home/yuchen/scim-googlepinyin/src'
make[1]: *** [all-recursive] 错误 1
make[1]:正在离开目录 `/home/yuchen/scim-googlepinyin'
make: *** [all] 错误 2
易水辰
帖子: 111
注册时间: 2008-06-11 12:30

Re: Ubuntu 10.04安装google拼音输入法

#8

帖子 易水辰 » 2010-05-21 19:55

有高手吗 告知一下 谢谢
头像
denglin216
帖子: 46
注册时间: 2008-08-29 19:27
来自: 四川成都
联系:

Re: Ubuntu 10.04安装google拼音输入法

#9

帖子 denglin216 » 2010-05-23 20:45

易水辰 写了:楼主 请教一下 8.04里 可以安装吗
没测试过,我只是在10.04安装成功了的,不过应该可以的
楼主可以测试一下
自己的命运由自己来主宰,将脆弱悲哀全都就地掩埋。
dragon99
帖子: 34
注册时间: 2008-06-03 15:05

Re: Ubuntu 10.04安装google拼音输入法

#10

帖子 dragon99 » 2010-05-30 12:17

当我 make的时候,提示没有make文件,

还 请楼主 帮忙 看下 ,謝謝
易水辰
帖子: 111
注册时间: 2008-06-11 12:30

Re: Ubuntu 10.04安装google拼音输入法

#11

帖子 易水辰 » 2010-05-31 22:53

8.04安装成功了
make 以后出现错误如下:

yuchen@yuchen-laptop:~/scim-googlepinyin$ make
make all-recursive
make[1]: 正在进入目录 `/home/yuchen/scim-googlepinyin'
Making all in src
make[2]: 正在进入目录 `/home/yuchen/scim-googlepinyin/src'
Making all in share
make[3]: 正在进入目录 `/home/yuchen/scim-googlepinyin/src/share'
source='dictbuilder.cpp' object='libpinyinime_la-dictbuilder.lo' libtool=yes \
DEPDIR=.deps depmode=none /bin/bash ../../depcomp \
/bin/bash ../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../.. -Wall -c -o libpinyinime_la-dictbuilder.lo `test -f 'dictbuilder.cpp' || echo './'`dictbuilder.cpp
libtool: ignoring unknown tag CXX
g++ -DHAVE_CONFIG_H -I. -I../.. -Wall -c dictbuilder.cpp -fPIC -DPIC -o .libs/libpinyinime_la-dictbuilder.o
env: g++: No such file or directory
make[3]: *** [libpinyinime_la-dictbuilder.lo] 错误 1
make[3]:正在离开目录 `/home/yuchen/scim-googlepinyin/src/share'
make[2]: *** [all-recursive] 错误 1
make[2]:正在离开目录 `/home/yuchen/scim-googlepinyin/src'
make[1]: *** [all-recursive] 错误 1
make[1]:正在离开目录 `/home/yuchen/scim-googlepinyin'
make: *** [all] 错误 2

请执行命令

代码: 全选

sudo apt-get install build-essential
然后 重新 ./autogen.sh

make

sodu make install

另外楼主的 命令的确错了
A. 获取代码:第2句 应该是 cd scim-googlepinyin
futao_uestc
帖子: 3
注册时间: 2010-05-15 0:37

Re: Ubuntu 10.04安装google拼音输入法

#12

帖子 futao_uestc » 2010-06-01 10:10

强人,成功了!!!
skytsui
帖子: 61
注册时间: 2007-07-30 3:50

Re: Ubuntu 10.04安装google拼音输入法

#13

帖子 skytsui » 2010-06-02 22:49

ji hao
头像
webranger
帖子: 4
注册时间: 2010-06-08 15:12

Re: Ubuntu 10.04安装google拼音输入法

#15

帖子 webranger » 2010-06-11 10:06

我的出现这种情况,是什么原因,高手 告知一下 谢谢!!
xygnet2008@xygnet2008-laptop:~/scim-googlepinyin$ make
make all-recursive
make[1]: 正在进入目录 `/home/xygnet2008/scim-googlepinyin'
Making all in src
make[2]: 正在进入目录 `/home/xygnet2008/scim-googlepinyin/src'
Making all in share
make[3]: 正在进入目录 `/home/xygnet2008/scim-googlepinyin/src/share'
make[3]: 没有什么可以做的为 `all'。
make[3]:正在离开目录 `/home/xygnet2008/scim-googlepinyin/src/share'
Making all in command
make[3]: 正在进入目录 `/home/xygnet2008/scim-googlepinyin/src/command'
make[3]: 没有什么可以做的为 `all'。
make[3]:正在离开目录 `/home/xygnet2008/scim-googlepinyin/src/command'
Making all in data
make[3]: 正在进入目录 `/home/xygnet2008/scim-googlepinyin/src/data'
make[3]: 没有什么可以做的为 `all'。
make[3]:正在离开目录 `/home/xygnet2008/scim-googlepinyin/src/data'
Making all in include
make[3]: 正在进入目录 `/home/xygnet2008/scim-googlepinyin/src/include'
make[3]: 没有什么可以做的为 `all'。
make[3]:正在离开目录 `/home/xygnet2008/scim-googlepinyin/src/include'
make[3]: 正在进入目录 `/home/xygnet2008/scim-googlepinyin/src'
make[3]: 没有什么可以做的为 `all-am'。
make[3]:正在离开目录 `/home/xygnet2008/scim-googlepinyin/src'
make[2]:正在离开目录 `/home/xygnet2008/scim-googlepinyin/src'
Making all in data
make[2]: 正在进入目录 `/home/xygnet2008/scim-googlepinyin/data'
make[2]: 没有什么可以做的为 `all'。
make[2]:正在离开目录 `/home/xygnet2008/scim-googlepinyin/data'
make[2]: 正在进入目录 `/home/xygnet2008/scim-googlepinyin'
make[2]:正在离开目录 `/home/xygnet2008/scim-googlepinyin'
make[1]:正在离开目录 `/home/xygnet2008/scim-googlepinyin'
xygnet2008@xygnet2008-laptop:~/scim-googlepinyin$
回复