fictx-fbterm 的安装。确实没办法了,只好来这里求助。

系统字体配置、中文显示和输入法问题
回复
hhmhfh
帖子: 16
注册时间: 2012-04-10 12:41

fictx-fbterm 的安装。确实没办法了,只好来这里求助。

#1

帖子 hhmhfh » 2012-04-10 19:56

我的fictx4.2装了,fbterm也装了。
但fictx-fbterm装不上。


-- The C compiler identification is GNU
-- The CXX compiler identification is GNU
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
CMake Error at CMakeLists.txt:4 (FIND_PACKAGE):
Could not find module FindFcitx.cmake or a configuration file for package
Fcitx.

Adjust CMAKE_MODULE_PATH to find FindFcitx.cmake or set Fcitx_DIR to the
directory containing a CMake configuration file for Fcitx. The file will
have one of the following names:

FcitxConfig.cmake
fcitx-config.cmake



-- checking for module 'glib-2.0'
-- found glib-2.0, version 2.30.0
-- checking for module 'gio-2.0 gio-unix-2.0'
-- found gio-2.0 gio-unix-2.0, version 2.30.0;2.30.0
-- checking for module 'dbus-glib-1'
-- found dbus-glib-1, version 0.94
-- Configuring incomplete, errors occurred!


另外,我找了一下ibus-fbterm下载的时候总是重置我的链接,NND。不知道ibus-fbterm能输入五笔吗?
上次由 hhmhfh 在 2012-04-10 20:33,总共编辑 1 次。
csslayer
帖子: 575
注册时间: 2009-08-03 13:08

Re: fictx-fbterm 的安装。确实没办法了,只好来这里求助。

#2

帖子 csslayer » 2012-04-10 20:17

……你贴的不都found了。。。。

没贴到关键部分吧。
hhmhfh
帖子: 16
注册时间: 2012-04-10 12:41

Re: fictx-fbterm 的安装。确实没办法了,只好来这里求助。

#3

帖子 hhmhfh » 2012-04-10 20:33

csslayer 写了:……你贴的不都found了。。。。

没贴到关键部分吧。
已经编辑过了,呵呵。
csslayer
帖子: 575
注册时间: 2009-08-03 13:08

Re: fictx-fbterm 的安装。确实没办法了,只好来这里求助。

#4

帖子 csslayer » 2012-04-10 22:47

fcitx-libs-dev
hhmhfh
帖子: 16
注册时间: 2012-04-10 12:41

Re: fictx-fbterm 的安装。确实没办法了,只好来这里求助。

#5

帖子 hhmhfh » 2012-04-10 23:04

csslayer 写了:fcitx-libs-dev
你好,是要安装这个东西么,我的源里没有
我加了
sudo add-apt-repository ppa:fcitx-team/stable
sudo add-apt-repository ppa:fcitx-team/nightly
这两个源,不过现在好象提示
E: 无法识别在源列表 /etc/apt/sources.list.d/fcitx-team-nightly-oneiric.list 里,第 2 行中的软件包类别“src”
E: 无法识别在源列表 /etc/apt/sources.list.d/fcitx-team-nightly-oneiric.list 里,第 2 行中的软件包类别“src”


总之我现在的源里找不到fcitx-libs-dev


现在我又查了一下,这个东西是不是应该在/usr/share/lintian/overrides/fcitx-libs-dev
我没有的说。
csslayer
帖子: 575
注册时间: 2009-08-03 13:08

Re: fictx-fbterm 的安装。确实没办法了,只好来这里求助。

#6

帖子 csslayer » 2012-04-11 0:48

只需要stable / nightly 其中的一个,如果有多余的请删除掉 /etc/apt/sources.list.d/ 下面的那个stable的

增加源之后需要 sudo apt-get update 刷新

fcitx-libs-dev 你确认你拼写要正确
hhmhfh
帖子: 16
注册时间: 2012-04-10 12:41

Re: fictx-fbterm 的安装。确实没办法了,只好来这里求助。

#7

帖子 hhmhfh » 2012-04-11 11:58

那个,安装的话,我好象已经搞定了。
fcitx4.2.1正常,fbterm的中文显示也正常。但怎么在tty下用fcitx呢?
多了一个fcitx-fbterm-helper
我试了
fcitx-fbterm-helper -l
这个命令,但给出如下提示:
Test whether fcitx is running correctly with dbus...
Cannot communicate fcitx with DBus.

=========================================================
Try launch fcitx...
There is already a fcitx running, Fcitx cannot support multi instance currently

另外,不知道怎么搞的,还老给出什么链接错误的提示。好象是fcitx-fbterm-helper 不加参数的时候会引发。

还是说在fbterm下用fcitx需要用其他命令呢?
csslayer
帖子: 575
注册时间: 2009-08-03 13:08

Re: fictx-fbterm 的安装。确实没办法了,只好来这里求助。

#8

帖子 csslayer » 2012-04-11 12:07

-l 给出的提示是建议不要同时运行两个以上的fcitx。

你可以先试试
export DISPLAY=:0
fcitx-fbterm-helper

如果不行的话
那就关掉桌面那边的fcitx

再执行
fcitx-fbterm-helper -l
csslayer
帖子: 575
注册时间: 2009-08-03 13:08

Re: fictx-fbterm 的安装。确实没办法了,只好来这里求助。

#9

帖子 csslayer » 2012-04-11 12:16

另外,如果想要在fbterm里面用上输入法,还需要设置

sudo setcap 'cap_sys_tty_config+ep' /usr/bin/fbterm

或者

sudo chmod u+s /usr/bin/fbterm

我不知道ubuntu的fbterm是不是已经做过这件事了
hhmhfh
帖子: 16
注册时间: 2012-04-10 12:41

Re: fictx-fbterm 的安装。确实没办法了,只好来这里求助。

#10

帖子 hhmhfh » 2012-04-11 13:41

执行了
sudo chmod u+s /usr/bin/fbterm
之后
当在tty按下ctrl+空格的时候提示:

can't execute IM program fcitx-fbterm 而且出现提示的位置很奇怪。


另外,我怀疑我的fcitx配置上有问题,X-windows中完全退出fcitx之后,重新输入命令
fcitx启动它时,虽然可以正常使用,但有如下提示:
[ERROR] /build/buildd/fcitx-4.2.1/src/module/quickphrase/QuickPhrase.c:471-Load Config Description File fcitx-quickphrase.desc Erorr, Please Check your install.
这是tty下不能用的原因么?
csslayer
帖子: 575
注册时间: 2009-08-03 13:08

Re: fictx-fbterm 的安装。确实没办法了,只好来这里求助。

#11

帖子 csslayer » 2012-04-11 16:31

hhmhfh 写了:执行了
sudo chmod u+s /usr/bin/fbterm
之后
当在tty按下ctrl+空格的时候提示:

can't execute IM program fcitx-fbterm 而且出现提示的位置很奇怪。


另外,我怀疑我的fcitx配置上有问题,X-windows中完全退出fcitx之后,重新输入命令
fcitx启动它时,虽然可以正常使用,但有如下提示:
[ERROR] /build/buildd/fcitx-4.2.1/src/module/quickphrase/QuickPhrase.c:471-Load Config Description File fcitx-quickphrase.desc Erorr, Please Check your install.
这是tty下不能用的原因么?
不是,那是个打包问题,只影响快速输入的功能。

fcitx-fbterm 安装到了你的 /usr/bin 或者说是 PATH 能找到的路径下面了吗,运行 fbterm -i fcitx-fbterm 没能找到这个执行文件。
hhmhfh
帖子: 16
注册时间: 2012-04-10 12:41

Re: fictx-fbterm 的安装。确实没办法了,只好来这里求助。

#12

帖子 hhmhfh » 2012-04-11 18:28

哈哈,真是太感谢 csslayer 了。现在基本上已经搞定了。我折腾了两天啦。
先是找zhcon,折腾好久发现这东西在新内核下有bug。又找ibus-fbterm。下载的时候老重置我的链接,好不容易下载下来,结果版本不对号。

总之真是太谢谢了。

当然,目前我发现在终端下输入中文还是有很多细节不好处理。
第一个问题:好象总是要先执行
export DISPLAY=:0
才能执行fcitx-fbterm-helper成功。
但是一旦执行了export DISPLAY=:0之后,emacs就打不开了。提示无法在主题路径中找到模块引擎。
我的做法是,在能够正常输入中文之后。重新执行
export DISPLAY=:1
这样emacs就能启动了。而且可以在里面输入中文。
第二个问题是,
使用ctrl+空格输入完中文,再使用ctrl+空格想要切换英文的时候,光标处会出现两个乱码样的东西,需要手动删除。不知道有什么好的解决办法没有,比如把
ctrl+空格这个快捷键改掉。
csslayer
帖子: 575
注册时间: 2009-08-03 13:08

Re: fictx-fbterm 的安装。确实没办法了,只好来这里求助。

#13

帖子 csslayer » 2012-04-12 11:17

执行 export DISPLAY=:0 的目的是为了让dbus能够找到当前X下面的fcitx并和他通信。
但反过来如果emacs发现了这个环境变量就会以为自己在x下面……于是你进入fbterm之后unset DISPLAY=:0 即可。

fbterm只能使用ctrl space,这是硬编码在fbterm里面的,关于那个怪字符没法从fcitx这边解决,请找fbterm汇报bug。

另外你可以用左 ctrl 临时切换英文(这是默认设置,你也可以自己修改),不一定非要用ctrl space。
xep007
帖子: 871
注册时间: 2006-01-03 20:44

Re: fictx-fbterm 的安装。确实没办法了,只好来这里求助。

#14

帖子 xep007 » 2012-10-06 15:03

关闭输入法后,候选字显示框会留下一块白块,只能用clear刷新屏幕来消除,可有办法解决?
回复