Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
problem while emerging xicn (libtabe) or using scim
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index 中文 (Chinese)
View previous topic :: View next topic  
Author Message
dStulle
n00b
n00b


Joined: 14 Jun 2005
Posts: 45
Location: China / Shanghai

PostPosted: Sun Sep 24, 2006 5:42 am    Post subject: problem while emerging xicn (libtabe) or using scim Reply with quote

Hi there,
I just started learning Chinese and now I really would like to type some Chinese Characters into my Computer, but I have a problem emerging xcin maybe someone of you has an Idea?

Code:

franz ~ # emerge xcin
Calculating dependencies... done!
>>> starting parallel fetching

>>> Emerging (1 of 2) app-i18n/libtabe-0.2.5 to /
 * libtabe-0.2.5.tar.gz MD5 ;-) ...                                       [ ok ]
 * libtabe-0.2.5.tar.gz size ;-) ...                                      [ ok ]
 * checking ebuild checksums ;-) ...                                      [ ok ]
 * checking auxfile checksums ;-) ...                                     [ ok ]
 * checking miscfile checksums ;-) ...                                    [ ok ]
 * checking libtabe-0.2.5.tar.gz ;-) ...                                  [ ok ]
>>> Unpacking source...
>>> Unpacking libtabe-0.2.5.tar.gz to /var/tmp/portage/libtabe-0.2.5/work
 * Applying libtabe-0.2.5-db3.patch ...                                   [ ok ]
>>> Source unpacked.
>>> Compiling source in /var/tmp/portage/libtabe-0.2.5/work/libtabe ...
 * econf: updating libtabe/script/config.guess with /usr/share/gnuconfig/config.guess
 * econf: updating libtabe/script/config.sub with /usr/share/gnuconfig/config.sub
