LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 06-11-2004, 08:35 AM   #1
windz
Member
 
Registered: Jan 2004
Distribution: Gentoo, Ubuntu (Edgy Eft)
Posts: 59

Rep: Reputation: 15
Unhappy Please help with installation of XCIN


Hallo,

When I try to run xcin, this message appears:
xcin: error while loading shared libraries: libxcin.so.0: cannot open shared object file: No such file or directory

I am using RedHat 9.0. Chinese was not installed as additional language during installation. But I am able to see Chinese characters in Mozilla because I installed ttfonts-zh_CN-2.12-1.noarch.rpm and ttfonts-zh_TW-2.11-19.noarch.rpm or something like that a few monts ago.... I don't really remember.

This is what I did during installation of XCIN:
1. I installed XCIN using apt-get.
2. Create another user (chinese)
3. Added these lines using gedit in /home/chinese/.bashrc
export LANG=zh_TW.Big5
export LC_ALL=zh_TW.Big5
export LC_CTYPE=zh_TW.Big5
export XMODIFIERS=@im=xcin
5. (in terminal) changed user to chinese
6. Run xcin and got this message "xcin: error while loading shared libraries: libxcin.so.0: cannot open shared object file: No such file or directory"

Can somebody please help?
 
Old 06-12-2004, 01:02 AM   #2
JDW
Member
 
Registered: Feb 2003
Location: Melbourne, Australia
Distribution: Ubuntu 6.10, Slackware 11.0
Posts: 192

Rep: Reputation: 30
Please help with installation of XCIN

Hi,

Did you install xcin in your home directory? The libxcin.so.0.0.0 should be located in the /usr/X1186/lib/ directory, and there should be a symbolic link file libxcin.so.0 there as well, that points to the libxcin.so.0.0.0 file.

in my Fedora system :

$ ls -lh /usr/X1186/lib/libxcin*

lrwxrwxrwx 1 root root 16 May 6 20:09 /usr/X11R6/lib/libxcin.so.0 -> libxcin.so.0.0.0
-rw-r--r-- 1 root root 330K Oct 23 2003 /usr/X11R6/lib/libxcin.so.0.0.0

so if you can find these files somewhere in your system (I assume they should install with xcin somewhere!) then you can relocate them to the above directory, but think you will have to create the link file yourself so it "knows" where to look...

hope this helps...

jdw
 
Old 06-12-2004, 01:07 AM   #3
JDW
Member
 
Registered: Feb 2003
Location: Melbourne, Australia
Distribution: Ubuntu 6.10, Slackware 11.0
Posts: 192

Rep: Reputation: 30
Please help with installation of XCIN

On second thought, if you installed with apt-get it should have installed everything in it's right place, so it may just be that your chinese user doesn't have access to your libxcin files...have a look in the directory /usr/X11R6/lib directory and see what you can find...
 
Old 06-12-2004, 06:19 AM   #4
windz
Member
 
Registered: Jan 2004
Distribution: Gentoo, Ubuntu (Edgy Eft)
Posts: 59

Original Poster
Rep: Reputation: 15
Unhappy

Thanks for replying, JDW.

I reinstalled xcin again before I got your reply, and there was no problem with the libxcin anymore. There was a problem with 'invalid font BIG5-0' and 'xcin: error: fontset setting error' when I tried to run xcin. Solved that by installing taipeifonts. Before that, I had only fonts from arphic technology co. So far, everything seems to be ok for the traditional chinese input.

However, there was a problem when I tried to run xcin using simplified chinese input and I don't know what's wrong.

1. Created another user 'simple'
2. Entered this in the /home/simple/.bashrc
export LANG=zh_CN.GB2312
export LC_ALL=zh_CN.GB2312
export LC_CTYPE=zh_CN.GB2312
export XMODIFIERS="@im=xcin"
3. Typed at shell prompt : xcin & gedit
4. Got this error:
xcin: locale "zh_CN.GB2312" encoding "gb2312"
xcin: error: IMOpenIM() with name "xcin-zh_CN.GB2312" transport "X/" failed.
** (gedit:4013): WARNING **: Unable to open XIM input method, falling back to XLookupString()

Is there anything I can do to solve this problem?
 
Old 06-14-2004, 05:19 AM   #5
JDW
Member
 
Registered: Feb 2003
Location: Melbourne, Australia
Distribution: Ubuntu 6.10, Slackware 11.0
Posts: 192

Rep: Reputation: 30
Please help with installation of XCIN

Hi,

For Simplified Chinese, these days the locale settings should be set to "zh_CN", not "zh_CN.GB2312". Try that and it should work this time.

