LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Thread Tools Search this Thread
Old 01-07-2008, 09:53 AM   #1
Harry Disney
LQ Newbie
 
Registered: Feb 2004
Posts: 18
Thanked: 0
configuration problems of "scim" in Slackware 12


[Log in to get rid of this advertisement]
Have been trapped in a nightmare trying to get "scim" (Smart Common Input Method platform) up in Slackware 12. After loading m17n libraries/databases, UIM, scim-m17n, scim-uim, scim-tables, etc. I load scim itself. Locales are set to "en_US.UTF-8" with "export" to xim. I try to install the KDE frontend "SKIM", but the configure cannot even find scim even though I try "prefixing" it to /usr/local/bin where SCIM is located.

Launching SCIM (scim -d) gives me an unresponsive icon in my tray. No menu on left click. The "setup" will not allow any entries in the "ON" or "OFF" windows. I can see various icons for the scripts I want to enable (Tibetan and Simplified Chinese). The listed toggle (Control+Shift) enables absolutely nothing. When one cannot get even Simplified Chinese to fire, there is a major glitch.

It is extremely frustrating to be this close but no cigar. I got scim working like a champ on a SuSE 10.3 machine, but hate to abandon Slack cause of my own ineptness.

Any other Slackers using "scim" or "skim" that can tell me where to go from here??
Harry Disney is offline     Reply With Quote
Old 01-07-2008, 01:44 PM   #2
dunric
Member
 
Registered: Jul 2004
Distribution: Slackware
Posts: 364
Thanked: 2
I do not use/know scim but did you already tried some third party packages if there is eventually a problem with your own build ?
I've found one build of 1.4.7 version on Slacky: Scim
dunric is offline     Reply With Quote
Old 01-07-2008, 08:33 PM   #3
Harry Disney
LQ Newbie
 
Registered: Feb 2004
Posts: 18
Thanked: 0

Original Poster
Thanks for the reply, dunric. and the link.

I uninstalled the scim that I had loaded and tried the .tgz package. It is worse. Besides the usual non-performance issues, I now can no longer see the "global" choices for different languages (you enable the ones you want, and there are now none listed).

Will have to get busy an un-install everything and try again. Am almost certain my problems lie in some area of permissions or the app installing to areas of the tree that Slackware or KDE are not co-ordinating with.
Harry Disney is offline     Reply With Quote
Old 01-07-2008, 08:36 PM   #4
Harry Disney
LQ Newbie
 
Registered: Feb 2004
Posts: 18
Thanked: 0

Original Poster
Oops, I may have missed something. They set up a Slackbuild, too. I will attempt that before scrubbing
Harry Disney is offline     Reply With Quote
Old 01-08-2008, 08:51 AM   #5
Harry Disney
LQ Newbie
 
Registered: Feb 2004
Posts: 18
Thanked: 0

Original Poster
I think I am dead meat. Can only get as far as an unresponsive typwriter-looking icon in my tray. Chased down an elusive "qt input" module only to be told it needs a patch to work properly. The patch is some kind of ".diff" file and the script directions seemed strange to me. "cd include/" means what??

Does anybody here use Scim, SKim, or any foreign language imput modules in Slackware12??
Harry Disney is offline     Reply With Quote
Old 01-08-2008, 10:10 AM   #6
zhoun
Member
 
Registered: Oct 2007
Location: anywhere
Distribution: slackware current & winxp sp2 on thinkpad X61
Posts: 80
Thanked: 0
I use fcitx instead of scim to input simplified chinese.
I just download the fcitx from offical website and use src2pkg to generate the tgz file and install it.
It works fine.

If you want to input simplified chinese, i suggest you try fcitx first.
Fcitx is more simple.
zhoun is offline     Reply With Quote
Old 01-08-2008, 07:57 PM   #7
Harry Disney
LQ Newbie
 
Registered: Feb 2004
Posts: 18
Thanked: 0

Original Poster
Thanks, zhoun, for the suggestion. This whole thing would not be so frustrating if I was not looking at a computer (SuSE 10.3) where everything (English, Chinese, and Tibetan) is running flawlessly.

your use of "src2pkg" intrigues me though. I am wondering about Slackware's "rpm2pkg". My next plan is to sneak into SuSE10.3 repositories and learn what versions are installed. I can take the "rpm's", convert to ".tgz" and try re-installing the packages. You've given me a direction to travel.
Harry Disney is offline     Reply With Quote
Old 01-10-2008, 11:02 AM   #8
Johncc330
LQ Newbie
 
Registered: Mar 2007
Posts: 29
Thanked: 2
Some thoughts

Hello Harry.

I'm somewhat stumped with the SCIM/XIM thing myself. Particularly, using LyX I could not compose characters. I have the impression, distilling information from several mails I read, that there is a timing condition with SCIM, something to so with the setting of XMODIFIERS=@im=SCIM too late, but I haven't been able to confirm that (too little time).

Anyway, things started to look generally better here, when I defined

QT_IM_MODULE=xim
GTK_IM_MODEULE=xim

though that didn't stop the composing problem in LyX. Just a couple of
days ago, I detected that unsetting XMODIFIERS, composing started working
in LyX (weird, in other - non Qt - programs composing never failed).
Mind, in KDE, built around Qt more heavily than Gnome, things are probably worse.

unset XMODIFIERS

I'm still thinking SCIM is not initialized correctly, it obviously shouldn't cause these problems.

John
Johncc330 is offline     Reply With Quote
Old 01-12-2008, 05:25 AM   #9
Harry Disney
LQ Newbie
 
Registered: Feb 2004
Posts: 18
Thanked: 0

Original Poster
Well, Johncc330, you are more configured than I!! All I can get to (even using a Slackbuild) is the "setup" window where inputs for turn on turn off will not enter. Therefore, I really cannot turn the thing on, as far as I know.

Am running the 2.6.21.5 kernel. I access scim setup via the command line (though scim setup does appear in the KDE menu).

-root@Slack_Box:~# scim -d
-Smart Common Input Method 1.4.7

-Launching a SCIM daemon with Socket FrontEnd...
-Loading simple Config module ...
-Creating backend ...
-Loading socket FrontEnd module ...
-Starting SCIM as daemon ...
-Launching a SCIM process with x11...
-Loading socket Config module ...
-Creating backend ...
-Loading x11 FrontEnd module ...
-GTK Panel of SCIM 1.4.7

-Starting SCIM as daemon ...
-SCIM has been successfully launched.

For kicks, I "unset XMODIFIERS", reset the GTK and QT immodules, but no change.

By themselves, the Lyx, Scribus, and Inkscape apps I installed work flawlessly. Do you have the same kernel?? Do you have "skim" also installed?? Skim refuses to configure with the error that it cannot find scim. I have scim-pinyin and scim m17n (with all m17n lib/db/doc/etc) installed and have been able to find the languages (and icons) in the scim-setup UI.

Methinks the development team favors Ubuntu and Gnome. I don't know any Slackers that play with language input modules.

If I get this going, I may be finding you again cause I intend to use Lyx.
Harry Disney is offline     Reply With Quote
Old 01-12-2008, 07:18 AM   #10
Harry Disney
LQ Newbie
 
Registered: Feb 2004
Posts: 18
Thanked: 0

Original Poster
BTW, John, you should do "qtconfig", hit Interface tab, XIM Input Style should be set at "over the spot" (if you haven't been given this tip already)
Harry Disney is offline     Reply With Quote
Old 01-12-2008, 09:16 AM   #11
Su-Shee
Member
 
Registered: Sep 2007
Location: Berlin
Distribution: Slackware
Posts: 508
Thanked: 22
I've got scim running ever since.

Assuming, everything went ok with installing and ldconfig'uring all the base libs you need, there's pretty much just the enviroment left to be set. For me, it's just installing scim, then anthy and then scim-anthy and scim-pinyin.

I start scim with this environment from my .i18n which is sourced from my
.bashrc - I use scim with Gnome and/or with fvwm, usally.

export LC_CTYPE="de_DE.utf-8"
export LC_COLLATE="de_DE.utf-8"
export LANG=en_US.utf-8
export LC_PAPER="de_DE.utf-8"
export XMODIFIERS="@im=SCIM"
export XIM_PROGRAM="scim -d"
export GTK_IM_MODULE=scim

I don't even start scim -d separately; it starts itself as soon as the usual shortcut trigger is pressed.

I also added the gtk-immodules to the config-file in /etc/gtk-2.0 (gtk-query-immodules) and edited the line

"/usr/lib/gtk-2.0/2.10.0/immodules/im-xim.so"
"xim" "X Input Method" "gtk20" "/usr/share/locale" "ko:ja:th:zh:en:de"

to react on "en" and "de" additionally. (I really don't get it why "internationalization" always means "nationalization"...

You should end up with something like this (gvim with scim-pinyin):

http://frollein-schmidt.de/scim.jpg
Su-Shee is offline     Reply With Quote
Old 01-13-2008, 06:42 PM   #12
Harry Disney
LQ Newbie
 
Registered: Feb 2004
Posts: 18
Thanked: 0

Original Poster
That is somewhat encouraging, Su-Shee. I think the app defaults to the Gnome way of doing things. It appears that I have borked my system somehow cause Firefox (even re-installed) will not launch. Will be re-installing today!! Ugh!

FWIW, I think the entire fiasco is related to default install scripts that are incompatible with Slackware tree and improperly set permissions. I am too much a newB to understand all the kinks, but I have learned a lot about Linux package management in the process. I read where "just ./configure && make && make install" will work, but I have had to rely on SlackBuilds. Will pay more attention to the SlackBuild scripts in the future.
Harry Disney is offline     Reply With Quote
Old 01-14-2008, 10:52 AM   #13
Su-Shee
Member
 
Registered: Sep 2007
Location: Berlin
Distribution: Slackware
Posts: 508
Thanked: 22
I've never used scim with packages; it's just a 5 minute thing to compile all the stuff I need.

I was pleasently surprised how well I got Unicode/UTF-8 and scim up and running two years ago and I didn't change much configuration ever since.
Su-Shee is offline     Reply With Quote
Old 02-03-2008, 09:08 PM   #14
Harry Disney
LQ Newbie
 
Registered: Feb 2004
Posts: 18
Thanked: 0

Original Poster
[SOLVED THE PROBLEM] configuring scim in Slackware 12

I got scim working with the assistance of Alien Bob.

The "scim -d" launch command should be inserted ahead of "startkde" in the /var/X11R6/xinit/xinitrc. In other words scim seems to need a head start on KDE. The repair is quick and dirty, so Alien Bob is making some suggestions to keep settings for any of my future installs.

A tip of the hat to Alien Bob. He seems to be getting on top of the foreign language input stuff, so if you slackers are wanting to get configured to enable use of foreign language input engines, you may get what you need at: http://www.slackware.com/~alien/sas/
Harry Disney is offline     Reply With Quote
Old 06-05-2008, 07:26 PM   #15
harryhaller
Member
 
Registered: Sep 2004
Location: Brussels, Belgium
Distribution: Slackware 12.1
Posts: 174
Thanked: 1
Thanks Su-Shee for your posts.

I have now actually got scim working - the reasons I had failed previously was because of little details in the .bashrc file that you kindly posted - I had quotes missing and lowercase when it should have been uppercase, xim instead of scim etc...

But then firefox (2.0.0.14) wouldn't start - it crashed with a segmentation error - so, in order to post here, I had to disable everything and comment out the .bashrc entries.

Despite that, I notice that scim-bridge, scim-launcher, scim-helper-manager and scim-panel-gtk are running.

I have no idea where they are getting started. I can't use scim now but I can use firefox.

Can anyone help me out? Why does Firefox crash with scim?
harryhaller is offline     Reply With Quote

Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Problems using "apt-get" Configuration keeps reseting. tigerplug Linux - Software 1 08-02-2007 08:11 AM
slackware "current" problems after install on vmware jimp180 Slackware - Installation 2 07-17-2007 02:35 PM
Common problems explained: "kernel panic - not syncing", "unable to mount..." sundialsvcs Linux - Newbie 2 03-01-2006 01:17 PM
Slackware 10.1 - "Unlimited" X related problems PSHLOS_007 Slackware 14 03-24-2005 02:24 PM
anging "Protocol" option to "IMPS/2" in XF86Config-4 causes problems zstingx Linux - General 2 10-27-2003 10:47 AM


All times are GMT -5. The time now is 05:37 PM.

Main Menu
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.
Advertisement
Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Click Here to receive a complimentary subscription courtesy of LQ.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
RSS2  LQ Podcast
RSS2  LQ Radio
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration