巨莽输入法的安装

系统字体配置、中文显示和输入法问题
回复
ygjt
帖子: 34
注册时间: 2008-10-25 22:38

巨莽输入法的安装

#1

帖子 ygjt » 2009-01-20 12:21

fcitx居然也“过时”了,出了scim-python:巨蟒拼音。使用了搜狗的语料库,感觉和Windows下的搜狗输入法挺像的。
我是直接从code上下载的源代码安装(搜索scim-python,第一个结果就是code)。
安装方法(前几个包是必须的,可能./configure是还要求你安装一些包,照着做就行):
$ sudo apt-get install scim-dev

$ sudo apt-get install python-dev
$ sudo apt-get install python-enchant
$ sudo apt-get install python-gtk2-dev
$ sudo apt-get install libgtk2.0-dev
$ 解压 scim-python-0.1.13rc1.tar.gz.gz
$ cd 源码文件夹
$ ./configure --prefix=/usr
$ make
$ sudo make install
重启之后就能用了。

scim-python-0.1.13rc1.tar.gz.gz 下载地址 :http://code.google.com/p/scim-python/downloads/list
献给初学者,我自己弄了很久才搞好的。并感谢楼下好心人在我安装过程中的支持。
scim-python-0.1.13rc1.tar.gz.gz
(698.6 KiB) 已下载 242 次
附件
scim-python-0.1.13rc1.tar.gz
(3.01 MiB) 已下载 118 次
上次由 ygjt 在 2009-02-06 14:00,总共编辑 2 次。
头像
lerosua
论坛版主
帖子: 8455
注册时间: 2007-11-29 9:41
联系:

Re: 求教巨莽输入法

#2

帖子 lerosua » 2009-01-20 13:20

代码: 全选

tar xvfz xxx.tar.gz
你下载的源码包叫啥名哩,代替上面的
ygjt
帖子: 34
注册时间: 2008-10-25 22:38

Re: 求教巨莽输入法

#3

帖子 ygjt » 2009-01-20 14:04

谢谢,这两步知道了,可是还是没安装好呢,make 和 make install老是出错,谢谢你,能加我的qq吗?我刚开始接触kubuntu,有些问题可能很初级,不好意思,我的qq:397704693

gao@gao:~$ cd scim-python-0.1.13rc1/
gao@gao:~/scim-python-0.1.13rc1$ ls
ABOUT-NLS configure.ac Makefile.in
aclocal.m4 COPYING missing
AUTHORS data NEWS
autogen.sh depcomp po
ChangeLog INSTALL py-compile
compile install-sh python
config.guess libtool python-config.py
config.h.in LICENSE.Python README
config.log ltmain.sh scim-python.spec.in
config.rpath m4 src
config.sub Makefile TODO
configure Makefile.am
gao@gao:~/scim-python-0.1.13rc1$ make
Makefile:15: *** 遗漏分隔符 。 停止。
gao@gao:~/scim-python-0.1.13rc1$ make install
Makefile:15: *** 遗漏分隔符 。 停止。
gao@gao:~/scim-python-0.1.13rc1$
头像
lerosua
论坛版主
帖子: 8455
注册时间: 2007-11-29 9:41
联系:

Re: 求教巨莽输入法

#4

帖子 lerosua » 2009-01-20 14:13

代码: 全选

$ ./configure --prefix=/usr
你这步执行结果如何。

本人不聊q,不好意思。有问题就发论坛,更多人帮助
ygjt
帖子: 34
注册时间: 2008-10-25 22:38

Re: 求教巨莽输入法

#5

帖子 ygjt » 2009-01-20 14:22

gao@gao:~/scim$ ./configure --prefix=/usr
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 nano version... 0 (release)
checking whether build environment is sane... yes
checking whether to enable maintainer-specific portions of Makefiles... no
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 for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking whether gcc and cc understand -c and -o together... yes
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 for library containing strerror... none required
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 build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
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 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 dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking how to run the C++ preprocessor... g++ -E
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... 1572864
checking command to parse /usr/bin/nm -B output from gcc object... ok
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... no
configure: creating libtool
appending configuration tag "CXX" to libtool
checking for ld used by g++... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes
checking for g++ option to produce PIC... -fPIC
checking if g++ PIC flag -fPIC works... yes
checking if g++ static flag -static works... yes
checking if g++ supports -c -o file.o... yes
checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
appending configuration tag "F77" to libtool
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.16... yes
checking for GLIB - version >= 2.0.0... yes (version 2.18.2)
checking for a Python interpreter with version >= 2.5... python
checking for python... /usr/bin/python
checking for python version... 2.5
checking for python platform... linux2
checking for python script directory... ${prefix}/lib/python2.5/site-packages
checking for python extension module directory... ${exec_prefix}/lib/python2.5/site-packages
checking for GTK2... yes
checking for PYGTK2... yes
checking for python-enchant... yes
checking for SCIM... configure: error: Package requirements (
scim >= 1.4
) were not met:

No package 'scim' 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 SCIM_CFLAGS
and SCIM_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.
ygjt
帖子: 34
注册时间: 2008-10-25 22:38

Re: 求教巨莽输入法

#6

帖子 ygjt » 2009-01-20 14:26

gao@gao:~/scim$ sudo apt-get install scim-dev
E: dpkg was interrupted, you must manually run 'dpkg --configure -a' to correct the problem.
gao@gao:~/scim$ dpkg--configure-a
bash: dpkg--configure-a:找不到命令
gao@gao:~/scim$ sudo dpkg --configure -a
正在处理用于 man-db 的触发器...
dpkg:依赖关系问题使得 perl 的配置工作不能继续:
perl 依赖于 perl-base (= 5.10.0-11.1ubuntu2.2);然而:
系统中 perl-base 的版本为 5.10.0-11.1ubuntu2。
dpkg:处理 perl (--configure)时出错:
依赖关系问题 - 仍未被配置
dpkg:依赖关系问题使得 perl-modules 的配置工作不能继续:
perl-modules 依赖于 perl (>= 5.10.0-1);然而:
软件包 perl 还没有被配置。
dpkg:处理 perl-modules (--configure)时出错:
依赖关系问题 - 仍未被配置
在处理时有错误发生:
perl
perl-modules
头像
lerosua
论坛版主
帖子: 8455
注册时间: 2007-11-29 9:41
联系:

Re: 求教巨莽输入法

#7

帖子 lerosua » 2009-01-20 14:35

代码: 全选

sudo apt-get install -f 
修正一下关系先。
话说python-scim源上没有吗?要编译这么麻烦。我是尽量不编译的
头像
lerosua
论坛版主
帖子: 8455
注册时间: 2007-11-29 9:41
联系:

Re: 求教巨莽输入法

#8

帖子 lerosua » 2009-01-20 17:38

代码: 全选

sudo apt-get install -f 
修正一下关系先。
话说python-scim源上没有吗?要编译这么麻烦。我是尽量不编译的
ygjt
帖子: 34
注册时间: 2008-10-25 22:38

Re: 求教巨莽输入法

#9

帖子 ygjt » 2009-01-20 19:50

终于成功了,很开心,哈哈,学会了用编译的安装方式了
ygjt
帖子: 34
注册时间: 2008-10-25 22:38

Re: 求教巨莽输入法

#10

帖子 ygjt » 2009-01-20 19:55

谢谢lerosua,你很及时的出现,让我有信心继续坚持下去,谢谢你!
头像
mymathersname
帖子: 2870
注册时间: 2008-09-18 23:40
系统: Ubuntu 15.04 x64
来自: Mars

Re: 求教巨莽输入法

#11

帖子 mymathersname » 2009-01-20 19:58

lerosua 写了:

代码: 全选

sudo apt-get install -f 
修正一下关系先。
话说python-scim源上没有吗?要编译这么麻烦。我是尽量不编译的
膜拜一下……
转移各位校内,百毒朋友,把目标转向twitter和facebook,别总看局域网的内容
其实从那么多的ubuntu发行版和fedora的各个发行版中,我们不难看出,linux的进步是惊人的,从长久的发展规律和更加深远的意义来看,linux桌面版与微软的距离在缩小,这是值得庆幸的……
ubuntu是半年还去偷情一次的初恋。fedora是一生挚爱的正室。debian是和正室同等地位的妾侍。rh/cent是用来偷窥的正室大姐姐。suse是一夜夫妻百二蚊。gentoo是有内涵的才女。arch是久闻其名不敢接触的怪叔叔。其余发行版,我是帝皇它们是屁民,无福宠幸。
头像
lerosua
论坛版主
帖子: 8455
注册时间: 2007-11-29 9:41
联系:

Re: 求教巨莽输入法

#12

帖子 lerosua » 2009-01-20 20:05

ygjt 写了:谢谢lerosua,你很及时的出现,让我有信心继续坚持下去,谢谢你!
如此,甚好。
回复