./configure --prefix=/usr --host=i686-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --with-db-inc=/usr/include/db3 --with-db-lib=/usr/lib --with-db-bin=/usr/bin --enable-shared --build=i686-pc-linux-gnu
creating cache ./config.cache
checking host system type... i686-pc-linux-gnu
checking for gcc... gcc
checking whether the C compiler (gcc -O2 -march=prescott -pipe ) works... yes
checking whether the C compiler (gcc -O2 -march=prescott -pipe ) is a cross-compiler... no
checking whether we are using GNU C... yes
checking whether gcc accepts -g... yes
checking for Cygwin environment... no
checking for mingw32 environment... no
checking how to run the C preprocessor... gcc -E
checking build system type... i686-pc-linux-gnu
checking for ld used by GCC... /usr/i686-pc-linux-gnu/bin/ld
checking if the linker (/usr/i686-pc-linux-gnu/bin/ld) is GNU ld... yes
checking for /usr/i686-pc-linux-gnu/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 recognise dependant libraries... pass_all
checking for object suffix... o
checking for executable suffix... no
checking command to parse /usr/bin/nm -B output... ok
checking for dlfcn.h... yes
checking for ranlib... ranlib
checking for strip... strip
checking for objdir... .libs
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 if gcc supports -c -o file.lo...
checking if gcc supports -fno-rtti -fno-exceptions... yes
checking whether the linker (/usr/i686-pc-linux-gnu/bin/ld) supports shared libraries... yes
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking if libtool supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
creating libtool
checking how to run the C preprocessor... gcc -E
checking whether ln -s works... (cached) yes
checking whether make sets ${MAKE}... yes
checking for ranlib... (cached) ranlib
checking for a BSD compatible install... /bin/install -c
checking for install -d: /bin/install -c
checking for library containing db_create... -ldb
Use Berkeley DB3 to compile libtabe.
checking for db.h... yes
checking for X... libraries , headers
checking for ANSI C header files... yes
checking for unistd.h... yes
checking for working const... yes
checking for 8-bit clean memcmp... yes
checking for strdup... yes
checking for strerror... yes
checking for strstr... yes
updating cache ./config.cache
creating ./config.status
creating Makefile
creating src/Makefile
creating src/supports/bims/Makefile
creating util/Makefile
creating util/tsipackdb
creating tsi-src/Makefile
creating config.h
(cd src; make)
make[1]: Entering directory `/var/tmp/portage/libtabe-0.2.5/work/libtabe/src'
../libtool --mode=compile gcc -c -O2 -march=prescott -pipe -DHAVE_CONFIG_H -I/usr/include/db3 -o tabe_util.lo tabe_util.c
mkdir .libs
gcc -c -O2 -march=prescott -pipe -DHAVE_CONFIG_H -I/usr/include/db3 tabe_util.c  -fPIC -DPIC -o .libs/tabe_util.lo
gcc -c -O2 -march=prescott -pipe -DHAVE_CONFIG_H -I/usr/include/db3 tabe_util.c -o tabe_util.o >/dev/null 2>&1
mv -f .libs/tabe_util.lo tabe_util.lo
../libtool --mode=compile gcc -c -O2 -march=prescott -pipe -DHAVE_CONFIG_H -I/usr/include/db3 -o tabe_zuyin.lo tabe_zuyin.c
rm -f .libs/tabe_zuyin.lo
gcc -c -O2 -march=prescott -pipe -DHAVE_CONFIG_H -I/usr/include/db3 tabe_zuyin.c  -fPIC -DPIC -o .libs/tabe_zuyin.lo
gcc -c -O2 -march=prescott -pipe -DHAVE_CONFIG_H -I/usr/include/db3 tabe_zuyin.c -o tabe_zuyin.o >/dev/null 2>&1
mv -f .libs/tabe_zuyin.lo tabe_zuyin.lo
../libtool --mode=compile gcc -c -O2 -march=prescott -pipe -DHAVE_CONFIG_H -I/usr/include/db3 -o tabe_yin.lo tabe_yin.c
rm -f .libs/tabe_yin.lo
gcc -c -O2 -march=prescott -pipe -DHAVE_CONFIG_H -I/usr/include/db3 tabe_yin.c  -fPIC -DPIC -o .libs/tabe_yin.lo
gcc -c -O2 -march=prescott -pipe -DHAVE_CONFIG_H -I/usr/include/db3 tabe_yin.c -o tabe_yin.o >/dev/null 2>&1
mv -f .libs/tabe_yin.lo tabe_yin.lo
../libtool --mode=compile gcc -c -O2 -march=prescott -pipe -DHAVE_CONFIG_H -I/usr/include/db3 -o tabe_tsi.lo tabe_tsi.c
rm -f .libs/tabe_tsi.lo
gcc -c -O2 -march=prescott -pipe -DHAVE_CONFIG_H -I/usr/include/db3 tabe_tsi.c  -fPIC -DPIC -o .libs/tabe_tsi.lo
gcc -c -O2 -march=prescott -pipe -DHAVE_CONFIG_H -I/usr/include/db3 tabe_tsi.c -o tabe_tsi.o >/dev/null 2>&1
mv -f .libs/tabe_tsi.lo tabe_tsi.lo
../libtool --mode=compile gcc -c -O2 -march=prescott -pipe -DHAVE_CONFIG_H -I/usr/include/db3 -o tabe_tsidbint.lo tabe_tsidbint.c
rm -f .libs/tabe_tsidbint.lo
gcc -c -O2 -march=prescott -pipe -DHAVE_CONFIG_H -I/usr/include/db3 tabe_tsidbint.c  -fPIC -DPIC -o .libs/tabe_tsidbint.lo
gcc -c -O2 -march=prescott -pipe -DHAVE_CONFIG_H -I/usr/include/db3 tabe_tsidbint.c -o tabe_tsidbint.o >/dev/null 2>&1
mv -f .libs/tabe_tsidbint.lo tabe_tsidbint.lo
../libtool --mode=compile gcc -c -O2 -march=prescott -pipe -DHAVE_CONFIG_H -I/usr/include/db3 -o tabe_tsiyindbint.lo tabe_tsiyindbint.c
rm -f .libs/tabe_tsiyindbint.lo
gcc -c -O2 -march=prescott -pipe -DHAVE_CONFIG_H -I/usr/include/db3 tabe_tsiyindbint.c  -fPIC -DPIC -o .libs/tabe_tsiyindbint.lo
gcc -c -O2 -march=prescott -pipe -DHAVE_CONFIG_H -I/usr/include/db3 tabe_tsiyindbint.c -o tabe_tsiyindbint.o >/dev/null 2>&1
mv -f .libs/tabe_tsiyindbint.lo tabe_tsiyindbint.lo
../libtool --mode=compile gcc -c -O2 -march=prescott -pipe -DHAVE_CONFIG_H -I/usr/include/db3 -o tabe_chu.lo tabe_chu.c
rm -f .libs/tabe_chu.lo
gcc -c -O2 -march=prescott -pipe -DHAVE_CONFIG_H -I/usr/include/db3 tabe_chu.c  -fPIC -DPIC -o .libs/tabe_chu.lo
gcc -c -O2 -march=prescott -pipe -DHAVE_CONFIG_H -I/usr/include/db3 tabe_chu.c -o tabe_chu.o >/dev/null 2>&1
mv -f .libs/tabe_chu.lo tabe_chu.lo
../libtool --mode=link gcc -o libtabe.la tabe_util.lo tabe_zuyin.lo tabe_yin.lo tabe_tsi.lo tabe_tsidbint.lo tabe_tsiyindbint.lo tabe_chu.lo -rpath /usr/lib \
        -version-info 2:1:2 \
        -release 0.2.5
rm -fr .libs/libtabe.la .libs/libtabe.* .libs/libtabe-0.2.5.*
gcc -shared  tabe_util.lo tabe_zuyin.lo tabe_yin.lo tabe_tsi.lo tabe_tsidbint.lo tabe_tsiyindbint.lo tabe_chu.lo   -Wl,-soname -Wl,libtabe-0.2.5.so.0 -o .libs/libtabe-0.2.5.so.0.2.1
(cd .libs && rm -f libtabe-0.2.5.so.0 && ln -s libtabe-0.2.5.so.0.2.1 libtabe-0.2.5.so.0)
(cd .libs && rm -f libtabe.so && ln -s libtabe-0.2.5.so.0.2.1 libtabe.so)
ar cru .libs/libtabe.a  tabe_util.o tabe_zuyin.o tabe_yin.o tabe_tsi.o tabe_tsidbint.o tabe_tsiyindbint.o tabe_chu.o
ranlib .libs/libtabe.a
creating libtabe.la
(cd .libs && rm -f libtabe.la && ln -s ../libtabe.la libtabe.la)
(cd supports/bims; make)
make[2]: Entering directory `/var/tmp/portage/libtabe-0.2.5/work/libtabe/src/supports/bims'
../../../libtool --mode=compile gcc -c -O2 -march=prescott -pipe -DHAVE_CONFIG_H -I../.. -I -I/usr/include/db3 -o bims.lo bims.c
mkdir .libs
gcc -c -O2 -march=prescott -pipe -DHAVE_CONFIG_H -I../.. -I -I/usr/include/db3 bims.c  -fPIC -DPIC -o .libs/bims.lo
gcc -c -O2 -march=prescott -pipe -DHAVE_CONFIG_H -I../.. -I -I/usr/include/db3 bims.c -o bims.o >/dev/null 2>&1
mv -f .libs/bims.lo bims.lo
../../../libtool --mode=link gcc -o libbims.la bims.lo -rpath /usr/lib \
        -version-info 2:1:2 \
        -release 0.2.5
rm -fr .libs/libbims.la .libs/libbims.* .libs/libbims-0.2.5.*
gcc -shared  bims.lo   -Wl,-soname -Wl,libbims-0.2.5.so.0 -o .libs/libbims-0.2.5.so.0.2.1
(cd .libs && rm -f libbims-0.2.5.so.0 && ln -s libbims-0.2.5.so.0.2.1 libbims-0.2.5.so.0)
(cd .libs && rm -f libbims.so && ln -s libbims-0.2.5.so.0.2.1 libbims.so)
ar cru .libs/libbims.a  bims.o
ranlib .libs/libbims.a
creating libbims.la
(cd .libs && rm -f libbims.la && ln -s ../libbims.la libbims.la)
make[2]: Leaving directory `/var/tmp/portage/libtabe-0.2.5/work/libtabe/src/supports/bims'
make[1]: Leaving directory `/var/tmp/portage/libtabe-0.2.5/work/libtabe/src'
(cd util; make)
make[1]: Entering directory `/var/tmp/portage/libtabe-0.2.5/work/libtabe/util'
gcc -c -O2 -march=prescott -pipe -I../src -I/usr/include/db3 -DHAVE_CONFIG_H -o tsidump.o tsidump.c
../libtool --mode=link gcc -O2 -march=prescott -pipe -I../src -I/usr/include/db3 -DHAVE_CONFIG_H -o tsidump tsidump.o ../src/libtabe.la -L/usr/lib -ldb  -rpath /usr/lib
mkdir .libs
gcc -O2 -march=prescott -pipe -I../src -I/usr/include/db3 -DHAVE_CONFIG_H -o .libs/tsidump tsidump.o  ../src/.libs/libtabe.so -L/usr/lib -ldb -Wl,--rpath -Wl,/usr/lib
creating tsidump
gcc -c -O2 -march=prescott -pipe -I../src -I/usr/include/db3 -DHAVE_CONFIG_H -o tsidel.o tsidel.c
../libtool --mode=link gcc -O2 -march=prescott -pipe -I../src -I/usr/include/db3 -DHAVE_CONFIG_H -o tsidel tsidel.o ../src/libtabe.la -L/usr/lib -ldb  -rpath /usr/lib
gcc -O2 -march=prescott -pipe -I../src -I/usr/include/db3 -DHAVE_CONFIG_H -o .libs/tsidel tsidel.o  ../src/.libs/libtabe.so -L/usr/lib -ldb -Wl,--rpath -Wl,/usr/lib
creating tsidel
gcc -c -O2 -march=prescott -pipe -I../src -I/usr/include/db3 -DHAVE_CONFIG_H -o tsiadd.o tsiadd.c
../libtool --mode=link gcc -O2 -march=prescott -pipe -I../src -I/usr/include/db3 -DHAVE_CONFIG_H -o tsiadd tsiadd.o ../src/libtabe.la -L/usr/lib -ldb  -rpath /usr/lib
gcc -O2 -march=prescott -pipe -I../src -I/usr/include/db3 -DHAVE_CONFIG_H -o .libs/tsiadd tsiadd.o  ../src/.libs/libtabe.so -L/usr/lib -ldb -Wl,--rpath -Wl,/usr/lib
creating tsiadd
gcc -c -O2 -march=prescott -pipe -I../src -I/usr/include/db3 -DHAVE_CONFIG_H -o tsiyincheck.o tsiyincheck.c
../libtool --mode=link gcc -O2 -march=prescott -pipe -I../src -I/usr/include/db3 -DHAVE_CONFIG_H -o tsiyincheck tsiyincheck.o ../src/libtabe.la -L/usr/lib -ldb  -rpath /usr/lib
gcc -O2 -march=prescott -pipe -I../src -I/usr/include/db3 -DHAVE_CONFIG_H -o .libs/tsiyincheck tsiyincheck.o  ../src/.libs/libtabe.so -L/usr/lib -ldb -Wl,--rpath -Wl,/usr/lib
creating tsiyincheck
gcc -c -O2 -march=prescott -pipe -I../src -I/usr/include/db3 -DHAVE_CONFIG_H -o tsiyindump.o tsiyindump.c
../libtool --mode=link gcc -O2 -march=prescott -pipe -I../src -I/usr/include/db3 -DHAVE_CONFIG_H -o tsiyindump tsiyindump.o ../src/libtabe.la -L/usr/lib -ldb  -rpath /usr/lib
gcc -O2 -march=prescott -pipe -I../src -I/usr/include/db3 -DHAVE_CONFIG_H -o .libs/tsiyindump tsiyindump.o  ../src/.libs/libtabe.so -L/usr/lib -ldb -Wl,--rpath -Wl,/usr/lib
creating tsiyindump
if [ ! -x tsipackdb ]; then chmod 755 tsipackdb; fi
make[1]: Leaving directory `/var/tmp/portage/libtabe-0.2.5/work/libtabe/util'
(cd tsi-src; make)
make[1]: Entering directory `/var/tmp/portage/libtabe-0.2.5/work/libtabe/tsi-src'
../libtool --mode=execute ../util/tsiadd -d tsi.db -f tsi.src -r -y
make[1]: *** [tsi.db] Segmentation fault
make[1]: Leaving directory `/var/tmp/portage/libtabe-0.2.5/work/libtabe/tsi-src'
make: *** [data] Error 2