Also, I always thought that xcin was not so good for Simplified Chinese (it's a Taiwanese program), try either SCIM or fcitx, or even chinput which is a default package with most popular distros. So your XMODIFIER line would read :

export XMODIFIERS=@im=scim

or fcitx if you want to use that, they both look great to use...

cheers,

jdw
 
Old 06-14-2004, 05:34 AM   #6
windz
Member
 
Registered: Jan 2004
Distribution: Gentoo, Ubuntu (Edgy Eft)
Posts: 59

Original Poster
Rep: Reputation: 15
Hi,

I've changed the locale settings to "zh_CN" without the quotes and this is what I get when I try "xcin & gedit":

xcin & gedit
[1] 3800
XCIN (Chinese XIM server) version 2.5.3-pre2.
(module ver: 20010918, syscin ver: 20000210).
(use "-h" option for help)

xcin: locale "zh_CN" encoding "gb2312"

xcin: XIM server "xcin-zh_CN" transport "X/"
xcin: inp_styles: Root OverTheSpot

** (gedit:3801): WARNING **: Unable to open XIM input method, falling back to XLookupString()

It's still not working and I think I'm having some trouble with the traditional input as well. When I try to key in 3 words or more at a time (eg: ni3 hao3 ma1), gedit will automatically close with some kind of error message. The error message at the terminal (shell) is:

xcin: XIM server "xcin" transport "X/"
xcin: inp_styles: Root OverTheSpot
tabeTsiDBOpen(): Can not open DB file utsi.db (?ڵ??????v?????ާ@).
xcin: warning: bimsphone: bimsphone@big5: user db files open failed: utsi.db, uyin.db
tabeTsiDBOpen(): Can not open DB file utsi.db (?ڵ??????v?????ާ@).
xcin: warning: bimsphone: bimspinyin@big5: user db files open failed: utsi.db, uyin.db
[1]+ Done xcin

Sigh. Maybe I should try out the other programs.
 
Old 06-14-2004, 06:45 AM   #7
zero0w
Member
 
Registered: Aug 2003
Posts: 76

Rep: Reputation: 15
Try
export XMODIFIERS="@im=xcin-zh_TW" for zh_TW.Big5 locale.

Or

export XMODIFIERS="@im=xcin-zh_CN" for zh_CN.GB2312 locale,
before you run Xcin.

Last edited by zero0w; 06-14-2004 at 06:46 AM.
 
Old 06-14-2004, 07:33 AM   #8
windz
Member
 
Registered: Jan 2004
Distribution: Gentoo, Ubuntu (Edgy Eft)
Posts: 59

Original Poster
Rep: Reputation: 15
##
export XMODIFIERS="@im=xcin-zh_TW" for zh_TW.Big5 locale.
export XMODIFIERS="@im=xcin-zh_CN" for zh_CN.GB2312 locale
##

Neither of them worked. Also, JDW's suggestion of changing the locale from zh_CN.GB2312 to zh_CN didn't work as well

Also I tried installing SCIM. Couldn't find the scim package using apt-get, so installed the rpm myself:

rpm -Uvh scim-0.9.3-1.i586.rpm

Scim also does not work for both traditional and simplified.
This is the error message:

[2] 5666
Smart Common Input Method 0.9.3

Loading simple Config module ...
Creating backend ...
Loading Server module: rawcode ...
Loading Server Factory 0 ... : OK
rawcode Server module is successfully loaded.
Loading Server module: table ...
Failed to load table Server module.
Loading x11 FrontEnd module ...
Starting SCIM ...
scim::FrontEnd: X11 -- failed to initialize XIM Server!


** (gedit:5667): WARNING **: Unable to open XIM input method, falling back to XLookupString()
[2]+ Exit 255 scim

- What in the world did I do wrong??
 
Old 06-14-2004, 07:38 AM   #9
windz
Member
 
Registered: Jan 2004
Distribution: Gentoo, Ubuntu (Edgy Eft)
Posts: 59

Original Poster
Rep: Reputation: 15
Btw, this is the output from xlsfonts |grep gb2312 (in case it can help solve this problem)

-arphic technology co.-ar pl kaitim gb-medium-r-normal--0-0-0-0-c-0-gb2312.1980-0
-arphic technology co.-ar pl sungtil gb-medium-r-normal--0-0-0-0-c-0-gb2312.1980-0
-isas-fangsong ti-medium-r-normal--0-0-72-72-c-0-gb2312.1980-0
-isas-fangsong ti-medium-r-normal--16-160-72-72-c-160-gb2312.1980-0
-isas-fangsong ti-medium-r-normal--16-160-72-72-c-160-gb2312.1980-0
-isas-song ti-medium-r-normal--0-0-72-72-c-0-gb2312.1980-0
-isas-song ti-medium-r-normal--16-160-72-72-c-160-gb2312.1980-0
-isas-song ti-medium-r-normal--16-160-72-72-c-160-gb2312.1980-0
-isas-song ti-medium-r-normal--24-240-72-72-c-240-gb2312.1980-0
-isas-song ti-medium-r-normal--24-240-72-72-c-240-gb2312.1980-0
-misc-zysong18030-medium-r-normal--0-0-0-0-c-0-gb2312.1980-0

and output from xlsfonts |grep big 5
-arphic technology co.-ar pl kaitim big5-medium-r-normal--0-0-0-0-c-0-ascii-0
-arphic technology co.-ar pl kaitim big5-medium-r-normal--0-0-0-0-c-0-big5-0
-arphic technology co.-ar pl kaitim big5-medium-r-normal--0-0-0-0-c-0-big5.cp950-0
-arphic technology co.-ar pl kaitim big5-medium-r-normal--0-0-0-0-c-0-big5.eten-0
-arphic technology co.-ar pl kaitim big5-medium-r-normal--0-0-0-0-c-0-iso10646-1-arphic technology co.-ar pl mingti2l big5-medium-r-normal--0-0-0-0-c-0-ascii-0
-arphic technology co.-ar pl mingti2l big5-medium-r-normal--0-0-0-0-c-0-big5-0
-arphic technology co.-ar pl mingti2l big5-medium-r-normal--0-0-0-0-c-0-big5.cp950-0
-arphic technology co.-ar pl mingti2l big5-medium-r-normal--0-0-0-0-c-0-big5.eten-0
-arphic technology co.-ar pl mingti2l big5-medium-r-normal--0-0-0-0-c-0-iso10646-1
-default-ming-medium-r-normal--16-160-72-72-c-160-big5-0
-default-ming-medium-r-normal--16-160-72-72-c-160-big5-0
-default-ming-medium-r-normal--20-200-72-72-c-200-big5-0
-default-ming-medium-r-normal--20-200-72-72-c-200-big5-0
-default-ming-medium-r-normal--24-240-72-72-c-240-big5-0
-default-ming-medium-r-normal--24-240-72-72-c-240-big5-0
-taipei-fixed-medium-r-normal--0-0-75-75-c-0-big5-0
-taipei-fixed-medium-r-normal--16-150-75-75-c-160-big5-0
-taipei-fixed-medium-r-normal--16-150-75-75-c-160-big5-0
-taipei-fixed-medium-r-normal--20-200-75-75-c-200-big5-0
-taipei-fixed-medium-r-normal--20-200-75-75-c-200-big5-0
-taipei-fixed-medium-r-normal--24-240-75-75-c-240-big5-0
-taipei-fixed-medium-r-normal--24-240-75-75-c-240-big5-0
-taipei-ming-medium-r-normal--16-160-75-75-c-160-big5-0
-taipei-ming-medium-r-normal--16-160-75-75-c-160-big5-0
-taipei-ming-medium-r-normal--20-200-75-75-c-200-big5-0
-taipei-ming-medium-r-normal--20-200-75-75-c-200-big5-0
-taipei-ming-medium-r-normal--24-240-75-75-c-240-big5-0
-taipei-ming-medium-r-normal--24-240-75-75-c-240-big5-0

Btw, is it natural to have so many of them?? i don't remember installing any fonts except 1.ttfonts-zh_CN-2.12-1.noarch.rpm 2. ttfonts-zh_TW-2.11-19.noarch.rpm and 3. taipeifonts
 
Old 06-14-2004, 11:06 AM   #10
zero0w
Member
 
Registered: Aug 2003
Posts: 76

Rep: Reputation: 15
I don't know about Red Hat, but to input Chinese using SCIM in Mandrake, this is a thread you can look at:

http://www.mandrakeusers.org/index.php?showtopic=11225
 
Old 06-14-2004, 02:15 PM   #11
JDW
Member
 
Registered: Feb 2003
Location: Melbourne, Australia
Distribution: Ubuntu 6.10, Slackware 11.0
Posts: 192

Rep: Reputation: 30
Please help with installation of XCIN

Hi,

This is becoming a bit of a struggle, huh? This is probably a dumb question, but you are running X? You're not trying to run this from console mode? Just trying to eliminate possibilities...none of these programs will work in console mode,, for that, zhcon or jmcce work pretty well...

You would probably need the kde-i18n files installed for the Chinese locales, check that as well.

The only other thing I can think of (and another dumb question!), are you logging in to the chinese user from a terminal window (e.g. Konsole)? If not then you will get these kinds of errors. Trying to run "xcin & gedit" will not work if you don't log in to the Chinese user first, i.e. in a terminal,

$ su chinese_user
password:
$xcin & gedit

then it should work if you've followed the steps as per your original post...

If none of this helps, you always have Plan B, i.e. re-install RH9 (or Fedora) and make sure you select Simplified & Traditional Chinese support in the installation. This worked for me once upon a time!

cheers,

jdw
 
Old 06-15-2004, 06:37 AM   #12
windz
Member
 
Registered: Jan 2004
Distribution: Gentoo, Ubuntu (Edgy Eft)
Posts: 59

Original Poster
Rep: Reputation: 15
Hi,

It's becoming more than 'just a little bit' of struggle.

Yes I'm running X. I wouldn't know how to run RedHat from console even if I wanted to! And yes, I log into the chinese user first and then run xcin from the same terminal.

One thing that I don't have/know is the kde-i18n files. What are they? Do I need them even though I'm running gnome?

I'll take a look at the thread for Mandrake users too later. A bit rush for time now.

I would use Plan B only as the last resort... maybe switch to Fedora Core 2 ... but not now ... the hassle!

Many many thanks.
 
Old 06-15-2004, 05:11 PM   #13
JDW
Member
 
Registered: Feb 2003
Location: Melbourne, Australia
Distribution: Ubuntu 6.10, Slackware 11.0
Posts: 192

Rep: Reputation: 30
Please help with installation of XCIN

Hi,

Sounds like you're having fun on the Linux Learning Curve then, we all did, maybe have a look on your Red Hat CDs for files called kde-i18n- , and install them with rpm.

When you log into your chinese user, what is the output from typing the command "locale" at the terminal window?

Another thing you could try is changing zh_CN to zh_CN.utf8, and see if chinput works ("chinput & oowriter" or "chinput & kword").

It does take time to kick these things around and figure 'em out.

btw, to try Linux in console mode, just press CTRL+ALT+F1 (or CTRL+ALT+F2, or F3 up to F6) and you will be in the X-less console environment. To get back into Gnome/KDE in X, just press CTRL+ALT+F7...

jdw
 
Old 06-15-2004, 05:14 PM   #14
JDW
Member
 
Registered: Feb 2003
Location: Melbourne, Australia
Distribution: Ubuntu 6.10, Slackware 11.0
Posts: 192

Rep: Reputation: 30
Please help with installation of XCIN

sorry, the kde-i18n files should have a bit on the end with zh_CN or zh_TW or something like that to indicate they are for the Chinese environment, I cannot remember exactly, I'm at work in a fiendish Windows-using company...

jdw
 
Old 06-18-2004, 10:56 PM   #15
windz
Member
 
Registered: Jan 2004
Distribution: Gentoo, Ubuntu (Edgy Eft)
Posts: 59

Original Poster
Rep: Reputation: 15
Hi,

I have installed the kde-i18n-Chinese and it still doesn't work. I don't think I need them anyway since I'm using Gnome and not KDE.

This is the output of 'locale' when logged into chinese user:

(For traditional user)
LANG=zh_TW.Big5
LC_CTYPE="zh_TW.Big5"
LC_NUMERIC="zh_TW.Big5"
LC_TIME="zh_TW.Big5"
LC_COLLATE="zh_TW.Big5"
LC_MONETARY="zh_TW.Big5"
LC_MESSAGES="zh_TW.Big5"
LC_PAPER="zh_TW.Big5"
LC_NAME="zh_TW.Big5"
LC_ADDRESS="zh_TW.Big5"
LC_TELEPHONE="zh_TW.Big5"
LC_MEASUREMENT="zh_TW.Big5"
LC_IDENTIFICATION="zh_TW.Big5"
LC_ALL=zh_TW.Big5

(For simplified user)
LANG=zh_CN.GB2312
LC_CTYPE="zh_CN.GB2312"
LC_NUMERIC="zh_CN.GB2312"
LC_TIME="zh_CN.GB2312"
LC_COLLATE="zh_CN.GB2312"
LC_MONETARY="zh_CN.GB2312"
LC_MESSAGES="zh_CN.GB2312"
LC_PAPER="zh_CN.GB2312"
LC_NAME="zh_CN.GB2312"
LC_ADDRESS="zh_CN.GB2312"
LC_TELEPHONE="zh_CN.GB2312"
LC_MEASUREMENT="zh_CN.GB2312"
LC_IDENTIFICATION="zh_CN.GB2312"
LC_ALL=zh_CN.GB2312
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Xcin error, Can someone help me? yanglei5382 Linux - Software 0 06-26-2005 03:21 AM
Newbie Xcin installation questions 286 Linux - Newbie 2 11-30-2003 07:48 PM
xcin in english x windows guni Linux - Newbie 0 10-20-2003 02:56 AM
xcin cant start demmylls Linux - General 2 10-18-2003 10:27 AM
xcin cant start demmylls Linux - General 0 10-05-2003 11:55 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:44 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration