Hi there,
I'm the ibus-cangjie upstream developer. :)
On Sun, 2016-05-29 at 05:49 -0700,
era...@web.de wrote:
>
> Hello everybody,
>
> I have a question to ask which may or may not sound ridiculously
> trivial (I'm still fairly new to Linux).
>
> I'm trying to install ibus-cangjie on openSUSE Leap 42.1. Since it's
> not among the standard repositories,
So first, can you make it happen?
It would be great to have ibus-cangjie in the repositories of the big
few distributions, and opensuse certainly is one of them.
>
> I am compiling it from github clones.
I recommend you install from the release tarballs:
*
https://github.com/Cangjians/libcangjie/releases/download/v1.3/libcan
gjie-1.3.tar.xz
*
https://github.com/Cangjians/pycangjie/releases/download/v1.2/cangjie
-1.2.tar.xz
*
https://github.com/Cangjians/ibus-cangjie/releases/download/v2.4/ibus
-cangjie-2.4.tar.xz
>
> I successfully installed libcangjie and pycangjie and now want to
> compile ibus-cangjie itself. However the autogen.sh fails to find the
> cangjie Python module and asks me to install it. It is indeed located
> in the /usr/local/lib64/python3.4/sitepackages directory. I thought
> that the problem was just that that directory was missing from
> $PYTHONPATH.
If opensuse works like Fedora, then indeed /usr/local/... isn't in the
python path, for good reasons.
The best solution here would be... to install in /usr, not /usr/local,
and in fact to package it for opensuse. :)
Especially, because of the way IBus works, the cangjie.xml and
quick.xml files **must** be in /usr/share/ibus/component/ things just
won't work if they are in /usr/local/share/ibus/component/ .
I know it's pretty terrible to install stuff you compiled in /usr, but
unfortunately, due to IBus, I'm not sure we have a choice, here.
If you have any idea I'd love to improve this, though, but for now,
your best bet is to compile libcangjie, pycangjie and ibus-cangjie
with: ./configure --prefix=/usr
Let me know if you need more help, you can even come and talk on
#linux-hk on Freenode, I'm bochecha there. :)
Cheers,
--
Mathieu