!!! ERROR: app-i18n/libtabe-0.2.5 failed.
Call stack:
  ebuild.sh, line 1546:   Called dyn_compile
  ebuild.sh, line 937:   Called src_compile
  libtabe-0.2.5.ebuild, line 31:   Called die

!!!  make failed
!!! If you need support, post the topmost build error, and the call stack if relevant.

franz ~ #

_________________
$ cat /dev/urandom | md5sum > /dev/null

or visit http://mam.dstulle.de/


Last edited by dStulle on Thu Sep 28, 2006 2:33 pm; edited 1 time in total
Back to top
View user's profile Send private message
jiangtao
n00b
n00b


Joined: 16 Mar 2004
Posts: 63
Location: The People's Republic of China

PostPosted: Sun Sep 24, 2006 7:55 am    Post subject: Reply with quote

8O
Segmentation fault?!

Try scim .
_________________
Oh...Can I Speak in Chinese ?
Back to top
View user's profile Send private message
dStulle
n00b
n00b


Joined: 14 Jun 2005
Posts: 45
Location: China / Shanghai

PostPosted: Sun Sep 24, 2006 9:27 am    Post subject: Reply with quote

I have already tryed this one but nothing hapens when I press [ctrl.]+[space]...

I started it with the .xinitrc like this:

Code:

xbindkeys

scim -d
export XMODIFIERS=@im=SCIM
export GTK_IM_MODULE=SCIM

xfce4-session


Any hint? Any idea?
_________________
$ cat /dev/urandom | md5sum > /dev/null

or visit http://mam.dstulle.de/
Back to top
View user's profile Send private message
akar
Moderator
Moderator


Joined: 03 Dec 2004
Posts: 348
Location: HKSAR,China

PostPosted: Wed Sep 27, 2006 12:54 am    Post subject: Reply with quote

try to add this line to the begining of the ~/.xinitrc

Quote:
LC_NUMERIC="zh_CN.UTF-8"


if failed, try this line instead:
Quote:
LANG="zh_CN.UTF-8"



The IME need proper Locale setting for when you press [Control]+[Space] to invoke SCIM
_________________
AKar
Back to top
View user's profile Send private message
dStulle
n00b
n00b


Joined: 14 Jun 2005
Posts: 45
Location: China / Shanghai

PostPosted: Thu Sep 28, 2006 2:44 pm    Post subject: Reply with quote

ok when I use LANG="zh_CN.UTF-8" the scim appears when I press [Control]+[Space]

but something is strange...

I type in an "n" and it suggests: "五"
and when I type "ni" I can't find the character for "you"

what's wrong here?

sorry that I am a complete noob in this subject and ask such kind of questions, but I am really desperate...
_________________
$ cat /dev/urandom | md5sum > /dev/null

or visit http://mam.dstulle.de/
Back to top
View user's profile Send private message
akar
Moderator
Moderator


Joined: 03 Dec 2004
Posts: 348
Location: HKSAR,China

PostPosted: Wed Oct 04, 2006 12:24 am    Post subject: Reply with quote

We have hundereds of Chinese IME. :) Try to emerge this portage, it is what you want:

Code:
# emerge app-i18n/scim-pinyin

_________________
AKar
Back to top
View user's profile Send private message
dStulle
n00b
n00b


Joined: 14 Jun 2005
Posts: 45
Location: China / Shanghai

PostPosted: Wed Oct 04, 2006 4:09 am    Post subject: Reply with quote

I have already installed and select the pinyin module and it still doesn't work...

Another question is how to get scim work without LANG="zh_CN.UTF-8"?
Because then some applications are in Chinese and I can't use them...
_________________
$ cat /dev/urandom | md5sum > /dev/null

or visit http://mam.dstulle.de/
Back to top
View user's profile Send private message
angelcheat
n00b
n00b


Joined: 05 Oct 2006
Posts: 8

PostPosted: Thu Oct 05, 2006 8:46 am    Post subject: Reply with quote

Maybe I can help u

emerge an older gettext first,then emerge scim-pinyin

I think the gettext you emerged is too new

scim-pinyin depends an old getext
_________________
Hi.Nice to meet u
Back to top
View user's profile Send private message
r0bertz
Developer
Developer


Joined: 13 Sep 2004
Posts: 257
Location: HKSAR,China

PostPosted: Fri Oct 13, 2006 6:41 am    Post subject: Reply with quote

dStulle wrote:

Another question is how to get scim work without LANG="zh_CN.UTF-8"?
Because then some applications are in Chinese and I can't use them...

all you need is to set LC_CTYPE=zh_CN.UTF-8 and LANG=en_US.UTF-8, and leave all other LC_xx untouched.
Back to top
View user's profile Send private message
r0bertz
Developer
Developer


Joined: 13 Sep 2004
Posts: 257
Location: HKSAR,China

PostPosted: Fri Oct 13, 2006 6:58 am    Post subject: Reply with quote

angelcheat wrote:
Maybe I can help u

emerge an older gettext first,then emerge scim-pinyin

I think the gettext you emerged is too new

scim-pinyin depends an old getext

That problem is already fixed, take a look:
http://zhllg.blogspot.com/2006/10/scim-pinyin-mkinstalldirs-problem.html
_________________
Zhang Le, Robert
http://zhangle.is-a-geek.org
Back to top
View user's profile Send private message
akar
Moderator
Moderator


Joined: 03 Dec 2004
Posts: 348
Location: HKSAR,China

PostPosted: Sat Oct 14, 2006 12:31 am    Post subject: Reply with quote

zhllg wrote:
dStulle wrote:

Another question is how to get scim work without LANG="zh_CN.UTF-8"?
Because then some applications are in Chinese and I can't use them...

all you need is to set LC_CTYPE=zh_CN.UTF-8 and LANG=en_US.UTF-8, and leave all other LC_xx untouched.



  謝謝 Zhllg , that is the LC_CTYPE instead of LC_NUMERIC

to dStulle :

use this line
Quote:
LC_CTYPE="zh_CN.UTF-8"


to replace this line
Quote:
LC_NUMERIC="zh_CN.UTF-8"

_________________
AKar
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index 中文 (Chinese) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum